/* Global Theme Configuration - Used by all pages */
:root {
    /* Primary Colors */
    --color-primary: #667eea;
    --color-primary-dark: #5a6fd8;
    --color-primary-light: #667eea;
    
    /* Semantic Colors */
    --color-cta: #667eea;
    --color-cta-hover: #5a6fd8;
    --color-cta-text: #FFFFFF;
    --color-success: #10B981;
    --color-warning: #F59E0B;
    --color-error: #EF4444;
    --color-error-hover: #DC2626;
    
    /* Background Colors */
    --color-bg-white: #FFFFFF;
    --color-bg-light: #F9FAFB;
    --color-bg-lighter: #F3F4F6;
    --color-bg-dark: #0F172A;
    
    /* Text Colors */
    --color-text-dark: #111827;
    --color-text-muted: #6B7280;
    --color-text-light: #9CA3AF;
    
    /* Border & Accents */
    --color-border: #E5E7EB;
    --color-border-light: #F3F4F6;
    
    /* Fonts */
    --font-heading: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Card/Box Component Styles - Reusable across all pages */
.card, .spec-card, .feature-card, .service-card {
    background: var(--color-bg-white);
    border: 1px solid var(--color-border-light);
    border-radius: 12px;
    padding: 1.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.card:hover, .spec-card:hover, .feature-card:hover, .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.card::before, .spec-card::before, .feature-card::before, .service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-cta);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.card:hover::before, .spec-card:hover::before, .feature-card:hover::before, .service-card:hover::before {
    transform: scaleY(1);
}

/* Card Content */
.card-label, .spec-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--color-cta);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-value, .spec-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 0.5rem;
}

.card-description, .spec-description {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Grid Components */
.card-grid, .specs-grid, .feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

/* Box/Container Styles */
.visual-explanation, .info-box, .highlight-section {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-white) 100%);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 2.5rem;
    margin: 2.5rem 0;
}

.highlight-box {
    background: rgba(102, 126, 234, 0.05);
    border-left: 4px solid var(--color-cta);
    padding: 1.75rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.highlight-box strong {
    color: var(--color-cta);
    font-size: 1.15rem;
    display: block;
    margin-bottom: 0.75rem;
}

.highlight-box p {
    margin-bottom: 0;
}

/* Button Styles */
.btn-template, .btn-download, .btn-action {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--color-cta);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    cursor: pointer;
}

.btn-template:hover, .btn-download:hover, .btn-action:hover {
    background: var(--color-cta-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    color: white;
    text-decoration: none;
}

.btn-template svg, .btn-download svg, .btn-action svg {
    width: 20px;
    height: 20px;
}

/* Button Group */
.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* List Styles */
.tip-list, .feature-list, .check-list {
    list-style: none;
    margin: 1.5rem 0;
}

.tip-list li, .feature-list li, .check-list li {
    padding-left: 2rem;
    margin-bottom: 1rem;
    position: relative;
    color: var(--color-text-muted);
}

.tip-list li::before, .feature-list li::before, .check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
    font-size: 1.3rem;
}

/* Formula/Code Block */
.formula, .code-block {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    font-family: 'Courier New', monospace;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-dark);
}

.formula strong, .code-block strong {
    color: var(--color-cta);
    font-size: 1.3rem;
}

/* Text/Image Placeholder */
.image-placeholder {
    background: linear-gradient(135deg, var(--color-bg-light) 0%, var(--color-bg-white) 100%);
    border: 2px solid var(--color-border);
    border-radius: 8px;
    padding: 3rem 2rem;
    margin: 1.5rem 0;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.8;
    text-align: center;
}

.image-placeholder strong {
    color: var(--color-cta);
    font-weight: 700;
    font-style: normal;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

/* Section Header */
.section-header {
    background: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    color: var(--color-text-dark);
    padding: 2.5rem;
    margin: 3rem 0 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.section-header h3 {
    color: var(--color-primary);
    margin-top: 0;
    position: relative;
}

.section-header p {
    color: var(--color-text-muted);
    position: relative;
    margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card, .spec-card, .feature-card {
    animation: fadeIn 0.6s ease-out backwards;
}

.card:nth-child(1), .spec-card:nth-child(1), .feature-card:nth-child(1) { animation-delay: 0.1s; }
.card:nth-child(2), .spec-card:nth-child(2), .feature-card:nth-child(2) { animation-delay: 0.2s; }
.card:nth-child(3), .spec-card:nth-child(3), .feature-card:nth-child(3) { animation-delay: 0.3s; }

/* Responsive Design */
@media (max-width: 768px) {
    .card-grid, .specs-grid, .feature-grid {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }

    .btn-template, .btn-download, .btn-action {
        width: 100%;
        justify-content: center;
    }
}
