/* ===== Professional Design System Showcase Theme ===== */
/* Comprehensive Design Documentation & Component Libraries */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --ds-primary: #6366f1;
    --ds-primary-dark: #4f46e5;
    --ds-secondary: #8b5cf6;
    --ds-accent: #ec4899;
    --ds-dark: #0f172a;
    --ds-dark-light: #1e293b;
    --ds-light: #f8fafc;
    --ds-text: #1e293b;
    --ds-text-light: #64748b;
    --ds-border: #e2e8f0;
    --ds-shadow: rgba(15, 23, 42, 0.08);
    --ds-shadow-hover: rgba(15, 23, 42, 0.12);
}

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

body.design-system-showcase-page {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--ds-light);
    color: var(--ds-text);
    line-height: 1.7;
    overflow-x: hidden;
}

.ds-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--ds-border);
    box-shadow: 0 2px 20px var(--ds-shadow);
    z-index: 1000;
    padding: 1.25rem 0;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.ds-header.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 30px var(--ds-shadow-hover);
}

.ds-header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ds-logo {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ds-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
}

.ds-nav-link {
    color: var(--ds-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

.ds-hero {
    margin-top: 80px;
    padding: 6rem 3rem 4rem;
    background: linear-gradient(135deg, var(--ds-dark) 0%, var(--ds-dark-light) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ds-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.ds-hero-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ds-hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ds-hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto;
}

.ds-hero-description {
    margin-top: 2rem;
    font-size: 1rem;
    opacity: 0.85;
    line-height: 1.8;
}

.ds-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

.ds-intro {
    max-width: 900px;
    margin: 0 auto 5rem;
    text-align: center;
}

.ds-intro-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 600;
    color: var(--ds-dark);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.ds-intro-text {
    font-size: 1.1rem;
    color: var(--ds-text-light);
    line-height: 1.9;
    margin-bottom: 2rem;
}

.ds-showcase-item {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px var(--ds-shadow);
    margin-bottom: 4rem;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--ds-border);
}

.ds-showcase-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--ds-shadow-hover);
    border-color: var(--ds-primary);
}

.ds-showcase-header {
    padding: 3rem 3rem 2rem;
    border-bottom: 1px solid var(--ds-border);
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
}

.ds-showcase-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 600;
    color: var(--ds-dark);
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.ds-showcase-title::before {
    content: '';
    width: 4px;
    height: 2rem;
    background: linear-gradient(135deg, var(--ds-primary) 0%, var(--ds-secondary) 100%);
    border-radius: 2px;
}

.ds-showcase-subtitle {
    font-size: 1rem;
    color: var(--ds-text-light);
    font-weight: 400;
    margin-bottom: 1.5rem;
    margin-left: 1.75rem;
}

.ds-showcase-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--ds-border);
    margin-left: 1.75rem;
}

.ds-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--ds-text-light);
    font-family: 'JetBrains Mono', monospace;
}

.ds-meta-item i {
    color: var(--ds-primary);
    font-size: 0.9rem;
}

.ds-showcase-description {
    padding: 2rem 3rem;
    background: white;
}

.ds-description-section {
    margin-bottom: 2rem;
}

.ds-description-section:last-child {
    margin-bottom: 0;
}

.ds-description-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--ds-dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.ds-description-title i {
    color: var(--ds-primary);
    font-size: 0.9rem;
}

.ds-description-text {
    font-size: 1rem;
    color: var(--ds-text);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.ds-description-list {
    list-style: none;
    padding-left: 0;
    margin-top: 0.75rem;
}

.ds-description-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--ds-text);
    line-height: 1.7;
}

.ds-description-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--ds-primary);
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.ds-showcase-preview {
    padding: 0;
    background: #f8f8f8;
    border-top: 1px solid var(--ds-border);
}

.ds-preview-container {
    position: relative;
    width: 100%;
    padding: 2rem;
    min-height: 600px;
    background: var(--ds-light);
}

.ds-preview-container iframe {
    width: 100%;
    height: 800px;
    border: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--ds-shadow);
    background: white;
}

.ds-showcase-features {
    padding: 2rem 3rem;
    background: linear-gradient(135deg, #fafafa 0%, #ffffff 100%);
    border-top: 1px solid var(--ds-border);
}

.ds-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.ds-feature-item {
    padding: 1.5rem;
    background: white;
    border-radius: 8px;
    border: 1px solid var(--ds-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.ds-feature-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(135deg, var(--ds-primary) 0%, var(--ds-secondary) 100%);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.ds-feature-item:hover {
    border-color: var(--ds-primary);
    box-shadow: 0 4px 12px var(--ds-shadow);
    transform: translateY(-2px);
}

.ds-feature-item:hover::before {
    transform: scaleY(1);
}

.ds-feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--ds-primary) 0%, var(--ds-secondary) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.25rem;
}

.ds-feature-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ds-dark);
    margin-bottom: 0.5rem;
    font-family: 'Space Grotesk', sans-serif;
}

.ds-feature-text {
    font-size: 0.9rem;
    color: var(--ds-text-light);
    line-height: 1.6;
}

.ds-tech-stack {
    padding: 2rem 3rem;
    background: white;
    border-top: 1px solid var(--ds-border);
}

.ds-tech-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--ds-dark);
    margin-bottom: 1rem;
    font-family: 'Space Grotesk', sans-serif;
}

.ds-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.ds-tech-tag {
    padding: 0.5rem 1rem;
    background: var(--ds-light);
    border: 1px solid var(--ds-border);
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ds-text);
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.2s ease;
}

.ds-tech-tag:hover {
    background: var(--ds-primary);
    color: white;
    border-color: var(--ds-primary);
}

.ds-footer {
    margin-top: 6rem;
    padding: 4rem 3rem;
    background: var(--ds-dark);
    color: white;
    text-align: center;
}

.ds-footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.ds-footer-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.75rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    display: inline-block;
    margin: 1rem;
    transition: all 0.3s ease;
}

.ds-footer-link:hover {
    background: white;
    color: var(--ds-dark);
    border-color: white;
}

.ds-footer-text {
    margin-top: 2rem;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 968px) {
    .ds-preview-container iframe {
        height: 600px;
    }
    
    .ds-features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .ds-header-container,
    .ds-content,
    .ds-showcase-header,
    .ds-showcase-description,
    .ds-showcase-features,
    .ds-tech-stack {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
    
    .ds-hero {
        padding: 4rem 1.5rem 3rem;
    }
    
    .ds-preview-container {
        padding: 1rem;
    }
    
    .ds-preview-container iframe {
        height: 500px;
    }
}

/* Animations */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ds-showcase-item {
    animation: fade-in-up 0.6s ease-out backwards;
}

.ds-showcase-item:nth-child(1) { animation-delay: 0.1s; }
.ds-showcase-item:nth-child(2) { animation-delay: 0.2s; }

