/* supplychain.wiki - Bauhaus Knowledge Architecture */
/* Colors: #1a1a2e (deep base), #4a90d9 (primary blue), #f5f0e8 (warm off-white), #e8b84b (accent gold), #6c757d (muted gray) */
/* Font: Inter */

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

html { scroll-behavior: smooth; }

body {
    font-family: "Inter", sans-serif;
    background-color: #1a1a2e;
    color: #f5f0e8;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Bauhaus Background Decorative Elements */
.bauhaus-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bauhaus-circle-1 {
    position: absolute;
    top: -100px; right: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    border: 4px solid rgba(74, 144, 217, 0.1);
}

.bauhaus-circle-2 {
    position: absolute;
    bottom: 20%; left: -120px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: rgba(232, 184, 75, 0.05);
}

.bauhaus-triangle-1 {
    position: absolute;
    top: 40%; right: 5%;
    width: 0; height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(74, 144, 217, 0.04);
}

.bauhaus-rect-1 {
    position: absolute;
    top: 60%; left: 8%;
    width: 120px; height: 120px;
    border: 3px solid rgba(232, 184, 75, 0.08);
    transform: rotate(25deg);
}

.bauhaus-rect-2 {
    position: absolute;
    top: 15%; left: 30%;
    width: 60px; height: 60px;
    background: rgba(74, 144, 217, 0.04);
    transform: rotate(-15deg);
}
/* Header */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(26, 26, 46, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(74, 144, 217, 0.2);
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
}

.logo-icon { flex-shrink: 0; }

.site-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f5f0e8;
    letter-spacing: -0.02em;
}

.title-dot { color: #e8b84b; }

.main-nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover { color: #4a90d9; }

.nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px; left: 0;
    width: 0; height: 2px;
    background: #4a90d9;
    transition: width 0.3s ease;
}

.nav-link:hover::after { width: 100%; }

/* Hero */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 40px 60px;
}

.hero-grid {
    max-width: 1280px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(74, 144, 217, 0.12);
    border: 1px solid rgba(74, 144, 217, 0.3);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #4a90d9;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    color: #f5f0e8;
    margin-bottom: 24px;
}

.hero-title-accent { color: #e8b84b; }

.hero-desc {
    font-size: 1.15rem;
    color: #6c757d;
    max-width: 480px;
    margin-bottom: 36px;
    line-height: 1.7;
}

.hero-actions { display: flex; gap: 16px; }

.btn {
    display: inline-block;
    padding: 14px 32px;
    font-family: "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-primary {
    background: #4a90d9;
    color: #1a1a2e;
}

.btn-primary:hover {
    background: #5da0e9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 144, 217, 0.3);
}

.btn-outline {
    border: 2px solid #e8b84b;
    color: #e8b84b;
    background: transparent;
}

.btn-outline:hover {
    background: rgba(232, 184, 75, 0.1);
    transform: translateY(-2px);
}

.hero-visual { display: flex; justify-content: center; align-items: center; }

.hero-bauhaus-composition { width: 100%; max-width: 400px; }

.hero-svg {
    width: 100%;
    height: auto;
    animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}
/* Bauhaus Divider */
.bauhaus-divider {
    display: flex;
    height: 6px;
    margin: 40px auto;
    max-width: 1280px;
    padding: 0 40px;
    gap: 4px;
}

.divider-bar { flex: 1; border-radius: 3px; }
.divider-blue { background: #4a90d9; }
.divider-gold { background: #e8b84b; }
.divider-gray { background: #6c757d; }

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 40px;
}

.section-geo { margin-bottom: 20px; }

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #f5f0e8;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    max-width: 600px;
    margin: 0 auto;
}

/* Knowledge Section */
.knowledge-section {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 40px;
}

.wiki-grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 24px;
}

.wiki-card {
    background: rgba(245, 240, 232, 0.04);
    border: 1px solid rgba(245, 240, 232, 0.08);
    border-radius: 12px;
    padding: 28px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.wiki-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: linear-gradient(90deg, #4a90d9, transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.wiki-card:hover {
    background: rgba(245, 240, 232, 0.07);
    border-color: rgba(74, 144, 217, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.wiki-card:hover::before { opacity: 1; }

.wiki-card-wide { grid-column: span 2; }

.card-geo-accent {
    margin-bottom: 16px;
    opacity: 0.8;
}

.card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(74, 144, 217, 0.15);
    color: #4a90d9;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.tag-gold {
    background: rgba(232, 184, 75, 0.15);
    color: #e8b84b;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 10px;
}

.card-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(108, 117, 125, 0.7);
}
/* Topics Section - Asymmetric Grid */
.topics-section {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.topics-asymmetric {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
}

.topic-large { grid-row: span 2; }

.topic-block {
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(245, 240, 232, 0.08);
    border-radius: 12px;
    transition: all 0.4s ease;
    cursor: pointer;
}

.topic-block:hover {
    background: rgba(245, 240, 232, 0.06);
    border-color: rgba(232, 184, 75, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.topic-inner { padding: 28px; }

.topic-icon { margin-bottom: 16px; }

.topic-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 8px;
}

.topic-count {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 16px;
}

.topic-subtopics {
    list-style: none;
    padding: 0;
}

.topic-subtopics li {
    padding: 8px 0;
    border-top: 1px solid rgba(245, 240, 232, 0.06);
    font-size: 0.9rem;
    color: rgba(245, 240, 232, 0.7);
    transition: color 0.3s ease;
}

.topic-subtopics li:hover { color: #4a90d9; }

/* Flows Section */
.flows-section {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.flow-diagram-container {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.flow-canvas {
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(245, 240, 232, 0.08);
    border-radius: 16px;
    padding: 32px;
    overflow-x: auto;
}

.flow-svg { width: 100%; height: auto; min-width: 700px; }

.flow-label {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 600;
}

.flow-sublabel {
    font-family: "Inter", sans-serif;
    font-size: 11px;
    font-weight: 400;
    opacity: 0.7;
}

.flow-node { cursor: pointer; transition: transform 0.3s ease; }
.flow-node:hover { filter: brightness(1.2); }
.flow-node.active { filter: brightness(1.4); }

.flow-info-panel {
    background: rgba(245, 240, 232, 0.04);
    border: 1px solid rgba(245, 240, 232, 0.08);
    border-radius: 12px;
    padding: 28px;
    min-height: 120px;
}

.flow-info-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e8b84b;
    margin-bottom: 12px;
}

.flow-info-desc {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 16px;
}

.flow-info-stats {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.flow-stat {
    padding: 12px 20px;
    background: rgba(74, 144, 217, 0.1);
    border-radius: 8px;
}

.flow-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a90d9;
}

.flow-stat-label {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
}
/* Sustainability Section */
.sustainability-section {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 40px 40px 80px;
}

.sustainability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.sustain-card {
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(245, 240, 232, 0.08);
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
}

.sustain-card:hover {
    background: rgba(245, 240, 232, 0.06);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.sustain-leaf { margin-bottom: 20px; }

.sustain-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #f5f0e8;
    margin-bottom: 12px;
}

.sustain-desc {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.7;
    margin-bottom: 24px;
}

.sustain-metric {
    padding-top: 20px;
    border-top: 1px solid rgba(245, 240, 232, 0.08);
}

.metric-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: #4a90d9;
}

.metric-unit {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4a90d9;
}

.metric-label {
    display: block;
    font-size: 0.8rem;
    color: #6c757d;
    margin-top: 4px;
}

/* Skeleton Loading */
.skeleton-section {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 80px 40px;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.skeleton-card {
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(245, 240, 232, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.skeleton-card-image {
    height: 140px;
    background: linear-gradient(90deg, rgba(245, 240, 232, 0.04) 25%, rgba(245, 240, 232, 0.08) 50%, rgba(245, 240, 232, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite linear;
}

.skeleton-card-body { padding: 20px; }

.skeleton-line {
    height: 14px;
    border-radius: 7px;
    margin-bottom: 12px;
    background: linear-gradient(90deg, rgba(245, 240, 232, 0.04) 25%, rgba(245, 240, 232, 0.08) 50%, rgba(245, 240, 232, 0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.8s infinite linear;
}

.skeleton-title { width: 70%; height: 18px; }
.skeleton-text { width: 100%; }
.skeleton-short { width: 55%; }

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* Loaded Content / Updates */
.update-cards { display: flex; flex-direction: column; gap: 20px; }

.update-card {
    display: flex;
    background: rgba(245, 240, 232, 0.03);
    border: 1px solid rgba(245, 240, 232, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.update-card:hover {
    background: rgba(245, 240, 232, 0.06);
    transform: translateX(4px);
}

.update-accent-bar {
    width: 5px;
    flex-shrink: 0;
    background: #4a90d9;
}

.update-accent-gold { background: #e8b84b; }

.update-body { padding: 24px; }

.update-date {
    font-size: 0.8rem;
    color: #6c757d;
    display: block;
    margin-bottom: 8px;
}

.update-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f5f0e8;
    margin-bottom: 8px;
}

.update-excerpt {
    font-size: 0.9rem;
    color: #6c757d;
    line-height: 1.6;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 1;
    margin-top: 80px;
}

.footer-bauhaus {
    height: 80px;
    overflow: hidden;
}

.footer-geo-bar { width: 100%; height: 100%; display: block; }

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    padding: 60px 40px;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
}

.footer-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #f5f0e8;
    margin-bottom: 12px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: #6c757d;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e8b84b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.footer-link {
    display: block;
    color: #6c757d;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 0;
    transition: color 0.3s ease;
}

.footer-link:hover { color: #4a90d9; }

.footer-bottom {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 40px;
    border-top: 1px solid rgba(245, 240, 232, 0.08);
    text-align: center;
    font-size: 0.85rem;
    color: rgba(108, 117, 125, 0.6);
}

/* Animations for scroll reveal */
.wiki-card, .topic-block, .sustain-card, .update-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.wiki-card.visible, .topic-block.visible, .sustain-card.visible, .update-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Gradient halo for dreamy ethereal effect */
.hero::after {
    content: "";
    position: absolute;
    top: 20%; left: 50%;
    transform: translateX(-50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(74, 144, 217, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Responsive */
@media (max-width: 900px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .hero-title { font-size: 2.8rem; }
    .wiki-grid { grid-template-columns: 1fr; }
    .wiki-card-wide { grid-column: span 1; }
    .topics-asymmetric { grid-template-columns: 1fr 1fr; }
    .topic-large { grid-row: span 1; }
    .sustainability-grid { grid-template-columns: 1fr; }
    .skeleton-grid { grid-template-columns: 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 40px; }
    .footer-links { grid-template-columns: repeat(3, 1fr); }
    .main-nav { display: none; }
    .header-inner { padding: 16px 20px; }
    .hero { padding: 100px 20px 40px; }
    .knowledge-section, .topics-section, .flows-section, .sustainability-section, .skeleton-section { padding: 40px 20px; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 600px) {
    .topics-asymmetric { grid-template-columns: 1fr; }
    .footer-links { grid-template-columns: 1fr; }
    .hero-title { font-size: 2.2rem; }
}