/* ==============================================================================
   TrendClip Auth Modal & User Dropdown Stylesheet
   ============================================================================== */

/* --- Navbar Sign In Button Base --- */
.btp-yt-navbar__signin {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #3ea6ff !important;
    padding: 5px 12px;
    border-radius: 18px;
    font-size: 12.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    cursor: pointer;
    outline: none;
    transition: all 0.15s ease;
    flex-shrink: 0;
}
.btp-yt-navbar__signin:hover {
    background: rgba(62, 166, 255, 0.12);
    border-color: #3ea6ff;
}

/* --- Backdrop & Modal Card --- */
.tc-auth-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.78);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tc-auth-backdrop.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.tc-auth-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #181818;
    border: 1px solid #2e2e2e;
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
    padding: 32px 28px;
    transform: scale(0.94) translateY(12px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    color: #f1f1f1;
}

.tc-auth-backdrop.is-visible .tc-auth-modal {
    transform: scale(1) translateY(0);
}

.tc-auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: #aaaaaa;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s ease, color 0.15s ease;
}

.tc-auth-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* --- Brand Header --- */
.tc-auth-brand {
    text-align: center;
    margin-bottom: 20px;
}

.tc-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.tc-auth-logo i {
    font-size: 26px;
    color: #ff3b30;
}

.tc-auth-tld {
    color: #ff5722;
    font-size: 14px;
    font-weight: 700;
    margin-left: 2px;
}

.tc-auth-tagline {
    font-size: 12px;
    color: #999999;
    margin: 4px 0 0;
    font-weight: 500;
}

/* --- Google 1-Click Sign-In Button --- */
.tc-google-auth-container {
    margin-bottom: 16px;
}

.tc-google-btn {
    width: 100%;
    background: #1f1f1f;
    border: 1px solid #383838;
    border-radius: 9px;
    color: #ffffff;
    font-size: 13.5px;
    font-weight: 600;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tc-google-btn:hover {
    background: #2a2a2a;
    border-color: #555555;
    transform: translateY(-1px);
}

.tc-google-btn:active {
    transform: translateY(1px);
}

.tc-google-icon {
    flex-shrink: 0;
}

/* --- Or Divider --- */
.tc-auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 14px 0 16px;
    color: #666666;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tc-auth-divider::before,
.tc-auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #2b2b2b;
}

.tc-auth-divider span {
    padding: 0 10px;
}

/* --- Soft Verification Banner --- */
.tc-soft-verify-banner {
    position: sticky;
    top: 56px;
    z-index: 9998;
    background: linear-gradient(90deg, #2b1f09 0%, #3d2c0d 100%);
    border-bottom: 1px solid rgba(255, 179, 0, 0.3);
    color: #ffe082;
    padding: 8px 16px;
    font-size: 12.5px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.tc-soft-verify-content {
    display: flex;
    align-items: center;
}

.tc-soft-verify-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tc-soft-verify-resend {
    background: rgba(255, 179, 0, 0.2);
    border: 1px solid rgba(255, 179, 0, 0.4);
    color: #ffe082;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.tc-soft-verify-resend:hover {
    background: rgba(255, 179, 0, 0.35);
}

.tc-soft-verify-dismiss {
    background: transparent;
    border: none;
    color: #ffe082;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0 4px;
    opacity: 0.7;
}

.tc-soft-verify-dismiss:hover {
    opacity: 1;
}

/* --- Google Avatar in Navbar & Dropdown --- */
.btp-yt-user-avatar img,
.btp-yt-user-avatar-lg img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

/* --- Tabs --- */
.tc-auth-tabs {
    display: flex;
    background: #111111;
    border-radius: 10px;
    padding: 3px;
    margin-bottom: 20px;
    border: 1px solid #262626;
}

.tc-auth-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #888888;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.tc-auth-tab:hover {
    color: #ffffff;
}

.tc-auth-tab.is-active {
    background: #252525;
    color: #ffffff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* --- Alerts --- */
.tc-auth-alert {
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 16px;
    line-height: 1.4;
    display: none;
}

.tc-auth-alert.is-error {
    background: rgba(255, 59, 48, 0.15);
    border: 1px solid rgba(255, 59, 48, 0.4);
    color: #ff857d;
}

.tc-auth-alert.is-success {
    background: rgba(52, 199, 89, 0.15);
    border: 1px solid rgba(52, 199, 89, 0.4);
    color: #7ce897;
}

/* --- Form Fields --- */
.tc-form-group {
    margin-bottom: 16px;
}

.tc-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #b0b0b0;
    margin-bottom: 6px;
}

.tc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.tc-label-row label {
    margin-bottom: 0;
}

.tc-forgot-link {
    font-size: 11px;
    color: #ff5722;
    text-decoration: none;
    font-weight: 600;
}

.tc-forgot-link:hover {
    text-decoration: underline;
    color: #ff7043;
}

.tc-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.tc-input-icon {
    position: absolute;
    left: 12px;
    color: #666666;
    font-size: 14px;
    pointer-events: none;
}

.tc-input-wrap input {
    width: 100%;
    background: #222222;
    border: 1px solid #333333;
    border-radius: 9px;
    padding: 10px 12px 10px 36px;
    color: #ffffff;
    font-size: 14px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tc-input-wrap input:focus {
    border-color: #ff3b30;
    background: #262626;
    box-shadow: 0 0 0 2px rgba(255, 59, 48, 0.2);
}

.tc-toggle-pass {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: #777777;
    cursor: pointer;
    padding: 4px 6px;
    font-size: 14px;
}

.tc-toggle-pass:hover {
    color: #cccccc;
}

.tc-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}

.tc-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #aaaaaa;
    cursor: pointer;
    user-select: none;
}

.tc-checkbox-label input {
    accent-color: #ff3b30;
    cursor: pointer;
}

/* --- Submit Button --- */
.tc-btn-submit {
    width: 100%;
    background: linear-gradient(135deg, #ff3b30 0%, #e60023 100%);
    border: none;
    border-radius: 9px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    padding: 12px 16px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(230, 0, 35, 0.35);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tc-btn-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(230, 0, 35, 0.45);
}

.tc-btn-submit:active {
    transform: translateY(1px);
}

.tc-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* --- Switch Text --- */
.tc-auth-switch-text {
    text-align: center;
    font-size: 12px;
    color: #888888;
    margin: 18px 0 0;
}

.tc-auth-switch-text a {
    color: #ff5722;
    text-decoration: none;
    font-weight: 600;
}

.tc-auth-switch-text a:hover {
    text-decoration: underline;
}

.tc-forgot-desc {
    font-size: 13px;
    color: #aaaaaa;
    line-height: 1.45;
    margin-bottom: 18px;
}

/* ==============================================================================
   Logged-in User Menu & Dropdown (Navbar)
   ============================================================================== */
.btp-yt-user-menu-wrap {
    position: relative;
    display: inline-block;
}

.btp-yt-user-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    outline: none;
}

.btp-yt-user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3b30 0%, #ff5722 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btp-yt-user-btn:hover .btp-yt-user-avatar {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 87, 34, 0.4);
}

.btp-yt-user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 260px;
    background: #1e1e1e;
    border: 1px solid #303030;
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7);
    padding: 8px 0;
    z-index: 10000;
    display: none;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.btp-yt-user-dropdown.is-open {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.btp-yt-user-dropdown__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #2b2b2b;
}

.btp-yt-user-avatar-lg {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff3b30 0%, #ff5722 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.btp-yt-user-info {
    overflow: hidden;
}

.btp-yt-user-name {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btp-yt-user-email {
    font-size: 11px;
    color: #888888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 4px;
}

.btp-yt-user-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
    letter-spacing: 0.4px;
}

.btp-yt-user-badge.is-admin {
    background: rgba(255, 59, 48, 0.2);
    color: #ff6b60;
    border: 1px solid rgba(255, 59, 48, 0.35);
}

.btp-yt-user-dropdown__menu {
    padding: 6px 0;
}

.btp-yt-user-dropdown__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 13px;
    color: #e0e0e0;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.btp-yt-user-dropdown__link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    text-decoration: none;
}

.btp-yt-user-dropdown__link i {
    font-size: 14px;
    width: 18px;
    text-align: center;
    color: #999999;
}

.btp-yt-user-dropdown__link:hover i {
    color: #ffffff;
}

.btp-yt-user-dropdown__link.is-logout {
    color: #ff5722;
}

.btp-yt-user-dropdown__link.is-logout:hover {
    background: rgba(255, 87, 34, 0.15);
    color: #ff7043;
}

.btp-yt-user-dropdown__divider {
    height: 1px;
    background: #2b2b2b;
    margin: 6px 0;
}
