/* ==========================================================================
   DENIZCITIL.COM — OFFICIAL PORTAL LANDING PAGE STYLES
   Theme: Absolute Elegance (Obsidian Black & Metallic Gold)
   Architecture: Modular CSS Variables, Flexbox/Grid, Glassmorphism, Micro-interactions
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Color Palette */
    --bg-dark: #050507;
    --bg-dark-secondary: #0A0A0E;
    --bg-card: rgba(15, 15, 22, 0.65);
    --bg-card-hover: rgba(22, 22, 32, 0.85);

    /* Metallic Gold Palette */
    --gold-primary: #D4AF37;
    --gold-bright: #FFE082;
    --gold-dark: #996515;
    --gold-deep: #70480A;
    --gold-gradient: linear-gradient(135deg, #FFE082 0%, #D4AF37 50%, #996515 100%);
    --gold-gradient-hover: linear-gradient(135deg, #FFF0B5 0%, #F3C649 50%, #B88220 100%);
    --gold-glow: rgba(212, 175, 55, 0.25);
    --gold-glow-intense: rgba(212, 175, 55, 0.5);

    /* Platinum & Neutral Palette */
    --platinum-100: #FFFFFF;
    --platinum-200: #F8FAFC;
    --platinum-300: #E2E8F0;
    --platinum-400: #94A3B8;
    --platinum-500: #64748B;
    --border-subtle: rgba(212, 175, 55, 0.15);
    --border-bright: rgba(212, 175, 55, 0.4);

    /* Status Colors */
    --green-live: #10B981;
    --red-down: #EF4444;

    /* Typography */
    --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-serif: 'Cinzel', serif;

    /* Transitions & Shadows */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --glass-blur: blur(16px);
    --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(212, 175, 55, 0.05);
}

/* --------------------------------------------------------------------------
   2. GLOBAL RESET & BASE STYLES
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background-color: var(--bg-dark);
    color: var(--platinum-200);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background: radial-gradient(circle at 50% 20%, rgba(20, 20, 30, 0.9) 0%, var(--bg-dark) 80%);
}

/* Dynamic Background Canvas */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Utility Classes */
.gold-gradient-text {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.gold-text {
    color: var(--gold-primary);
}

.gold-icon {
    color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   3. REAL-TIME FINANCIAL TICKER BAR
   -------------------------------------------------------------------------- */
.ticker-wrapper {
    position: relative;
    z-index: 100;
    height: 44px;
    background: rgba(8, 8, 12, 0.92);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    overflow: hidden;
    font-size: 0.825rem;
}

.ticker-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    background: rgba(212, 175, 55, 0.1);
    height: 100%;
    border-right: 1px solid var(--border-subtle);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--gold-bright);
    white-space: nowrap;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--green-live);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--green-live);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.ticker-content-container {
    flex: 1;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
}

.ticker-track {
    display: flex;
    align-items: center;
    gap: 32px;
    white-space: nowrap;
    animation: marquee 35s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.ticker-item .symbol {
    font-weight: 600;
    color: var(--platinum-300);
}

.ticker-item .price {
    font-weight: 700;
    color: var(--platinum-100);
    font-family: 'Outfit', monospace;
}

.ticker-item .change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 4px;
}

.ticker-item .change.positive {
    color: #34D399;
    background: rgba(52, 211, 153, 0.1);
}

.ticker-item .change.negative {
    color: #F87171;
    background: rgba(248, 113, 113, 0.1);
}

.ticker-status {
    padding: 0 16px;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--gold-bright);
    background: rgba(10, 10, 14, 0.95);
    border-left: 1px solid var(--border-subtle);
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. APP CONTAINER & NAVIGATION HEADER
   -------------------------------------------------------------------------- */
.app-container {
    position: relative;
    z-index: 10;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px 60px;
}

.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 32px 0 40px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-mark {
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.3));
    transition: var(--transition-smooth);
}

.brand:hover .logo-mark {
    transform: scale(1.06) rotate(3deg);
}

.brand-text {
    display: flex;
    flex-direction: column;
}

.domain-name {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: 0.1em;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-tagline {
    font-size: 0.68rem;
    letter-spacing: 0.25em;
    color: var(--platinum-400);
    font-weight: 600;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.badge-access {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--gold-bright);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--gold-primary);
    border-radius: 50%;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--gold-primary);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.icon-btn:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
    transform: translateY(-2px);
    box-shadow: 0 0 15px var(--gold-glow);
}

/* --------------------------------------------------------------------------
   5. HERO SECTION
   -------------------------------------------------------------------------- */
.hero-section {
    text-align: center;
    max-width: 900px;
    margin: 20px auto 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    background: rgba(212, 175, 55, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--gold-bright);
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.6rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--platinum-100);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.7;
    color: var(--platinum-400);
    max-width: 720px;
    margin-bottom: 48px;
}

.hero-subtitle strong {
    color: var(--platinum-100);
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   6. PRECISION COUNTDOWN ENGINE
   -------------------------------------------------------------------------- */
.countdown-wrapper {
    width: 100%;
    margin-bottom: 50px;
}

.countdown-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 24px;
}

.countdown-subtitle {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.25em;
    color: var(--gold-primary);
}

.target-date {
    font-size: 0.85rem;
    color: var(--platinum-400);
}

.countdown-grid {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.time-card {
    position: relative;
    width: 150px;
    height: 160px;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(145deg, rgba(212, 175, 55, 0.3) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0.8) 100%);
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.time-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px var(--gold-glow);
}

.glass-inner {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
    overflow: hidden;
}

.number-wrapper {
    font-family: var(--font-heading);
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
    margin-bottom: 8px;
}

.label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--platinum-400);
}

.time-separator {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gold-primary);
    opacity: 0.6;
    margin-bottom: 20px;
}

.highlight-seconds .number-wrapper {
    animation: tick-pulse 1s ease-in-out infinite;
}

@keyframes tick-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   7. VIP NEWSLETTER FORM & GLASS PANELS
   -------------------------------------------------------------------------- */
.glass-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.newsletter-card {
    width: 100%;
    max-width: 780px;
    padding: 36px 40px;
    margin: 0 auto;
    transition: var(--transition-smooth);
}

.newsletter-card:hover {
    border-color: var(--border-bright);
}

.newsletter-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.newsletter-text {
    text-align: center;
}

.newsletter-text h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--platinum-100);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.newsletter-text p {
    font-size: 0.95rem;
    color: var(--platinum-400);
}

.subscribe-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(5, 5, 8, 0.8);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 6px 6px 6px 20px;
    transition: var(--transition-fast);
}

.input-group:focus-within {
    border-color: var(--gold-primary);
    box-shadow: 0 0 20px var(--gold-glow);
}

.input-icon {
    color: var(--platinum-400);
    font-size: 1.1rem;
    margin-right: 14px;
}

.input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--platinum-100);
    font-family: var(--font-body);
    font-size: 0.98rem;
    padding: 10px 0;
}

.input-group input::placeholder {
    color: var(--platinum-500);
}

.gold-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--gold-gradient);
    border: none;
    border-radius: 12px;
    color: #050507;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 20px var(--gold-glow);
    white-space: nowrap;
}

.gold-btn:hover {
    background: var(--gold-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--gold-glow-intense);
}

.gold-btn:active {
    transform: translateY(0);
}

.form-message {
    font-size: 0.875rem;
    text-align: center;
    min-height: 24px;
    transition: var(--transition-fast);
}

.form-message.success {
    color: #34D399;
    font-weight: 600;
}

.form-message.error {
    color: #F87171;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   8. TRENDING GLOBAL & TECH TOPICS (ASYMMETRICAL GRID)
   -------------------------------------------------------------------------- */
.trends-section {
    margin-top: 80px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.section-tag {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--gold-primary);
    margin-bottom: 6px;
}

.section-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--platinum-100);
}

.trends-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 15, 22, 0.8);
    padding: 4px;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
}

.filter-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    color: var(--platinum-400);
    font-size: 0.825rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.filter-btn:hover {
    color: var(--platinum-100);
}

.filter-btn.active {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold-bright);
    border: 1px solid var(--border-subtle);
}

.refresh-btn {
    width: 38px;
    height: 38px;
}

/* Asymmetrical Grid */
.trends-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.trend-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.trend-card:hover {
    transform: translateY(-6px);
    border-color: var(--border-bright);
    box-shadow: var(--card-shadow);
}

/* Asymmetrical Spans */
.trend-card.featured {
    grid-column: span 2;
    background: linear-gradient(135deg, rgba(25, 25, 38, 0.8) 0%, rgba(12, 12, 18, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.trend-card.tall {
    grid-row: span 2;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-tag {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    padding: 4px 10px;
    border-radius: 6px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold-bright);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.card-time {
    font-size: 0.75rem;
    color: var(--platinum-500);
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--platinum-100);
    margin-bottom: 12px;
    line-height: 1.4;
}

.trend-card.featured .card-body h3 {
    font-size: 1.6rem;
}

.card-body p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--platinum-400);
    margin-bottom: 24px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.8rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--platinum-400);
}

.read-more-link {
    color: var(--gold-primary);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.read-more-link:hover {
    color: var(--gold-bright);
    transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   9. FOOTER
   -------------------------------------------------------------------------- */
.main-footer {
    margin-top: 100px;
    padding-top: 40px;
    border-top: 1px solid var(--border-subtle);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 0.1em;
    color: var(--platinum-100);
    margin-bottom: 8px;
}

.footer-info p {
    font-size: 0.875rem;
    color: var(--platinum-400);
    max-width: 420px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    color: var(--platinum-300);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.social-icon:hover {
    background: rgba(212, 175, 55, 0.15);
    border-color: var(--gold-primary);
    color: var(--gold-bright);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--platinum-500);
    flex-wrap: wrap;
    gap: 16px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    background: var(--green-live);
    border-radius: 50%;
}

/* --------------------------------------------------------------------------
   10. RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .trends-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trend-card.featured {
        grid-column: span 2;
    }

    .trend-card.tall {
        grid-row: span 1;
    }
}

@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }

    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .countdown-grid {
        gap: 10px;
    }

    .time-card {
        width: 75px;
        height: 95px;
    }

    .number-wrapper {
        font-size: 2rem;
    }

    .label {
        font-size: 0.6rem;
    }

    .time-separator {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .newsletter-card {
        padding: 24px;
    }

    .input-group {
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        gap: 12px;
    }

    .input-icon {
        display: none;
    }

    .gold-btn {
        width: 100%;
    }

    .trends-grid {
        grid-template-columns: 1fr;
    }

    .trend-card.featured {
        grid-column: span 1;
    }

    .footer-top, .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}
