/* WUT - Professional Wu-Tang Documentation Styles */

:root {
    --primary-color: #FFD700;
    --secondary-color: #FF4500;
    --accent-color: #00FFFF;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-dark: #1a1a1a;
    --border-color: #e1e5e9;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
}

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

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.navbar {
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.logo {
    font-size: 24px;
}

.brand-text {
    font-size: 24px;
    color: var(--text-primary);
    text-decoration: none;
}

.version {
    background: var(--primary-color);
    color: var(--bg-dark);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

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

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.external::after {
    content: "↗";
    margin-left: 4px;
    font-size: 12px;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
    padding: 80px 0 120px 0;
    position: relative;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.2;
}

.subtitle {
    display: block;
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-top: 8px;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

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

.btn-primary:hover {
    background: #e6c200;
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border-color);
}

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

.hero-demo {
    margin-top: 40px;
}

.demo-gif {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-hover);
}

/* Sections */
.section {
    padding: 80px 0;
}

.bg-secondary {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
    color: var(--text-primary);
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Philosophy Section */
.philosophy-content {
    max-width: 800px;
    margin: 0 auto;
}

.philosophy-text h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--primary-color);
}

.philosophy-text h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 32px 0 16px 0;
    color: var(--text-primary);
}

.philosophy-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.wisdom-quote {
    background: var(--bg-primary);
    border-left: 4px solid var(--primary-color);
    padding: 24px;
    margin: 32px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.7;
}

.wisdom-quote cite {
    display: block;
    margin-top: 16px;
    font-style: normal;
    font-weight: 600;
    color: var(--primary-color);
}

.philosophy-list {
    list-style: none;
    padding: 0;
}

.philosophy-list li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.philosophy-list li::before {
    content: "🐉";
    position: absolute;
    left: 0;
}

/* Installation */
.install-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
    max-width: 900px;
    margin: 0 auto;
}

.install-method {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.install-method h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.install-method p {
    color: var(--text-secondary);
    margin-top: 16px;
}

.code-block {
    background: var(--bg-dark);
    color: #e1e5e9;
    padding: 16px;
    border-radius: 8px;
    font-family: var(--font-mono);
    font-size: 14px;
    overflow-x: auto;
}

.code-block code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* API Reference */
.api-intro {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 60px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.package-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.package-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.package-name {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.package-path {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.package-desc {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.package-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
}

.package-link:hover {
    text-decoration: underline;
}

.api-highlight {
    background: var(--bg-primary);
    border-radius: 12px;
    padding: 40px;
    box-shadow: var(--shadow);
}

.api-highlight h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.code-example {
    margin: 24px 0;
}

.code-example pre {
    background: var(--bg-dark);
    color: #e1e5e9;
    padding: 24px;
    border-radius: 8px;
    overflow-x: auto;
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.5;
}

.code-example code.go {
    background: none;
    color: inherit;
}

.code-explanation {
    color: var(--text-secondary);
    line-height: 1.7;
    font-style: italic;
}

/* Examples */
.examples-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.example-card {
    background: var(--bg-primary);
    padding: 32px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.example-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.example-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-top: 16px;
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: #e1e5e9;
    padding: 60px 0 40px 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 16px;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-section a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 24px;
    text-align: center;
    color: #888;
}

.footer-bottom p {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .nav-links {
        gap: 16px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 60px 0 80px 0;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .install-grid,
    .package-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-grid,
    .examples-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        padding: 0 16px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Code syntax highlighting hints */
.code-example .keyword { color: #ff79c6; }
.code-example .string { color: #f1fa8c; }
.code-example .comment { color: #6272a4; }
.code-example .function { color: #50fa7b; }