/**
 * freemium.css — Styles for trial mode, blur overlays, auth UI
 * Imported into property_broker_app.html
 */

/* ============================================================
   AUTH - Google Sign In Button (nav)
   ============================================================ */

.nav-google-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 1.2rem;
    background: #fff;
    color: #3c4043;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.nav-google-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

/* ============================================================
   AUTH - User Pill (shown when signed in)
   ============================================================ */

.auth-user-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.75rem 0.4rem 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    backdrop-filter: blur(10px);
}

.user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-main, #f4f4f5);
}

.auth-logout-btn {
    background: none;
    border: none;
    color: var(--text-muted, rgba(255,255,255,0.5));
    cursor: pointer;
    font-size: 0.85rem;
    padding: 0 0.25rem;
    line-height: 1;
    transition: color 0.2s;
}
.auth-logout-btn:hover {
    color: var(--text-main, #f4f4f5);
}

/* ============================================================
   CREDIT BADGE
   ============================================================ */

.credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.6rem;
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fbbf24;
    cursor: default;
}

.credit-badge .credit-icon {
    font-size: 0.75rem;
}

/* App header credit display */
#appCreditBadge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.8rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 100px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #fbbf24;
    transition: all 0.3s ease;
}

#appCreditBadge.hidden {
    display: none;
}

#appCreditBadge.credit-low {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: #f87171;
    animation: creditPulse 2s infinite;
}

@keyframes creditPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.credit-label {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    font-size: 0.75rem;
}

/* ============================================================
   TRIAL BANNER
   ============================================================ */

#trialBanner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(90deg, rgba(251, 191, 36, 0.08), rgba(59, 130, 246, 0.06));
    border-bottom: 1px solid rgba(251, 191, 36, 0.15);
    font-size: 0.875rem;
    color: var(--text-muted, rgba(255,255,255,0.6));
}

#trialBanner .trial-highlight {
    color: #fbbf24;
    font-weight: 600;
}

#trialBanner.hidden {
    display: none;
}

.trial-signin-link {
    margin-left: auto;
    padding: 0.35rem 0.9rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 100px;
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.trial-signin-link:hover {
    background: #fbbf24;
    color: #000;
}

/* ============================================================
   TEMPLATE LOCKS (trial mode)
   ============================================================ */

.template-btn {
    position: relative;
}

.template-btn.template-locked {
    opacity: 0.6;
    cursor: not-allowed;
}

.template-btn.template-locked:hover {
    /* Prevent normal hover effect */
    transform: none !important;
}

.template-lock {
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.75rem;
    pointer-events: none;
}

/* ============================================================
   BLURRED RESULTS (freemium trial)
   ============================================================ */

.suburb-result-blurred {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
}

.suburb-result-blurred .blur-content {
    filter: blur(8px);
    pointer-events: none;
    user-select: none;
    opacity: 0.7;
}

.suburb-result-blurred .blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(2, 4, 10, 0.6);
    backdrop-filter: blur(2px);
    z-index: 10;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.blur-overlay-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.blur-overlay-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main, #f4f4f5);
}

.blur-overlay-sub {
    font-size: 0.85rem;
    color: var(--text-muted, rgba(255,255,255,0.5));
    max-width: 280px;
    line-height: 1.5;
}

.blur-overlay-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.4rem;
    background: #fbbf24;
    color: #000;
    border: none;
    border-radius: 100px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.25s ease;
    margin-top: 0.25rem;
}

.blur-overlay-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.3);
}

/* Min height placeholder so blurred cards have substance */
.suburb-result-blurred .blur-placeholder {
    min-height: 280px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 1rem;
}

/* ============================================================
   LOGIN MODAL
   ============================================================ */

.login-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(2, 4, 10, 0.85);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.login-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.login-modal-card {
    position: relative;
    background: rgba(15, 18, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    max-width: 420px;
    width: 90%;
    text-align: center;
    box-shadow: 0 40px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(251,191,36,0.08);
    animation: modalSlideUp 0.3s ease;
}

@keyframes modalSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.login-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255,255,255,0.4);
    font-size: 1rem;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.login-modal-close:hover {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.8);
}

.login-modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.login-modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main, #f4f4f5);
    margin-bottom: 0.5rem;
}

.login-modal-message {
    font-size: 0.9rem;
    color: var(--text-muted, rgba(255,255,255,0.6));
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.login-modal-perks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.75rem;
    text-align: left;
}

.login-perk {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    padding: 0.4rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border-radius: 0.5rem;
}

.login-perk strong {
    color: #fbbf24;
}

.login-modal-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.5rem;
    background: #fff;
    color: #3c4043;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-bottom: 0.75rem;
}

.login-modal-google-btn:hover {
    background: #f8f8f8;
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
    transform: translateY(-1px);
}

.login-modal-fine {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.3);
    margin-top: 0.25rem;
}

/* ============================================================
   AUTH TOAST NOTIFICATION
   ============================================================ */

.auth-toast {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    padding: 0.8rem 1.5rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    z-index: 2000;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s;
    opacity: 0;
    white-space: nowrap;
    pointer-events: none;
}

.auth-toast-success {
    background: rgba(16, 185, 129, 0.9);
    color: #fff;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.auth-toast-error {
    background: rgba(239, 68, 68, 0.9);
    color: #fff;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

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

/* ============================================================
   DEMO MODE BANNER (inside search results)
   ============================================================ */

.demo-result-banner {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.08), rgba(59, 130, 246, 0.06));
    border: 1px solid rgba(251, 191, 36, 0.2);
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    line-height: 1.5;
}

.demo-banner-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.demo-banner-text strong {
    color: #fbbf24;
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.demo-banner-text p {
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.demo-banner-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    background: rgba(251, 191, 36, 0.15);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 100px;
    color: #fbbf24;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    margin-top: 0.5rem;
}
.demo-banner-cta:hover {
    background: #fbbf24;
    color: #000;
}

/* ============================================================
   CREDIT PACKS (upgrade section)
   ============================================================ */

.credit-packs-section {
    padding: 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 1.25rem;
    margin-top: 2rem;
}

.credit-packs-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-main, #f4f4f5);
}

.credit-packs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.credit-pack-card {
    padding: 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 1rem;
    text-align: center;
    position: relative;
    transition: all 0.25s;
}

.credit-pack-card:hover {
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-4px);
}

.credit-pack-tag {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.75rem;
    background: #fbbf24;
    color: #000;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
}

.credit-pack-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-main, #f4f4f5);
}

.credit-pack-credits {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fbbf24;
    font-family: 'Outfit', sans-serif;
}

.credit-pack-credits span {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
}

.credit-pack-price {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    margin: 0.25rem 0;
}

.credit-pack-desc {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    margin-bottom: 0.75rem;
}

.credit-pack-btn {
    width: 100%;
    padding: 0.5rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.25);
    border-radius: 6px;
    color: #fbbf24;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s;
}

.credit-pack-btn:hover {
    background: #fbbf24;
    color: #000;
}
