/* ═══════════════════════════════════════════════════════════
   UdharPe Khata — Auth & Comments CSS
   Google Login, User Profile, Comments Section Styles
   ═══════════════════════════════════════════════════════════ */

/* ─── Navbar Auth Area ─────────────────────────────────── */
.hk-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.uk-auth-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    min-height: 40px;
    overflow: visible;
}

.g_id_signin {
    display: flex;
    align-items: center;
    overflow: visible;
    min-height: 40px;
}

/* ─── User Profile (Logged In) ─────────────────────────── */
.uk-user-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    position: relative;
    padding: 4px 10px;
    border-radius: 50px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    transition: all 0.3s ease;
}

.uk-user-profile:hover {
    background: rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.4);
}

.uk-user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #10b981;
    object-fit: cover;
}

.uk-user-name {
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ─── User Dropdown ────────────────────────────────────── */
.uk-user-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 270px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12), 0 5px 15px rgba(0, 0, 0, 0.06);
    padding: 14px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all 0.25s ease;
    z-index: 9999;
}

.uk-user-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.uk-dd-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
}

.uk-dd-pic {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid #10b981;
    flex-shrink: 0;
}

.uk-dd-name {
    font-size: 0.92rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
}

.uk-dd-email {
    font-size: 0.76rem;
    color: #64748b;
    word-break: break-all;
}

.uk-dd-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 8px 0;
}

.uk-dd-status {
    font-size: 0.78rem;
    color: #047857;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 8px;
    padding: 7px 10px;
    margin: 8px 0;
    font-weight: 700;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.uk-dd-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 9px 12px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #0f172a;
    font-size: 0.86rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-align: left;
    font-family: inherit;
}

.uk-dd-btn:hover {
    background: #f1f5f9;
}

.uk-dd-logout {
    color: #dc2626;
}

.uk-dd-logout:hover {
    background: #fef2f2;
    color: #b91c1c;
}

/* ─── Toast Notification ───────────────────────────────── */
.uk-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: 'Noto Sans Devanagari', sans-serif;
    z-index: 99999;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    max-width: 90vw;
    text-align: center;
}

.uk-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.uk-toast-success {
    background: linear-gradient(135deg, #065f46, #047857);
    color: #d1fae5;
    border: 1px solid #10b981;
}

.uk-toast-error {
    background: linear-gradient(135deg, #7f1d1d, #991b1b);
    color: #fecaca;
    border: 1px solid #ef4444;
}

/* ═══════════════════════════════════════════════════════════
   COMMENTS SECTION
   ═══════════════════════════════════════════════════════════ */

.uk-comments-section {
    padding: 50px 0 60px;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
}

.uk-comments-wrapper {
    max-width: 720px;
    margin: 0 auto;
}

.uk-comments-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f1f5f9;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.uk-comments-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 50px;
}

.uk-comments-subtitle {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-bottom: 24px;
    line-height: 1.5;
}

/* ─── Comment Form ─────────────────────────────────────── */
.uk-comment-form {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 24px;
}

.uk-cf-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #10b981;
    margin-bottom: 10px;
}

.uk-comment-textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #334155;
    border-radius: 10px;
    background: #0f172a;
    color: #f1f5f9;
    font-size: 0.9rem;
    font-family: 'Noto Sans Devanagari', sans-serif;
    resize: vertical;
    min-height: 80px;
    transition: border-color 0.3s;
    box-sizing: border-box;
}

.uk-comment-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}

.uk-comment-textarea::placeholder {
    color: #64748b;
}

.uk-cf-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.uk-cf-charcount {
    font-size: 0.78rem;
    color: #94a3b8;
}

.uk-comment-submit-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    font-family: 'Noto Sans Devanagari', sans-serif;
    transition: all 0.3s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.uk-comment-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

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

/* ─── Login Prompt ─────────────────────────────────────── */
.uk-comment-login-prompt {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 24px;
}

.uk-comment-login-prompt p {
    margin: 0;
    font-size: 0.9rem;
    color: #94a3b8;
}

.uk-comment-login-prompt strong {
    color: #10b981;
}

/* ─── Comments List ────────────────────────────────────── */
.uk-comments-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.uk-comment-loading,
.uk-comment-empty {
    text-align: center;
    padding: 30px;
    color: #64748b;
    font-size: 0.9rem;
}

.uk-comment-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ─── Single Comment Item ──────────────────────────────── */
.uk-comment-item {
    background: #1e293b;
    border: 1px solid #334155;
    border-radius: 12px;
    padding: 14px 16px;
    transition: border-color 0.3s;
}

.uk-comment-item:hover {
    border-color: rgba(16, 185, 129, 0.3);
}

.uk-comment-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.uk-comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid #334155;
    object-fit: cover;
}

.uk-comment-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.uk-comment-name {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f1f5f9;
}

.uk-comment-date {
    font-size: 0.82rem;
    font-weight: 600;
    color: #93c5fd;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.uk-comment-body {
    font-size: 0.9rem;
    color: #cbd5e1;
    line-height: 1.6;
    padding-left: 46px;
}

/* ─── Mobile Responsive ────────────────────────────────── */
@media (max-width: 768px) {
    .hk-nav-right {
        gap: 6px;
    }

    .uk-user-name {
        display: none;
    }

    .uk-user-profile {
        padding: 3px;
        background: transparent;
        border: none;
    }

    .uk-user-dropdown {
        right: -40px;
        width: 240px;
    }

    .uk-comments-title {
        font-size: 1.2rem;
    }

    .uk-comment-body {
        padding-left: 0;
        margin-top: 6px;
    }

    .uk-cf-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }

    .uk-comment-submit-btn {
        width: 100%;
        text-align: center;
    }

    .uk-nudge-popup {
        padding: 24px 18px;
    }

    .uk-nudge-title {
        font-size: 1.15rem;
    }
}

/* ═══════════════════════════════════════════════════════════
   Persistent Reminder Bar (Top Banner)
   ═══════════════════════════════════════════════════════════ */
.uk-reminder-bar {
    position: fixed;
    bottom: 0;
    top: auto;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 10000;
    background: linear-gradient(90deg, #92400e 0%, #b45309 45%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    overflow: hidden;
}

.uk-reminder-bar.show {
    transform: translateY(0);
}

.uk-rb-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6px 14px;
    font-size: 0.84rem;
    gap: 10px;
    box-sizing: border-box;
    min-height: 38px;
}

.uk-rb-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    flex: 1;
}

.uk-rb-icon {
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1;
}

.uk-rb-text {
    font-weight: 500;
    color: #fef3c7;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uk-rb-text strong {
    color: #ffffff;
    font-weight: 700;
}

.uk-rb-text-short {
    display: none;
}

.uk-rb-text-full {
    display: inline;
}

.uk-rb-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.uk-rb-btn {
    background: #ffffff;
    color: #b45309;
    border: none;
    padding: 4px 12px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.78rem;
    cursor: pointer;
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.uk-rb-btn:hover {
    background: #fef3c7;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.uk-rb-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.05rem;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 4px;
    line-height: 1;
    transition: color 0.2s;
    flex-shrink: 0;
}

.uk-rb-close:hover {
    color: #ffffff;
}

@media (max-width: 640px) {
    .uk-rb-content {
        padding: 4px 8px;
        font-size: 0.75rem;
        gap: 6px;
        min-height: 32px;
    }

    .uk-rb-text-full {
        display: none;
    }

    .uk-rb-text-short {
        display: inline;
        font-size: 0.75rem;
    }

    .uk-rb-icon {
        font-size: 0.85rem;
    }

    .uk-rb-btn {
        padding: 3px 8px;
        font-size: 0.72rem;
    }

    .uk-rb-close {
        font-size: 0.9rem;
        padding: 1px 4px;
    }
}

/* ═══════════════════════════════════════════════════════════
   Smart Nudge Modal Popup
   ═══════════════════════════════════════════════════════════ */
.uk-nudge-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.uk-nudge-overlay.show {
    opacity: 1;
    visibility: visible;
}

.uk-nudge-popup {
    background: #1e293b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 30px 24px;
    width: 100%;
    max-width: 460px;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.6);
    text-align: center;
    position: relative;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.uk-nudge-overlay.show .uk-nudge-popup {
    transform: scale(1) translateY(0);
}

.uk-nudge-close {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    color: #94a3b8;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.uk-nudge-close:hover {
    background: rgba(255, 255, 255, 0.16);
    color: #f8fafc;
}

.uk-nudge-icon {
    font-size: 2.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.35);
    margin-bottom: 12px;
}

.uk-nudge-title {
    font-size: 1.3rem;
    font-weight: 800;
    color: #f8fafc;
    margin: 0 0 8px 0;
}

.uk-nudge-desc {
    font-size: 0.9rem;
    color: #94a3b8;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

.uk-nudge-risks {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: left;
    margin-bottom: 12px;
}

.uk-nudge-risk {
    font-size: 0.84rem;
    color: #fca5a5;
    margin: 4px 0;
    line-height: 1.4;
}

.uk-nudge-risk strong {
    color: #fecaca;
}

.uk-nudge-benefits {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 12px;
    padding: 10px 14px;
    text-align: left;
    margin-bottom: 20px;
}

.uk-nudge-benefit {
    font-size: 0.84rem;
    color: #6ee7b7;
    margin: 4px 0;
    line-height: 1.4;
}

.uk-nudge-benefit strong {
    color: #a7f3d0;
}

.uk-nudge-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.uk-nudge-google-btn {
    min-height: 44px;
    display: flex;
    justify-content: center;
}

.uk-nudge-skip {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.84rem;
    cursor: pointer;
    padding: 6px 12px;
    text-decoration: underline;
    transition: color 0.2s;
}

.uk-nudge-skip:hover {
    color: #e2e8f0;
}

.uk-nudge-trust {
    font-size: 0.76rem;
    color: #64748b;
    margin: 14px 0 0 0;
}

/* ─── Highlight Animation for Sign-in button ────────────── */
.uk-auth-highlight {
    animation: ukPulse 1s 2 alternate ease-in-out;
}

@keyframes ukPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(16, 185, 129, 0);
    }
    50% {
        transform: scale(1.1);
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.8);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(16, 185, 129, 0);
    }
}
