/* Main Styles for LingFitPro Blog */

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #4895ef;
    --secondary: #f72585;
    --accent: #4cc9f0;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    --dark-blue: #0f3460;
    --light: #f8f9fa;
    --container-max-width: 1200px;
    --header-height: 70px;
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    --border-radius-sm: 0.25rem;
    --border-radius-md: 0.5rem;
    --border-radius-full: 9999px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;

    /* Legacy aliases */
    --primary-blue: var(--primary);
    --secondary-orange: var(--secondary);
    --accent-teal: var(--accent);
    --background-light: var(--light);
    --text-dark: var(--gray-900);
    --muted-gray: var(--gray-500);
}

/* Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--light);
}

.container {
    width: 100%;
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-orange);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Content Styles */
.content-wrapper {
    padding: 40px 0;
}

.list-header {
    margin-bottom: 30px;
}

.post-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.post-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.post-header {
    padding: 20px 20px 10px;
}

.post-title {
    font-size: 22px;
    margin-bottom: 10px;
}

.post-meta {
    font-size: 14px;
    color: var(--muted-gray);
    margin-bottom: 10px;
}

.post-summary {
    padding: 0 20px 20px;
}

.post-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.read-more {
    font-weight: 500;
}

.tag, .category, .proficiency {
    display: inline-block;
    background-color: #eee;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-right: 5px;
    color: var(--text-dark);
}

/* Single Post Styles */
.post {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 40px;
    margin-bottom: 40px;
}

.post-content {
    margin: 30px 0;
}

.post-content h2 {
    margin: 30px 0 15px;
}

.post-content p {
    margin-bottom: 20px;
}

.post-content ul, .post-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
}

/* Header Styles */
.site-header {
    position: sticky;
    top: 0;
    background-color: #fff;
    box-shadow: var(--shadow-sm);
    z-index: 100;
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.logo a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.main-nav a {
    color: var(--gray-700);
    font-weight: 500;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: var(--border-radius-md);
    transition: all var(--transition-fast);
}

.main-nav a:hover {
    color: var(--primary);
    background-color: var(--gray-100);
}

.main-nav .cta-button {
    background-color: var(--primary);
    color: #fff;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--border-radius-md);
}

.main-nav .cta-button:hover {
    background-color: var(--primary-dark);
    color: #fff;
}

.language-selector select {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius-sm);
    background-color: #fff;
    color: var(--gray-700);
    cursor: pointer;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0;
    background-color: var(--gray-800);
    border-radius: var(--border-radius-full);
}

/* Footer Styles */
.site-footer {
    background-color: #1a1a2e;
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-logo a {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.footer-links ul {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    color: #ced4da;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: white;
    transition: background-color 0.2s ease;
}

.footer-social a:hover {
    background-color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.875rem;
    color: #adb5bd;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .site-header {
        height: auto;
        padding: 1rem 0;
    }
    
    .main-nav {
        display: none;
    }
    
    .main-nav.active {
        display: block;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: white;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        padding: 1rem;
        z-index: 200;
    }
    
    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .main-nav li {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links ul {
        flex-direction: column;
        gap: 0.5rem;
    }
}
