/* ============================================
   SpaceX IPO Tracker 2026 - Pure CSS
   Mobile-Responsive, Dark Navy/White Theme
   ============================================ */

/* Root Variables */
:root {
    --primary-dark: #0f1419;
    --primary-navy: #1a2332;
    --accent-blue: #2563eb;
    --accent-light: #3b82f6;
    --text-white: #ffffff;
    --text-gray: #d1d5db;
    --text-muted: #9ca3af;
    --border-color: #374151;
    --success-green: #10b981;
    --warning-orange: #f97316;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-navy) 100%);
    color: var(--text-gray);
    line-height: 1.6;
    font-size: 16px;
}

a {
    color: var(--accent-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-blue);
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Navigation */
.header {
    background: rgba(26, 35, 50, 0.9);
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 28px;
    color: var(--text-white);
    font-weight: 700;
}

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

.nav a {
    color: var(--text-gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: var(--accent-light);
}

/* Hero Section */
.hero {
    padding: 60px 0;
    text-align: center;
}

.hero-content h2 {
    font-size: 48px;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.2;
}

.hero-content > p {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Countdown Timer */
.countdown-container {
    margin: 50px 0;
}

.countdown {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.countdown-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 25px 15px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.countdown-item:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--accent-blue);
}

.countdown-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--accent-light);
    margin-bottom: 8px;
}

.countdown-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.countdown-text {
    color: var(--text-muted);
    margin-top: 30px;
    font-size: 14px;
}

/* AdSense Slots */
.adsense-slot {
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px;
    margin: 40px 0;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* When Section */
.when-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.when-section h2,
.valuation-section h2,
.investment-section h2,
.news-section h2,
.faq-section h2 {
    font-size: 36px;
    color: var(--text-white);
    margin-bottom: 40px;
    text-align: center;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.content-box {
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.content-box:hover {
    border-color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-5px);
}

.content-box h3 {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 15px;
}

.content-box p {
    color: var(--text-gray);
    margin-bottom: 15px;
    line-height: 1.8;
}

.content-box ul {
    list-style: none;
    margin-top: 15px;
}

.content-box li {
    padding-left: 25px;
    position: relative;
    margin-bottom: 10px;
    color: var(--text-gray);
}

.content-box li:before {
    content: "▸";
    position: absolute;
    left: 0;
    color: var(--accent-light);
    font-weight: bold;
}

/* Valuation Section */
.valuation-section {
    padding: 80px 0;
}

.valuation-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.valuation-box {
    background: rgba(26, 35, 50, 0.8);
    border: 2px solid var(--border-color);
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
}

.valuation-box:hover {
    border-color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.08);
}

.valuation-box h3 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 20px;
}

.big-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--accent-light);
    margin: 20px 0;
}

.valuation-box p {
    color: var(--text-gray);
    line-height: 1.8;
}

.disclaimer-box {
    background: rgba(249, 115, 22, 0.1);
    border-left: 4px solid var(--warning-orange);
    padding: 20px 25px;
    border-radius: 8px;
    color: var(--text-gray);
    margin: 40px 0;
}

/* Investment Section */
.investment-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.investment-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.option-card {
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.option-card:hover {
    border-color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.05);
    transform: translateY(-5px);
}

.option-card h3 {
    font-size: 20px;
    color: var(--text-white);
    margin-bottom: 10px;
}

.option-card > p {
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.option-card ul {
    list-style: none;
    margin: 20px 0;
}

.option-card li {
    padding-left: 20px;
    position: relative;
    margin-bottom: 12px;
    color: var(--text-gray);
    font-size: 14px;
}

.option-card li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-green);
    font-weight: bold;
}

.note {
    background: rgba(255, 255, 255, 0.05);
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 15px;
}

/* News Section */
.news-section {
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.news-item {
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid var(--border-color);
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--accent-blue);
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(37, 99, 235, 0.08);
    border-color: var(--accent-light);
    transform: translateX(5px);
}

.news-item h3 {
    font-size: 18px;
    color: var(--text-white);
    margin-bottom: 15px;
}

.news-item p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 14px;
}

.news-item strong {
    color: var(--accent-light);
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: rgba(255, 255, 255, 0.02);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(26, 35, 50, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-question {
    width: 100%;
    padding: 20px 25px;
    text-align: left;
    background: rgba(26, 35, 50, 0.8);
    color: var(--text-white);
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-light);
}

.faq-question:after {
    content: "▼";
    font-size: 12px;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question:after {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    background: rgba(37, 99, 235, 0.05);
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 20px 25px;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 0;
}

/* Email Section */
.email-section {
    padding: 60px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(16, 185, 129, 0.05));
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.email-section h2 {
    font-size: 32px;
    color: var(--text-white);
    margin-bottom: 15px;
}

.email-section > .container > p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.email-form {
    display: flex;
    max-width: 500px;
    margin: 0 auto 20px;
    gap: 10px;
}

.email-form input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-white);
    font-size: 14px;
    transition: all 0.3s ease;
}

.email-form input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.email-form input::placeholder {
    color: var(--text-muted);
}

.email-form button {
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-light));
    color: var(--text-white);
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.email-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.form-note {
    font-size: 12px;
    color: var(--text-muted);
}

/* Share Section */
.share-section {
    padding: 40px 0;
    text-align: center;
}

.share-section h3 {
    color: var(--text-white);
    margin-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    border: 1px solid var(--border-color);
}

.share-btn.twitter {
    background: rgba(15, 20, 25, 0.8);
    color: var(--text-white);
}

.share-btn.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    color: var(--text-white);
}

.share-btn.reddit {
    background: rgba(255, 69, 0, 0.1);
    color: #ff4500;
}

.share-btn.reddit:hover {
    background: #ff4500;
    color: var(--text-white);
}

/* Footer */
.footer {
    background: rgba(26, 35, 50, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 50px 0 30px;
    margin-top: 80px;
}

.footer .container {
    text-align: center;
}

.footer p {
    color: var(--text-gray);
    margin-bottom: 15px;
    font-size: 14px;
}

.footer strong {
    color: var(--text-white);
}

.disclaimer {
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.6;
    max-width: 800px;
    margin: 20px auto;
}

.footer-links {
    margin-top: 20px;
}

.footer-links a {
    margin: 0 15px;
    font-size: 13px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 20px;
    }

    .logo h1 {
        font-size: 22px;
    }

    .nav {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav a {
        font-size: 13px;
    }

    .hero-content h2 {
        font-size: 32px;
    }

    .hero-content > p {
        font-size: 16px;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .countdown-number {
        font-size: 28px;
    }

    .when-section h2,
    .valuation-section h2,
    .investment-section h2,
    .news-section h2,
    .faq-section h2 {
        font-size: 28px;
    }

    .big-number {
        font-size: 36px;
    }

    .email-form {
        flex-direction: column;
    }

    .email-form input,
    .email-form button {
        width: 100%;
    }

    .share-buttons {
        flex-direction: column;
    }

    .share-btn {
        width: 100%;
    }

    .valuation-box {
        padding: 30px 20px;
    }

    .content-box,
    .option-card,
    .news-item {
        padding: 25px;
    }

    section {
        padding: 50px 0 !important;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .logo h1 {
        font-size: 18px;
    }

    .nav {
        gap: 10px;
    }

    .nav a {
        font-size: 11px;
    }

    .hero-content h2 {
        font-size: 24px;
    }

    .hero-content > p {
        font-size: 14px;
    }

    .countdown {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .countdown-item {
        padding: 15px 10px;
    }

    .countdown-number {
        font-size: 24px;
    }

    .countdown-label {
        font-size: 10px;
    }

    .when-section h2,
    .valuation-section h2,
    .investment-section h2,
    .news-section h2,
    .faq-section h2 {
        font-size: 22px;
    }

    .big-number {
        font-size: 28px;
    }

    .content-box h3,
    .option-card h3,
    .news-item h3 {
        font-size: 16px;
    }

    .footer p {
        font-size: 12px;
    }

    .disclaimer {
        font-size: 11px;
    }
}

/* Print Styles */
@media print {
    .header,
    .footer,
    .adsense-slot,
    .email-section,
    .share-section {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .content-box,
    .valuation-box,
    .option-card,
    .news-item {
        border: 1px solid #ccc;
        page-break-inside: avoid;
    }
}
