/* GrowthShower Analytics Knowledge Base - Beautiful Blue Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: #1f2937;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 50%, #1d4ed8 100%);
    color: white;
    padding: 1.5rem 0;
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

nav {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    text-decoration: none;
    color: white;
    background: linear-gradient(45deg, #ffffff, #bfdbfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

/* Main Content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #1e40af, #3b82f6, #60a5fa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hero p {
    font-size: 1.25rem;
    color: #6b7280;
    font-weight: 500;
}

/* Categories Grid */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(30, 64, 175, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(30, 64, 175, 0.1);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(30, 64, 175, 0.15);
    border-color: rgba(30, 64, 175, 0.2);
}

.category-card h2 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.category-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Articles List */
.articles-list {
    list-style: none;
    padding: 0;
}

.articles-list li {
    margin-bottom: 0.75rem;
}

.articles-list a {
    color: #374151;
    text-decoration: none;
    display: block;
    padding: 1rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    font-weight: 500;
}

.articles-list a:hover {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    color: #1e40af;
    border-color: rgba(30, 64, 175, 0.2);
    transform: translateX(4px);
}

/* Article Content */
.article-content {
    max-width: 900px;
    margin: 0 auto;
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(30, 64, 175, 0.1);
    border: 1px solid rgba(30, 64, 175, 0.1);
    position: relative;
}

.article-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, #1e40af, #3b82f6, #60a5fa);
    border-radius: 20px 20px 0 0;
}

.article-body {
    line-height: 1.8;
    color: #374151;
}

.article-body h1, .article-body h2, .article-body h3 {
    color: #1e40af;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.article-body h1 {
    font-size: 2.5rem;
    margin-top: 0;
}

.article-body h2 {
    font-size: 2rem;
}

.article-body h3 {
    font-size: 1.5rem;
}

.article-body p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.article-body a {
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.article-body a:hover {
    border-bottom-color: #1e40af;
}

.article-body ul, .article-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.article-body li {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.article-body code {
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-family: 'Monaco', 'Consolas', monospace;
    color: #1e40af;
    border: 1px solid rgba(30, 64, 175, 0.1);
}

.article-body pre {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    border: 1px solid rgba(30, 64, 175, 0.1);
    margin: 2rem 0;
}

.article-body blockquote {
    border-left: 4px solid #1e40af;
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #6b7280;
    background: #eff6ff;
    padding: 1.5rem;
    border-radius: 0 12px 12px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .article-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
    
    nav {
        padding: 0 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .article-content {
        padding: 1.5rem 1rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category-card {
    animation: fadeInUp 0.6s ease forwards;
}

.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.2s; }
.category-card:nth-child(3) { animation-delay: 0.3s; }
.category-card:nth-child(4) { animation-delay: 0.4s; }

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
a:focus, button:focus {
    outline: 2px solid #1e40af;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    header {
        background: none !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    .article-content {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
} 