/* ============================================
   BLOG TELOHUDELO - Style matching main site
   ============================================ */

:root {
    /* Colors from main site */
    --bg-primary: #0f0a0a;
    --bg-card: rgba(30, 20, 20, 0.95);
    --bg-light: #1a1212;
    --coral: #ff6b6b;
    --coral-light: #ff8787;
    --peach: #ffa07a;
    --gold: #ffd700;
    --pink: #ff69b4;
    --mint: #98d8aa;
    --text-primary: #ffffff;
    --text-secondary: #f5e6e0;
    --text-muted: #b8a8a0;
    --separator: rgba(255, 107, 107, 0.15);
    --glow-coral: 0 0 30px rgba(255, 107, 107, 0.4);
    --glow-gold: 0 0 25px rgba(255, 215, 0, 0.4);

    /* Typography */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== HEADER ===== */
header {
    background: rgba(15, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--separator);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--coral), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    letter-spacing: -0.5px;
}

nav {
    display: flex;
    gap: 32px;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    transition: all 0.3s ease;
    position: relative;
}

nav a:hover,
nav a.active {
    color: var(--coral);
}

nav a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--coral);
    border-radius: 1px;
}

/* ===== HERO ===== */
.hero {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(255, 107, 107, 0.15), transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-family: var(--font-heading);
    font-size: 52px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--text-primary), var(--coral-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    letter-spacing: -1px;
    position: relative;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ===== CATEGORY FILTERS ===== */
.category-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 40px 0 50px;
    flex-wrap: wrap;
    padding: 0 20px;
}

.category-pill {
    padding: 10px 20px;
    border-radius: 25px;
    background: var(--bg-card);
    border: 1px solid var(--separator);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-pill:hover,
.category-pill.active {
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
    border-color: var(--coral);
    color: white;
    box-shadow: var(--glow-coral);
}

/* ===== ARTICLES GRID ===== */
.articles-section {
    padding: 0 0 80px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 30px;
}

/* ===== ARTICLE CARD ===== */
.article-card {
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--separator);
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--glow-coral);
    border-color: var(--coral);
}

.article-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.article-card:hover .article-image img {
    transform: scale(1.05);
}

.article-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 14px;
    width: fit-content;
}

.category.trenirovki { background: rgba(152, 216, 170, 0.2); color: var(--mint); }
.category.zdorovie { background: rgba(255, 105, 180, 0.2); color: var(--pink); }
.category.pitanie { background: rgba(255, 215, 0, 0.2); color: var(--gold); }
.category.pohudenie { background: rgba(255, 107, 107, 0.2); color: var(--coral); }
.category.diety { background: rgba(255, 160, 122, 0.2); color: var(--peach); }

.article-content h2 {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.article-content h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

.article-content h2 a:hover {
    color: var(--coral);
}

.article-content p {
    color: var(--text-muted);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--coral);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s;
}

.read-more:hover {
    gap: 12px;
    color: var(--coral-light);
}

/* ===== CTA SECTION ===== */
.cta {
    padding: 80px 0;
    text-align: center;
    position: relative;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255, 107, 107, 0.1), transparent 70%);
    pointer-events: none;
}

.cta h2 {
    font-family: var(--font-heading);
    font-size: 36px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-muted);
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--coral), var(--coral-light));
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
    box-shadow: var(--glow-coral);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 40px rgba(255, 107, 107, 0.6);
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-light);
    padding: 50px 0 30px;
    border-top: 1px solid var(--separator);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
}

.footer-brand .logo {
    margin-bottom: 8px;
    display: block;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--coral);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--separator);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== ARTICLE PAGE ===== */
.article-page {
    padding: 40px 0 80px;
}

.article-header {
    max-width: 800px;
    margin: 0 auto 40px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--coral);
    text-decoration: none;
    font-size: 15px;
    margin-bottom: 24px;
    transition: gap 0.3s;
}

.back-link:hover {
    gap: 12px;
}

.article-header .category {
    margin-bottom: 20px;
}

.article-header h1 {
    font-family: var(--font-heading);
    font-size: 42px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.article-meta {
    display: flex;
    gap: 20px;
    color: var(--text-muted);
    font-size: 14px;
}

.article-body {
    max-width: 800px;
    margin: 0 auto;
}

.article-body .lead {
    font-size: 20px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 40px;
    padding-left: 20px;
    border-left: 3px solid var(--coral);
}

.article-body h2 {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 20px;
}

.article-body h3 {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 600;
    color: var(--coral-light);
    margin: 36px 0 16px;
}

.article-body p {
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-secondary);
}

.article-body ul,
.article-body ol {
    margin: 24px 0 24px 24px;
}

.article-body li {
    font-size: 17px;
    line-height: 1.7;
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.article-body li strong {
    color: var(--coral);
}

.article-body strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Tip Box */
.tip-box {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
}

.tip-box h4 {
    color: var(--gold);
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 12px;
}

.tip-box p {
    margin-bottom: 0;
    font-size: 16px;
}

/* Warning Box */
.warning-box {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.1), rgba(255, 107, 107, 0.05));
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 16px;
    padding: 24px;
    margin: 32px 0;
}

.warning-box h4 {
    color: var(--coral);
    font-family: var(--font-heading);
    font-size: 16px;
    margin-bottom: 12px;
}

/* CTA Box in articles */
.cta-box {
    background: linear-gradient(135deg, var(--coral), var(--pink));
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    margin: 48px 0;
}

.cta-box h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: white;
    margin: 0 0 12px;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 24px;
    font-size: 16px;
}

.cta-box .btn {
    background: white;
    color: var(--coral);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-box .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

/* Tables */
.workout-table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
}

.workout-table th,
.workout-table td {
    padding: 16px 20px;
    text-align: left;
    border-bottom: 1px solid var(--separator);
}

.workout-table th {
    background: rgba(255, 107, 107, 0.15);
    color: var(--coral);
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.workout-table td {
    font-size: 15px;
    color: var(--text-secondary);
}

.workout-table tr:last-child td {
    border-bottom: none;
}

.workout-table tr:hover td {
    background: rgba(255, 107, 107, 0.05);
}

/* Related Articles */
.related-articles {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--separator);
}

.related-articles h3 {
    font-family: var(--font-heading);
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.related-card {
    display: block;
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid var(--separator);
    transition: all 0.3s;
}

.related-card:hover {
    border-color: var(--coral);
    transform: translateY(-4px);
}

.related-card span {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }

    .hero p {
        font-size: 16px;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    nav {
        display: none;
    }

    .article-header h1 {
        font-size: 28px;
    }

    .article-body h2 {
        font-size: 24px;
    }

    .article-body h3 {
        font-size: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 30px;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 20px;
    }

    .cta h2 {
        font-size: 28px;
    }

    .category-filters {
        gap: 8px;
    }

    .category-pill {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.article-card {
    animation: fadeInUp 0.5s ease-out;
}

.article-card:nth-child(2) { animation-delay: 0.1s; }
.article-card:nth-child(3) { animation-delay: 0.2s; }
.article-card:nth-child(4) { animation-delay: 0.3s; }
.article-card:nth-child(5) { animation-delay: 0.4s; }
.article-card:nth-child(6) { animation-delay: 0.5s; }

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral), var(--gold));
    z-index: 1000;
    transition: width 0.1s ease-out;
}
