/* frontend/css/style.css - Legendary Edition */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --deep-blue: #0A0F1E;
    --dark-blue: #121A2E;
    --card-bg: rgba(18, 26, 46, 0.7);
    --gold: #F5A623;
    --gold-light: #FFD700;
    --gold-gradient: linear-gradient(135deg, #F5A623, #E6C200);
    --text-light: #E8EDF5;
    --text-muted: #8892B0;
    --glass-border: rgba(255, 215, 0, 0.15);
    --shadow-glow: 0 8px 32px rgba(245, 166, 35, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--deep-blue);
    color: var(--text-light);
    min-height: 100vh;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(245, 166, 35, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(245, 166, 35, 0.03) 0%, transparent 40%);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--deep-blue); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* ===== HEADER ===== */
.glass-header {
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 16px 40px;
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo-icon {
    font-size: 32px;
    font-weight: 900;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.logo-text {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -1px;
}
.logo-text span {
    color: var(--gold);
}
.verified-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #27A7E7;
    color: white;
    font-size: 12px;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(39, 167, 231, 0.5);
}
nav {
    display: flex;
    align-items: center;
    gap: 28px;
}
nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}
nav a:hover,
nav a.active {
    color: var(--gold);
}
.btn-gold {
    background: var(--gold-gradient);
    color: #0A0F1E;
    border: none;
    padding: 10px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}
.btn-outline {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 8px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.btn-outline:hover {
    background: var(--gold);
    color: #0A0F1E;
}

/* ===== HERO ===== */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
    gap: 60px;
}
.hero-content {
    flex: 1;
}
.hero-badge {
    display: inline-block;
    background: rgba(245, 166, 35, 0.12);
    color: var(--gold);
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(245, 166, 35, 0.2);
}
.hero h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    color: var(--text-light);
}
.hero h1 .gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.7;
    margin: 24px 0 32px;
}
.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}
.stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}
.stat-item {
    text-align: center;
}
.stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.stat-label {
    color: var(--text-muted);
    font-size: 14px;
}

/* ===== HERO IMAGE (CSS Art) ===== */
.hero-image {
    flex: 1;
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 30px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glow);
}
.inbox-preview {
    background: rgba(10, 15, 30, 0.6);
    border-radius: 12px;
    padding: 20px;
}
.inbox-item {
    display: flex;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: var(--text-light);
    animation: fadeInItem 0.6s ease forwards;
}
.inbox-item:nth-child(2) { animation-delay: 0.2s; }
.inbox-item:nth-child(3) { animation-delay: 0.4s; }
.inbox-item .time {
    color: var(--text-muted);
    font-size: 13px;
}
.inbox-item .label {
    display: flex;
    align-items: center;
    gap: 10px;
}
.gold-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--gold);
    border-radius: 50%;
}

@keyframes fadeInItem {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ===== FEATURES ===== */
.features {
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
}
.features h2 {
    text-align: center;
    font-size: 38px;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 50px;
}
.features h2 .gold-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.feature-card {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    padding: 32px 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    transition: all 0.4s ease;
}
.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--gold);
    box-shadow: var(--shadow-glow);
}
.feature-icon {
    font-size: 44px;
    margin-bottom: 12px;
}
.feature-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-light);
}
.feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* ===== ABOUT PREVIEW ===== */
.about-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 60px auto;
    padding: 0 40px;
    gap: 40px;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 50px 40px;
}
.about-content h2 {
    font-size: 34px;
    font-weight: 800;
    color: var(--text-light);
}
.about-content p {
    color: var(--text-muted);
    max-width: 500px;
    line-height: 1.7;
    margin: 16px 0 24px;
}
.about-stats {
    display: flex;
    gap: 40px;
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    padding: 30px 40px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}
.about-stats div {
    text-align: center;
    color: var(--text-light);
}
.about-stats .stat-number {
    font-size: 28px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.about-stats .stat-label {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
}

/* ===== FOOTER ===== */
footer {
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--glass-border);
    padding: 40px 40px 20px;
}
.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}
.footer-logo .logo-text {
    font-size: 24px;
}
.footer-logo p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 4px;
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
}
.footer-links a:hover {
    color: var(--gold);
}
.footer-social {
    display: flex;
    gap: 16px;
}
.footer-social a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 14px;
    padding: 6px 14px;
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    transition: all 0.3s;
}
.footer-social a:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
    margin-top: 20px;
}

/* ===== AUTH PAGES (Login/Register) ===== */
.auth-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    background: var(--deep-blue);
}
.auth-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    border-radius: 24px;
    padding: 48px 40px;
    max-width: 460px;
    width: 100%;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-glow);
}
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}
.auth-logo .logo-text {
    font-size: 32px;
}
.auth-logo p {
    color: var(--text-muted);
    font-size: 15px;
}
.auth-card h2 {
    font-size: 26px;
    color: var(--text-light);
    margin-bottom: 4px;
}
.auth-subtitle {
    color: var(--text-muted);
    margin-bottom: 28px;
}
.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    color: var(--text-light);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 6px;
}
.form-group input {
    width: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid var(--glass-border);
    background: rgba(10, 15, 30, 0.6);
    color: var(--text-light);
    font-size: 16px;
    transition: border 0.3s;
}
.form-group input:focus {
    outline: none;
    border-color: var(--gold);
}
.suggestions-box {
    background: rgba(10, 15, 30, 0.9);
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    margin-top: 6px;
    display: none;
    max-height: 160px;
    overflow-y: auto;
}
.suggestion-item {
    padding: 10px 14px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
    transition: background 0.2s;
}
.suggestion-item:hover {
    background: rgba(245, 166, 35, 0.08);
}
.status-message {
    font-size: 13px;
    margin-top: 4px;
    display: block;
}
.terms-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 20px 0 24px;
}
.terms-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--gold);
}
.terms-group label {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.5;
}
.terms-group a {
    color: var(--gold);
    text-decoration: none;
}
.terms-group a:hover {
    text-decoration: underline;
}
.auth-footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 24px;
}
.auth-footer a {
    color: var(--gold);
    text-decoration: none;
    font-weight: 600;
}
.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== ABOUT PAGE ===== */
.about-page {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 40px 60px;
}
.about-hero {
    text-align: center;
    margin-bottom: 50px;
}
.about-hero h1 {
    font-size: 48px;
    font-weight: 900;
    color: var(--text-light);
}
.about-hero .tagline {
    font-size: 18px;
    color: var(--text-muted);
}
.about-story,
.about-mission,
.about-connect {
    background: var(--card-bg);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    padding: 36px 40px;
    margin-bottom: 28px;
    border: 1px solid var(--glass-border);
}
.about-story h2,
.about-mission h2,
.about-connect h2 {
    color: var(--text-light);
    font-size: 26px;
    margin-bottom: 16px;
}
.about-story p,
.about-mission p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 12px;
}
.mission-stats {
    display: flex;
    gap: 40px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}
.mission-stats div {
    color: var(--text-light);
}
.mission-stats .stat-number {
    display: block;
    font-size: 28px;
    font-weight: 800;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 16px 0;
}
.social-btn {
    padding: 10px 24px;
    border-radius: 50px;
    background: rgba(10, 15, 30, 0.6);
    color: var(--text-light);
    border: 1px solid var(--glass-border);
    text-decoration: none;
    transition: all 0.3s;
}
.social-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.final-note {
    color: var(--text-muted);
    font-style: italic;
    margin-top: 24px;
    font-size: 16px;
    text-align: center;
}
/* ADS SECTION */
.ads-section {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 40px;
}
.ad-banner {
    background: var(--secondary-bg);
    border: 1px dashed var(--gold);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    position: relative;
}
.ad-banner p {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
}
.ad-label {
    position: absolute;
    top: 8px;
    right: 16px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--primary-bg);
    padding: 2px 12px;
    border-radius: 20px;
}