/**
 * The Yield Room - User Account Styles
 *
 * Styles for user shortcodes (avatar, verification, phone edit,
 * notifications toggle)
 *
 * @package    The_Yield_Room_Core
 * @version    1.0.0
 */


/* ========================================
   AVATAR STYLES
   ======================================== */

.breakdance .tyr-avatar-wrapper {
    display: inline-block;
}

.breakdance .tyr-user-avatar {
    border-radius: 50%;
    display: block;
}

.breakdance .tyr-avatar-placeholder {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--bde-background-color);
    color: var(--bde-body-text-color);
    border-radius: 50%;
    width: 72px;
    height: 72px;
    font-size: 12px;
}


/* ========================================
   USER NAME AND EMAIL STYLES
   ======================================== */

.breakdance .tyr-user-name,
.breakdance .tyr-user-email {
    display: inline-block;
    font-weight: 500;
}


/* ========================================
   PHONE FIELD STYLES
   ======================================== */

.breakdance .tyr-user-phone-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.breakdance .tyr-phone-edit-btn {
    padding: 4px 12px;
    font-size: 12px;
    background: var(--bde-button-primary-background-color);
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.breakdance .tyr-phone-edit-btn:hover {
    background: var(--bde-button-primary-background-color-hover);
}

.breakdance .tyr-phone-edit-form {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.breakdance .tyr-phone-input {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 14px;
}

.breakdance .tyr-phone-save-btn,
.breakdance .tyr-phone-cancel-btn {
    padding: 4px 12px;
    font-size: 12px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.breakdance .tyr-phone-save-btn {
    background: #46b450;
    color: #fff;
}

.breakdance .tyr-phone-save-btn:hover {
    background: #3d9b46;
}

.breakdance .tyr-phone-cancel-btn {
    background: #ddd;
    color: #333;
}

.breakdance .tyr-phone-cancel-btn:hover {
    background: #ccc;
}


/* ========================================
   LOCATION STYLES
   ======================================== */

.breakdance .tyr-user-location {
    display: inline-block;
}


/* ========================================
   MEMBER SINCE STYLES
   ======================================== */

.breakdance .tyr-member-since {
    display: inline-block;
    color: var(--bde-body-text-color);
    font-size: 14px;
}


/* ========================================
   VERIFICATION BADGE STYLES
   ======================================== */

.breakdance .tyr-verification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #46b450;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
}


/* ========================================
   VERIFICATION CARD STYLES
   ======================================== */

.breakdance .tyr-verification-card {
    background: var(--bde-background-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    max-width: 400px;
}

.breakdance .tyr-verification-card.verified {
    border-color: #46b450;
}

.breakdance .tyr-verification-card.not-verified {
    border-color: #dc3232;
}

.breakdance .tyr-verification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.breakdance .tyr-verification-header h3 {
    margin: 0;
    font-family: var(--bde-heading-font-family);
    font-size: var(--bde-h4-font-size);
}

.breakdance .tyr-verified-badge {
    background: #46b450;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.breakdance .tyr-not-verified-badge {
    background: #dc3232;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.breakdance .tyr-verification-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
}

.breakdance .tyr-verification-label {
    font-weight: 500;
}

.breakdance .tyr-verification-status.verified {
    color: #46b450;
}

.breakdance .tyr-verification-status.not-verified {
    color: #dc3232;
}

.breakdance .tyr-verification-date {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: var(--bde-body-text-color);
}


/* ========================================
   USER STAT STYLES
   ======================================== */

.breakdance .tyr-user-stat-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.breakdance .tyr-user-stat-label {
    font-weight: 500;
}

.breakdance .tyr-user-stat-value {
    font-weight: 600;
    color: var(--bde-brand-primary-color);
}


/* ========================================
   NOTIFICATION TOGGLE STYLES
   ======================================== */

.breakdance .tyr-notification-toggle-wrapper {
    display: inline-block;
}

.breakdance .tyr-toggle-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.breakdance .tyr-toggle-text {
    font-weight: 500;
}

.breakdance .tyr-toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.breakdance .tyr-notification-checkbox {
    opacity: 0;
    width: 0;
    height: 0;
}

.breakdance .tyr-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 24px;
}

.breakdance .tyr-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
}

.breakdance .tyr-notification-checkbox:checked + .tyr-toggle-slider {
    background-color: #46b450;
}

.breakdance .tyr-notification-checkbox:checked + .tyr-toggle-slider:before {
    transform: translateX(26px);
}

.breakdance .tyr-notification-checkbox:focus + .tyr-toggle-slider {
    box-shadow: 0 0 1px #46b450;
}


/* ========================================
   PROFILE IMAGE UPLOAD STYLES
   ======================================== */

.tyr-profile-image-upload {
    max-width: 600px;
    margin: 0 auto;
}

.tyr-profile-image-container {
    text-align: center;
    margin-bottom: 2rem;
}

.tyr-profile-image-preview {
    position: relative;
    display: inline-block;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #1a1a1a;
}

.tyr-profile-image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tyr-profile-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tyr-profile-image-preview:hover .tyr-profile-image-overlay {
    opacity: 1;
}

.tyr-profile-image-delete {
    background: #ef4444;
    border: none;
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.tyr-profile-image-delete:hover {
    background: #dc2626;
}

.tyr-profile-image-placeholder {
    display: inline-block;
}

.tyr-profile-image-upload-form {
    margin-top: 2rem;
}

.tyr-upload-dropzone {
    border: 2px dashed #1a1a1a;
    border-radius: 8px;
    padding: 3rem 2rem;
    text-align: center;
    background: #0f0f0f;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.tyr-upload-dropzone:hover {
    border-color: #cb9c3f;
    background: #111;
}

.tyr-upload-dropzone.tyr-dragover {
    border-color: #cb9c3f;
    background: #1a1a1a;
    border-style: solid;
}

.tyr-upload-content svg {
    color: #cb9c3f;
    margin-bottom: 1rem;
}

.tyr-upload-text {
    font-size: 1rem;
    color: #e8e8e8;
    margin-bottom: 0.5rem;
}

.tyr-upload-text strong {
    color: #cb9c3f;
}

.tyr-upload-hint {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 1.5rem;
}

.tyr-upload-button {
    display: block;
    width: 100%;
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: #cb9c3f;
    border: none;
    color: #0a0a0a;
    font-family: 'Outfit', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.tyr-upload-button:hover {
    background: #d4a94d;
}

.tyr-upload-progress {
    margin-top: 1.5rem;
    text-align: center;
}

.tyr-progress-bar {
    width: 100%;
    height: 8px;
    background: #1a1a1a;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.tyr-progress-fill {
    height: 100%;
    background: #cb9c3f;
    transition: width 0.3s ease;
    width: 0%;
}

.tyr-progress-text {
    font-size: 0.85rem;
    color: #888;
}

.tyr-upload-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 4px;
    text-align: center;
    font-size: 0.9rem;
}

.tyr-upload-message.success {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.tyr-upload-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.tyr-error {
    color: #ef4444;
    font-size: 0.9rem;
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .tyr-profile-image-preview {
        width: 120px;
        height: 120px;
    }

    .tyr-upload-dropzone {
        padding: 2rem 1rem;
    }

    .tyr-upload-text {
        font-size: 0.9rem;
    }
}
