/* ===================================
   CHIFAA BRANDBOOK STYLES
   Modern, clean, and professional
   =================================== */

.brandbook-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

/* ===================================
   HERO SECTION
   =================================== */

.brandbook-hero {
    position: relative;
    text-align: center;
    padding: 120px 24px 80px;
    margin-bottom: 80px;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-accent);
    background: rgba(196, 104, 126, 0.1);
    padding: 8px 20px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin: 0 0 20px 0;
    font-weight: 700;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
}

.circle-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: -100px;
    animation: float 20s ease-in-out infinite;
}

.circle-2 {
    width: 300px;
    height: 300px;
    background: var(--color-healing);
    bottom: -50px;
    left: -50px;
    animation: float 15s ease-in-out infinite reverse;
}

.circle-3 {
    width: 200px;
    height: 200px;
    background: var(--color-accent);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: float 25s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }
    50% {
        transform: translateY(-30px) translateX(20px);
    }
}

/* ===================================
   SECTION STRUCTURE
   =================================== */

.brand-section {
    margin-bottom: 120px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 2px solid rgba(196, 104, 126, 0.15);
}

.section-number {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-accent);
    background: rgba(196, 104, 126, 0.1);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin: 0;
    font-weight: 700;
}

/* ===================================
   BRAND ESSENCE
   =================================== */

.essence-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.essence-card {
    background: var(--color-surface);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.essence-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.essence-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.essence-card h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin: 0 0 16px 0;
}

.essence-card p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-body);
    margin: 0;
}

/* ===================================
   LOGO SECTION
   =================================== */

.logo-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.logo-display {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.logo-box {
    aspect-ratio: 1;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.light-bg {
    background: var(--color-surface);
}

.dark-bg {
    background: #2C2420;
}

.logo-image {
    max-width: 80%;
    height: auto;
    margin-bottom: 20px;
}

.logo-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text-muted);
    position: absolute;
    bottom: 16px;
}

.dark-bg .logo-label {
    color: rgba(255, 255, 255, 0.7);
}

.logo-guidelines {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.guideline-item h4 {
    font-size: 1.125rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin: 0 0 12px 0;
}

.guideline-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text-body);
    margin: 0;
}

/* ===================================
   COLOR PALETTE
   =================================== */

.color-system {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.color-category-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin: 0 0 32px 0;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.color-card {
    background: var(--color-surface);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.color-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.color-swatch {
    width: 100%;
    height: 180px;
    position: relative;
}

.color-info {
    padding: 24px;
}

.color-name {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin: 0 0 12px 0;
}

.color-values {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.color-value {
    font-size: 0.875rem;
    font-family: 'Courier New', monospace;
    color: var(--color-text-muted);
    background: rgba(196, 104, 126, 0.05);
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
}

.color-usage {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-body);
    margin: 0;
}

/* ===================================
   TYPOGRAPHY
   =================================== */

.typography-system {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.font-family-card {
    background: var(--color-surface);
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.font-specimen {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.font-name {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin: 0;
}

.font-role {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-text-muted);
    margin: 0;
}

.font-sample-large {
    font-size: 3rem;
    line-height: 1.2;
    color: var(--color-text-body);
    margin: 16px 0;
}

.font-sample-body {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-body);
    margin: 16px 0;
}

.font-sample-decorative {
    font-size: 2.5rem;
    line-height: 1.3;
    color: var(--color-text-body);
    margin: 16px 0;
}

.font-weights {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    padding: 20px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.font-weights span {
    font-size: 1rem;
    color: var(--color-text-body);
}

.font-alphabet {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--color-text-muted);
    letter-spacing: 0.5px;
}

.font-usage-note {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    font-style: italic;
    margin: 0;
}

.typography-scale {
    background: var(--color-surface);
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.scale-title {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin: 0 0 32px 0;
}

.scale-examples {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.scale-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    background: rgba(196, 104, 126, 0.03);
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
}

.scale-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-accent);
    font-weight: 600;
}

.scale-specs {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    font-family: 'Courier New', monospace;
}

/* ===================================
   VISUAL ELEMENTS
   =================================== */

.visual-elements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.visual-element-card {
    background: var(--color-surface);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.visual-element-card h3 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin: 0 0 24px 0;
}

.visual-element-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-text-body);
    margin: 16px 0 0 0;
}

.icon-showcase {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: rgba(196, 104, 126, 0.03);
    border-radius: 12px;
}

.element-sample {
    max-width: 80px;
    height: auto;
}

.radius-examples,
.shadow-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 16px;
}

.radius-box,
.shadow-box {
    aspect-ratio: 1;
    background: var(--color-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    text-align: center;
    line-height: 1.4;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.shadow-md {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
    border-radius: 12px;
}

.shadow-lg {
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    border-radius: 12px;
}

/* ===================================
   SPACING SYSTEM
   =================================== */

.spacing-system {
    background: var(--color-surface);
    padding: 48px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.spacing-intro {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-body);
    margin: 0 0 40px 0;
}

.spacing-scale {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.spacing-item {
    display: flex;
    align-items: center;
    gap: 24px;
}

.spacing-visual {
    height: 48px;
    background: var(--color-accent);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.spacing-label {
    font-size: 1rem;
    font-family: 'Courier New', monospace;
    color: var(--color-text-body);
    font-weight: 600;
}

/* ===================================
   BRAND VOICE
   =================================== */

.voice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 32px;
}

.voice-card {
    background: var(--color-surface);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.voice-card h3 {
    font-size: 1.5rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin: 0 0 24px 0;
}

.voice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.voice-list li {
    font-size: 1rem;
    line-height: 1.6;
    padding-left: 32px;
    position: relative;
}

.voice-list.positive li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-healing);
    font-weight: 700;
    font-size: 1.25rem;
}

.voice-list.negative li::before {
    content: "✗";
    position: absolute;
    left: 0;
    color: #E57373;
    font-weight: 700;
    font-size: 1.25rem;
}

/* ===================================
   DOWNLOAD SECTION
   =================================== */

.download-section {
    background: linear-gradient(135deg, rgba(232, 160, 176, 0.1) 0%, rgba(123, 188, 176, 0.1) 100%);
    padding: 64px 48px;
    border-radius: 24px;
    margin-bottom: 80px;
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.download-card {
    background: var(--color-surface);
    padding: 40px 32px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
}

.download-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 20px;
}

.download-card h3 {
    font-size: 1.25rem;
    font-family: var(--font-heading);
    color: var(--color-accent);
    margin: 0 0 12px 0;
}

.download-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    margin: 0 0 24px 0;
}

.download-btn {
    background: var(--color-accent);
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.download-btn:hover {
    background: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(196, 104, 126, 0.3);
}

/* ===================================
   DARK MODE OVERRIDES
   =================================== */

body.dark-mode .essence-card,
body.dark-mode .logo-box.light-bg,
body.dark-mode .color-card,
body.dark-mode .font-family-card,
body.dark-mode .typography-scale,
body.dark-mode .visual-element-card,
body.dark-mode .spacing-system,
body.dark-mode .voice-card,
body.dark-mode .download-card {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

body.dark-mode .essence-card:hover,
body.dark-mode .color-card:hover,
body.dark-mode .download-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

body.dark-mode .section-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .hero-label {
    background: rgba(232, 160, 176, 0.2);
}

body.dark-mode .color-value {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-mode .font-weights {
    border-top-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-mode .scale-item {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .icon-showcase {
    background: rgba(255, 255, 255, 0.03);
}

body.dark-mode .download-section {
    background: linear-gradient(135deg, rgba(232, 160, 176, 0.15) 0%, rgba(123, 188, 176, 0.15) 100%);
}

body.dark-mode .voice-list li {
    color: rgba(255, 255, 255, 0.87);
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .logo-showcase {
        grid-template-columns: 1fr;
    }
    
    .logo-display {
        margin-bottom: 32px;
    }
}

@media (max-width: 768px) {
    .brandbook-container {
        padding: 24px 16px 60px;
    }
    
    .brandbook-hero {
        padding: 80px 16px 60px;
        margin-bottom: 60px;
    }
    
    .brand-section {
        margin-bottom: 80px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .essence-grid,
    .color-grid,
    .visual-elements-grid,
    .voice-grid,
    .download-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-display {
        grid-template-columns: 1fr;
    }
    
    .font-family-card,
    .typography-scale,
    .spacing-system {
        padding: 32px 24px;
    }
    
    .font-sample-large {
        font-size: 2rem;
    }
    
    .font-sample-decorative {
        font-size: 1.75rem;
    }
    
    .download-section {
        padding: 48px 24px;
    }
}

@media (max-width: 480px) {
    .hero-label {
        font-size: 0.75rem;
        padding: 6px 16px;
    }
    
    .font-weights {
        flex-direction: column;
        gap: 12px;
    }
    
    .radius-examples,
    .shadow-examples {
        grid-template-columns: repeat(2, 1fr);
    }
}
