/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.7;
    color: #2c3e50;
    background: #f8f9fa;
    min-height: 100vh;
}

/* ===== LAYOUT & CONTAINER ===== */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
}

/* ===== LANGUAGE TOGGLE ===== */
.language-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: white;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.language-toggle button {
    background: none;
    border: none;
    padding: 4px 8px;
    margin: 0 2px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.language-toggle button.active {
    background: #34495e;
    color: white;
}

.language-toggle button:hover:not(.active) {
    background: #ecf0f1;
}

/* ===== HEADER ===== */
.header {
    text-align: center;
    padding: 60px 0;
    background: #ffffff;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #2c3e50;
    font-weight: normal;
}

.header p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #5a6c7d;
}

/* ===== BUTTONS ===== */
.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background: #34495e;
    color: white;
}

.btn-primary:hover {
    background: #2c3e50;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
    border: 1px solid #bdc3c7;
}

.btn-secondary:hover {
    background: #d5dbdb;
    transform: translateY(-1px);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    background: white;
    border-radius: 8px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.main-content h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 25px;
    font-weight: normal;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
}

/* ===== FEATURES ===== */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background: #f8f9fa;
    color: #2c3e50;
    padding: 25px;
    border-radius: 6px;
    border-left: 4px solid #34495e;
    transition: transform 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #34495e;
}

.feature-card p {
    color: #5a6c7d;
    line-height: 1.6;
}

/* ===== DEMO SECTION ===== */
.demo-section {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 25px;
    margin: 30px 0;
    border: 1px solid #ecf0f1;
}

/* ===== CODE BLOCKS ===== */
.code-block {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 20px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    margin: 20px 0;
    font-size: 0.9rem;
}

.code-block pre {
    margin: 0;
}

/* ===== INSTALLATION SECTION ===== */
.installation {
    background: #34495e;
    color: white;
    padding: 30px;
    border-radius: 6px;
    margin: 30px 0;
}

.installation h2 {
    color: white;
    border-bottom: 2px solid #5a6c7d;
}

/* ===== USAGE EXAMPLES ===== */
.usage-examples {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.example-card {
    background: white;
    border: 1px solid #ecf0f1;
    border-radius: 6px;
    padding: 20px;
    transition: border-color 0.2s ease;
}

.example-card:hover {
    border-color: #34495e;
}

.example-card h4 {
    color: #34495e;
    margin-bottom: 12px;
    font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
    text-align: center;
    padding: 40px 0;
    color: #5a6c7d;
    background: white;
    border-radius: 8px;
    margin-top: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.footer a {
    color: #34495e;
    text-decoration: underline;
}

.footer a:hover {
    color: #2c3e50;
}

/* ===== TECH STACK ===== */
.tech-stack {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.tech-badge {
    background: #ecf0f1;
    color: #2c3e50;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    border: 1px solid #bdc3c7;
}

/* ===== TYPOGRAPHY ===== */
ul {
    color: #5a6c7d;
}

li {
    margin-bottom: 8px;
}

strong {
    color: #2c3e50;
}

/* ===== LANGUAGE CONTENT ===== */
.lang-en {
    display: none;
}

.lang-es {
    display: none;
}

.lang-en.active,
.lang-es.active {
    display: block;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .header h1 {
        font-size: 2.2rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }

    .language-toggle {
        position: static;
        margin-bottom: 20px;
        text-align: center;
    }
}

/* ===== ANIMATIONS & TRANSITIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card,
.example-card {
    animation: fadeIn 0.3s ease-out;
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .language-toggle {
        display: none;
    }
    
    .container {
        max-width: none;
        padding: 0;
    }
    
    .main-content {
        box-shadow: none;
        border: 1px solid #ccc;
    }
} 