/* Global Styles for PlayThenics Blog */

:root {
    /* Brand Colors - Matching App Design */
    --brand-primary: #B0092D;
    --brand-secondary: #12161D;
    --brand-accent: #dc143c;
    --brand-gradient: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    --brand-gradient-blue: linear-gradient(135deg, var(--brand-primary) 0%, #3498DB 100%);
    --brand-gradient-purple: linear-gradient(135deg, var(--brand-primary) 0%, #9B59B6 100%);

    /* Background Colors - App Colors */
    --background: #0A0E17;
    --background-secondary: #1A212C;
    --background-tertiary: #2A3442;
    --card: #1E2634;
    --card-hover: #2A3442;
    --glass: rgba(30, 38, 52, 0.8);
    --glass-border: rgba(255, 255, 255, 0.1);

    /* Text Colors - App Colors */
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-tertiary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.4);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 20px rgba(176, 9, 45, 0.3);
}

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

body { 
    font-family: 'Ubuntu', sans-serif; 
    background: var(--background); 
    color: var(--text-primary); 
    line-height: 1.6; 
}

/* General Link Styles */
p > a {
    color: var(--brand-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

p > a:hover {
    color: var(--brand-primary);
}

/* Header and Navigation */
.header { 
    background: var(--glass); 
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid var(--glass-border); 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}

.nav { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 1rem 2rem; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo { 
    font-size: 1.5rem; 
    font-weight: 700; 
    color: var(--text-primary); 
    text-decoration: none; 
    background: var(--brand-gradient); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
    gap: 2rem; 
}

.nav-links a { 
    color: var(--text-secondary); 
    text-decoration: none; 
    transition: color 0.3s ease; 
}

.nav-links a:hover { 
    color: var(--text-primary); 
}

/* Main Content */
.main { 
    max-width: 800px; 
    margin: 0 auto; 
    padding: 2rem; 
}

/* Article Styles */
.article-header { 
    text-align: center; 
    margin-bottom: 3rem; 
}

.article-title { 
    font-size: 2.5rem; 
    font-weight: 700; 
    margin-bottom: 1rem; 
    background: var(--brand-gradient); 
    -webkit-background-clip: text; 
    -webkit-text-fill-color: transparent; 
    background-clip: text; 
}

.article-meta { 
    color: var(--text-tertiary); 
    font-size: 0.9rem; 
    margin-bottom: 2rem; 
}

.article-content { 
    background: var(--card); 
    border-radius: var(--radius-lg); 
    padding: 2rem; 
    margin-bottom: 2rem; 
    border: 1px solid var(--glass-border); 
}

.article-content h2 { 
    font-size: 1.8rem; 
    margin: 2rem 0 1rem; 
    color: var(--text-primary); 
    border-bottom: 2px solid var(--brand-primary); 
    padding-bottom: 0.5rem; 
}

.article-content h3 { 
    font-size: 1.4rem; 
    margin: 1.5rem 0 1rem; 
    color: var(--text-primary); 
}

.article-content p { 
    margin-bottom: 1rem; 
    color: var(--text-secondary); 
    line-height: 1.7; 
}

.article-content ul, .article-content ol { 
    margin: 1rem 0; 
    padding-left: 2rem; 
}

.article-content li { 
    margin-bottom: 0.5rem; 
    color: var(--text-secondary); 
}

/* Highlight Boxes */
.highlight-box { 
    background: linear-gradient(135deg, rgba(176, 9, 45, 0.1) 0%, rgba(220, 20, 60, 0.1) 100%); 
    border: 1px solid var(--brand-primary); 
    border-radius: var(--radius-md); 
    padding: 1.5rem; 
    margin: 1.5rem 0; 
}

.highlight-box h4 { 
    color: var(--brand-primary); 
    margin-bottom: 1rem; 
    font-size: 1.2rem; 
}

/* Workout Plans */
.workout-plan { 
    background: var(--background-secondary); 
    border-radius: var(--radius-md); 
    padding: 1.5rem; 
    margin: 1.5rem 0; 
    border: 1px solid var(--glass-border); 
}

.workout-plan h4 { 
    color: var(--brand-primary); 
    margin-bottom: 1rem; 
    font-size: 1.2rem; 
}

/* Phase Progressions */
.phase-progression { 
    background: var(--card); 
    border-radius: var(--radius-md); 
    padding: 1.5rem; 
    margin: 1.5rem 0; 
    border-left: 4px solid var(--brand-primary); 
}

.phase-progression h4 { 
    color: var(--brand-primary); 
    margin-bottom: 1rem; 
    font-size: 1.2rem; 
}

/* CTA Sections */
.cta-section { 
    background: var(--card); 
    border-radius: var(--radius-lg); 
    padding: 2rem; 
    text-align: center; 
    margin: 2rem 0; 
    border: 1px solid var(--glass-border); 
}

.cta-section h2 { 
    font-size: 1.8rem; 
    margin-bottom: 1rem; 
    color: var(--text-primary); 
}

.cta-section p { 
    color: var(--text-secondary); 
    margin-bottom: 1.5rem; 
}

/* CTA Buttons - Global Class */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.btn { 
    padding: 1rem 2rem; 
    border-radius: var(--radius-md); 
    text-decoration: none; 
    font-weight: 500; 
    transition: all 0.3s ease; 
    display: inline-flex; 
    align-items: center; 
    gap: 0.5rem; 
    margin: 0 0.5rem; 
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary { 
    background: var(--brand-gradient); 
    color: white; 
    box-shadow: var(--shadow-md); 
}

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

.btn-secondary { 
    background: var(--background-secondary); 
    color: var(--text-primary); 
    border: 1px solid var(--glass-border); 
}

.btn-secondary:hover { 
    background: var(--card-hover); 
    transform: translateY(-2px); 
}

/* Related Articles */
.related-articles { 
    background: var(--card); 
    border-radius: var(--radius-lg); 
    padding: 2rem; 
    margin: 2rem 0; 
    border: 1px solid var(--glass-border); 
}

.related-articles h3 { 
    color: var(--brand-primary); 
    margin-bottom: 1.5rem; 
}

.related-articles ul { 
    list-style: none; 
    padding: 0; 
}

.related-articles li { 
    margin-bottom: 1rem; 
}

.related-articles a { 
    color: var(--text-secondary); 
    text-decoration: none; 
    transition: color 0.3s ease; 
}

.related-articles a:hover { 
    color: var(--brand-primary); 
}

/* Badges */
.free-badge { 
    background: var(--brand-gradient); 
    color: white; 
    padding: 0.25rem 0.75rem; 
    border-radius: var(--radius-sm); 
    font-size: 0.8rem; 
    font-weight: 500; 
    margin-left: 0.5rem; 
}

/* Footer */
.footer { 
    background: var(--background-secondary); 
    padding: 2rem; 
    text-align: center; 
    color: var(--text-secondary); 
    margin-top: 3rem; 
}

/* Blog Grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.blog-card {
    background: var(--card);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: all 0.3s ease;
    border: 1px solid var(--glass-border);
    text-decoration: none;
    color: inherit;
    display: block;
}

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

.blog-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.blog-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

.read-more {
    color: var(--brand-primary);
    font-weight: 500;
    text-decoration: none;
}

/* Hero Section */
.hero {
    text-align: center;
    margin-bottom: 4rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Responsive Design */
@media (max-width: 768px) { 
    .nav { 
        padding: 1rem; 
    } 
    
    .nav-links { 
        display: none; 
    } 
    
    .main { 
        padding: 1rem; 
    } 
    
    .article-title { 
        font-size: 2rem; 
    } 
    
    .article-content { 
        padding: 1.5rem; 
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        margin: 0.5rem 0;
        justify-content: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .article-title {
        font-size: 1.8rem;
    }
    
    .cta-section {
        padding: 1.5rem;
    }
    
    .cta-section h2 {
        font-size: 1.5rem;
    }
} 