/* ============================================
   GUIDE - STYLES
   ============================================ */

/* Variables */
:root {
    --primary: #10b981;
    --primary-dark: #059669;
    --primary-light: #d1fae5;
    --secondary: #3b82f6;
    --warning: #f59e0b;
    --danger: #ef4444;
    --text: #1f2937;
    --text-light: #6b7280;
    --border: #e5e7eb;
    --bg-light: #f9fafb;
    --shadow: 0 1px 3px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
    --radius: 12px;
    --transition: all 0.3s ease;
}

/* Reset */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text);
    line-height: 1.6;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================
   HEADER
   ============================================ */
.guide-header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    font-size: 2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.btn-lang {
    padding: 0.5rem 1rem;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.btn-lang:hover {
    border-color: var(--primary);
    background: var(--primary-light);
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    display: none;
    overflow: hidden;
}

.lang-dropdown.active {
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: white;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--bg-light);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

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

/* ============================================
   HERO
   ============================================ */
.hero {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.hero-title {
    font-size: 2.5rem;
    margin: 0 0 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin: 0;
}

/* ============================================
   QUICK NAV
   ============================================ */
.quick-nav {
    padding: 3rem 0;
    background: var(--bg-light);
}

.quick-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.quick-nav-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: var(--text);
    border: 2px solid transparent;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.quick-nav-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.quick-nav-card .card-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.quick-nav-card h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text);
}

/* ============================================
   SECTIONS
   ============================================ */
.guide-section {
    padding: 4rem 0;
}

.guide-section.bg-light {
    background: var(--bg-light);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 0;
}

.section-icon {
    font-size: 2.5rem;
}

/* Content Box */
.content-box {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.content-box h3 {
    color: var(--primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.content-box h3:first-child {
    margin-top: 0;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: var(--radius);
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid transparent;
    transition: var(--transition);
}

.feature-card.feature-card-link {
    margin-bottom: 1rem;
}

.feature-card.feature-card-link:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.feature-card.feature-card-link:focus {
    outline: none;
}

.feature-card.feature-card-link:focus-visible {
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.25);
}

.feature-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-card h3 {
    margin: 0 0 0.5rem;
    color: var(--text);
}

.feature-card p {
    margin: 0;
    color: var(--text-light);
}

/* ============================================
   WORKFLOW
   ============================================ */
.workflow-diagram {
    max-width: 800px;
    margin: 0 auto;
}

.workflow-step {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.step-number {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.step-content h3 {
    margin: 0 0 0.5rem;
}

.step-content p {
    margin: 0;
    color: var(--text-light);
}

.workflow-arrow {
    text-align: center;
    font-size: 2rem;
    color: var(--primary);
    margin: 0.5rem 0;
}

/* Formula */
.formula, .formula-large {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.formula-large {
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius);
    margin-top: 1.5rem;
}

.formula-item, .formula-result {
    padding: 0.5rem 1rem;
    background: white;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-weight: 500;
}

.formula-result {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary-dark);
}

.formula-operator {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

/* ============================================
   LISTS
   ============================================ */
.step-list {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.step-list li {
    margin-bottom: 0.75rem;
    padding-left: 0.5rem;
}

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

.example-list li {
    padding: 0.75rem;
    background: var(--bg-light);
    border-left: 3px solid var(--primary);
    margin-bottom: 0.5rem;
    border-radius: 4px;
}

/* ============================================
   INFO BOXES
   ============================================ */
.info-box, .warning-box, .highlight-box, .example-box {
    padding: 1.5rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    display: flex;
    gap: 1rem;
}

.info-box {
    background: #dbeafe;
    border-left: 4px solid var(--secondary);
}

.warning-box {
    background: #fef3c7;
    border-left: 4px solid var(--warning);
}

.highlight-box {
    background: var(--primary-light);
    border-left: 4px solid var(--primary);
}

.example-box {
    background: var(--bg-light);
    border-left: 4px solid var(--text-light);
    display: block;
}

.info-icon, .warning-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.example-box h4 {
    margin: 0 0 1rem;
}

/* ============================================
   RESOURCES
   ============================================ */
.resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.resource-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    color: var(--text);
    border: 2px solid var(--border);
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.resource-card:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.resource-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
}

.resource-card h3 {
    margin: 0 0 0.5rem;
}

.resource-card p {
    margin: 0;
    color: var(--text-light);
}

/* ============================================
   FOOTER
   ============================================ */
.guide-footer {
    background: var(--text);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content p {
    margin: 0.5rem 0;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        flex-direction: column;
    }
    
    .quick-nav-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
    
    .workflow-step {
        flex-direction: column;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .formula, .formula-large {
        font-size: 0.9rem;
    }
}
