/* ============================================================
   DESIGN SYSTEM & VARIABLES - GLASSMORPHISM 2.0
   ============================================================ */
:root {
    /* Base Glass Variables */
    --glass-bg: rgba(255, 255, 255, 0.05);
    /* Lighter, more subtle */
    --glass-border: 1px solid rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --text-color: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);

    /* Theme Colors */
    --accent-blue: #0077ff;
    --accent-cyan: #06b6d4;
    --accent-orange: #f59e0b;
    --accent-red: #ef4444;
    --accent-green: #10b981;

    /* Product Themes */
    --theme-smart: linear-gradient(135deg, #0077ff 0%, #06b6d4 100%);
    --theme-listing: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);

    /* Legacy (Amazon) - Keep for compatibility but deprioritize */
    --amazon-color: #FFD814;
}

/* Base Reset */
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    color: var(--text-color);
    background-color: #0f172a;
    /* Deep Slate Blue Base */
    min-height: 100vh;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    width: 100%;
    box-sizing: border-box;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.home-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s, transform 0.2s;
    opacity: 0.7;
}

.home-link:hover {
    opacity: 1;
    transform: scale(1.1);
}

.nav-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-item {
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

.nav-item:hover {
    opacity: 1;
}

.nav-link {
    color: rgba(255, 255, 255, 0.94);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.nav-link:hover {
    color: #ffffff;
    opacity: 1;
}

.nav-link:focus-visible {
    outline: 2px solid rgba(79, 172, 254, 0.9);
    outline-offset: 4px;
    border-radius: 6px;
}

.user-badge {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.3);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.logout-btn {
    text-transform: none;
    letter-spacing: 0;
    background: rgba(255, 59, 48, 0.2);
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }

    .auth-page .toast-container {
        top: 76px;
        width: calc(100vw - 24px);
    }
}

/* ============================================================
   BACKGROUND VARIANTS
   ============================================================ */
body.bg-image {
    background-image: url('../images/landing_background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #000;
    background-attachment: fixed;
}

body.bg-image-dark {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/landing_background.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-color: #000;
    background-attachment: fixed;
}

.privacy-page .nav-username {
    display: none !important;
}

.auth-page {
    background: url('../img/backdrop.png') no-repeat center center fixed;
    background-size: cover;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 14, 23, 0.6);
    /* Slightly darker overlay */
    z-index: -1;
}

.auth-page .navbar,
body.bg-image-dark .navbar {
    background: linear-gradient(180deg, rgba(7, 12, 22, 0.94) 0%, rgba(7, 12, 22, 0.72) 72%, rgba(7, 12, 22, 0) 100%);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.auth-page .nav-link,
body.bg-image-dark .nav-link {
    color: rgba(255, 255, 255, 0.96);
}

/* ============================================================
   LANDING PAGE LAYOUT
   ============================================================ */
.landing-container {
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: flex-end;
    padding: 40px;
    box-sizing: border-box;
    justify-content: center;
}

.landing-actions {
    display: flex;
    gap: 25px;
    width: 100%;
    justify-content: space-between;
    /* About Us left, Create right for all screens */
}

@media (max-width: 768px) {
    .landing-container {
        padding: 20px;
    }

    .landing-actions {
        justify-content: space-between;
        gap: 10px;
    }

    .landing-btn {
        flex: 1;
        font-size: 0.9rem !important;
        padding: 12px 10px !important;
        text-align: center;
        max-width: none !important;
        white-space: nowrap;
    }
}

/* ============================================================
   UI COMPONENTS (GLASS BUTTONS 2.0)
   ============================================================ */
.glass-button {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 10px 24px;
    font-size: 0.9rem;
    text-decoration: none;
    border-radius: 8px;
    /* Modern cleaner radius */
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    text-transform: none;
    /* Removed uppercase for modern look */
    letter-spacing: 0.01em;
    font-weight: 500;
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.glass-button:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-button:active {
    transform: translateY(0);
}

/* Primary (Action Gradient) */
.glass-button.primary {
    background: var(--theme-listing);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: white;
    font-weight: 600;
}

.glass-button.primary:hover {
    filter: brightness(1.1);
    box-shadow: 0 10px 20px -5px rgba(245, 158, 11, 0.4);
}

/* Accent (Tech/Blue) */
.glass-button.accent {
    background: var(--theme-smart);
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: white;
}

.glass-button.accent:hover {
    filter: brightness(1.1);
    box-shadow: 0 10px 20px -5px rgba(6, 182, 212, 0.4);
}

/* Secondary (Ghost) */
.glass-button.secondary {
    background: rgba(255, 255, 255, 0.14);
    color: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 6px 16px rgba(2, 6, 23, 0.18);
}

.glass-button.secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.glass-button.call {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
    font-size: 1.1rem;
    padding: 16px 32px;
    font-weight: 700;
    border-radius: 12px;
}

/* ============================================================
   SUBMIT PAGE (FORM & PREVIEW)
   ============================================================ */
.submit-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 120px 20px 50px;
    /* Space for navbar */
    box-sizing: border-box;
    gap: 40px;
    flex-wrap: wrap;
}

.form-container {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 40px;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.form-container h2 {
    margin-top: 0;
    margin-bottom: 25px;
    text-align: center;
    color: #fff;
}

.form-group {
    margin-bottom: 15px;
}

input,
textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    background: #222;
    border: 1px solid #444;
    color: #fff;
    border-radius: 8px;
    box-sizing: border-box;
    font-size: 1rem;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    background: #333;
}

.preview-section {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 500px;
    width: 100%;
    text-align: center;
}

.preview-img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .submit-container {
        flex-direction: column;
        align-items: center;
        padding-top: 100px;
    }

    .form-container,
    .preview-section {
        padding: 25px 20px;
        width: 100%;
    }
}

/* ============================================================
   PROPERTY PAGE
   ============================================================ */
body.property-page {
    background: #f5f5f5;
    color: #333;
    display: flex;
    justify-content: center;
    padding: 20px;
}

.property-card {
    background: white;
    max-width: 600px;
    width: 100%;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.property-header {
    background: #1a1a1a;
    color: white;
    padding: 30px;
    text-align: center;
}

.property-address {
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

.property-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
    background: #eee;
    font-weight: 600;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 1.2rem;
    color: #1a1a1a;
}

.stat-label {
    font-size: 0.8rem;
    color: #666;
    text-transform: uppercase;
}

.property-description {
    padding: 30px;
    line-height: 1.6;
    color: #555;
    border-bottom: 1px solid #eee;
}

.agent-footer {
    padding: 20px;
    text-align: center;
    background: #fafafa;
}

.agent-name {
    font-weight: bold;
    font-size: 1.1rem;
    color: #000;
}

.agent-brokerage {
    color: #666;
    margin-bottom: 10px;
    display: block;
}

.contact-btn {
    display: inline-block;
    background: #000;
    color: white;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

/* ============================================================
   GLASS NOTIFICATIONS (TOASTS)
   ============================================================ */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    /* Allow clicking through container */
}

.glass-toast {
    background: rgba(43, 43, 43, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 15px 25px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.4s ease-out forwards;
    pointer-events: auto;
    /* Re-enable clicks on toast */
    max-width: 300px;
}

.glass-toast.fade-out {
    animation: fadeOut 0.4s ease-in forwards;
}

.auth-page .toast-container {
    top: 88px;
    right: auto;
    bottom: auto;
    left: 50%;
    transform: translateX(-50%);
    width: min(540px, calc(100vw - 32px));
}

.auth-page .glass-toast {
    max-width: none;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }

    to {
        opacity: 0;
        transform: translateY(10px);
    }
}

/* ============================================================
   NEW NAVBAR & DRAWER
   ============================================================ */
.navbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

.navbar> :first-child {
    justify-self: start;
}

.navbar> :last-child {
    justify-self: end;
}

.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 24px;
    flex-wrap: wrap;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    letter-spacing: 1px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.nav-username {
    display: inline-block;
    margin-top: 4px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Shine Hover Effect (matching .subscribe-btn) */
.nav-center .glass-button,
.landing-btn,
.about-cta-btn,
.generate-btn,
.auth-btn,
.shimmer-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-center .glass-button::before,
.landing-btn::before,
.about-cta-btn::before,
.generate-btn::before,
.auth-btn::before,
.shimmer-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: left 0.5s ease;
}

.nav-center .glass-button:hover,
.landing-btn:hover,
.about-cta-btn:hover,
.generate-btn:hover,
.auth-btn:hover,
.shimmer-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 119, 255, 0.4), 0 0 30px rgba(0, 119, 255, 0.2);
}

.nav-center .glass-button:hover::before,
.landing-btn:hover::before,
.about-cta-btn:hover::before,
.generate-btn:hover::before,
.auth-btn:hover::before,
.shimmer-btn:hover::before {
    left: 100%;
}

.hamburger-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    transition: opacity 0.2s;
    opacity: 0.8;
}


/* Status Badges */
.status-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.85em;
    color: white;
    display: inline-block;
}

.status-paid {
    background-color: #4caf50;
}

.status-submitted_to_printer,
.status-pending_production {
    background-color: #2196f3;
}

.status-print_failed {
    background-color: #f44336;
}

.status-unknown,
.status-default {
    background-color: #757575;
}

.hamburger-btn:hover {
    opacity: 1;
}

/* Drawer */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.drawer-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 10001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    padding: 25px;
    box-sizing: border-box;
}

.drawer-menu.open {
    transform: translateX(0) !important;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.close-drawer {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
}

.drawer-user-info {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: #aaa;
}

.drawer-user-info strong {
    color: white;
    display: block;
    font-size: 1rem;
    margin-top: 5px;
}

.drawer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drawer-item {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s;
}

.drawer-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.drawer-item.highlight {
    color: var(--amazon-color);
    font-weight: bold;
}

.drawer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 10px 0;
}

/* Reviews Section (Landing) */
.reviews-section {
    padding: 60px 20px;
    background: rgba(0, 0, 0, 0.5);
    margin-top: 100px;
    /* Spacer from hero */
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.review-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 25px;
    color: #ddd;
}

.review-stars {
    color: var(--amazon-color);
    margin-bottom: 10px;
}

.review-author {
    margin-top: 15px;
    font-weight: bold;
    color: white;
    font-size: 0.9rem;
}

.review-role {
    font-size: 0.8rem;
    color: #888;
}
/* ============================================================
   CSP-Friendly UI (reduce inline styles)
   ============================================================ */
.navbar--elevated {
    z-index: 1000;
}

.drawer-logo-img {
    height: 32px;
}

.drawer-user-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.drawer-user-email {
    font-weight: 600;
    color: white;
}

.drawer-item--danger {
    color: var(--accent-red) !important;
}


/* glass-button danger variant */
.glass-button.danger {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.35);
  color: rgba(255, 255, 255, 0.95);
}

.glass-button.danger:hover {
  background: rgba(239, 68, 68, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
}


/* Utility: lock body scroll when modals are open */
.scroll-lock { overflow: hidden !important; }

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
.csp-show-mobile { display: none; }

@media (max-width: 768px) {
    .csp-hide-mobile { display: none !important; }
    .csp-show-mobile { display: block !important; }
}
