/* Moe's Tavern Landing Page - Mobile First Responsive CSS */

/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4a90d9;
    --secondary-color: #2c3e50;
    --accent-color: #27ae60;
    --text-color: #333;
    --light-bg: #f8f9fa;
    --dark-bg: #1a1a2e;
    --code-bg: #2d2d2d;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--dark-bg) 0%, #16213e 100%);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.logo {
    font-size: 0.4rem;
    line-height: 1.2;
    color: var(--primary-color);
    overflow-x: auto;
    white-space: pre;
}

.hero h1 {
    font-size: 1.5rem;
    margin: 1rem 0 0.5rem;
}

.tagline {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 200px;
    text-align: center;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

/* Features Section */
.features {
    padding: 3rem 0;
    background: var(--light-bg);
}

.features h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.feature {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Architecture Section */
.architecture {
    padding: 3rem 0;
}

.architecture h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.arch-diagram {
    background: var(--code-bg);
    border-radius: 8px;
    padding: 1rem;
    overflow-x: auto;
}

.arch-diagram pre {
    color: #e0e0e0;
    font-size: 0.6rem;
    line-height: 1.3;
    white-space: pre;
}

.arch-note {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* Getting Started Section */
.getting-started {
    padding: 3rem 0;
    background: var(--light-bg);
}

.getting-started h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.getting-started h3 {
    margin: 1.5rem 0 0.75rem;
    color: var(--secondary-color);
}

.getting-started pre {
    background: var(--code-bg);
    color: #e0e0e0;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-size: 0.85rem;
}

.getting-started code {
    font-family: 'Monaco', 'Consolas', monospace;
}

/* Documentation Links */
.docs-links {
    padding: 3rem 0;
}

.docs-links h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
}

.doc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.doc-link {
    display: block;
    padding: 1.5rem;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}

.doc-link:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.doc-link h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.doc-link p {
    font-size: 0.9rem;
    color: #666;
}

/* Footer */
.footer {
    background: var(--dark-bg);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-links {
    margin: 1rem 0;
}

.footer-links a {
    color: var(--primary-color);
    text-decoration: none;
    margin: 0 0.75rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

.license {
    font-size: 0.85rem;
    opacity: 0.7;
}

/* Tablet and up (min-width: 768px) */
@media (min-width: 768px) {
    .hero {
        padding: 4rem 0;
    }

    .logo {
        font-size: 0.55rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
    }

    .btn {
        width: auto;
    }

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

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

    .arch-diagram pre {
        font-size: 0.75rem;
    }
}

/* Desktop (min-width: 1024px) */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    .hero {
        padding: 5rem 0;
    }

    .logo {
        font-size: 0.7rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .doc-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .arch-diagram pre {
        font-size: 0.85rem;
    }

    .features,
    .architecture,
    .getting-started,
    .docs-links {
        padding: 4rem 0;
    }
}
