/*
Theme Name: Twenty Twenty-Four Blog
Description: WordPress-style blog theme for IngeniousTests
Version: 1.0
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: #1a1a1a;
}

h1 { font-size: 2.25rem; margin: 0 0 1rem; }
h2 { font-size: 1.875rem; margin: 1.5rem 0 1rem; }
h3 { font-size: 1.5rem; margin: 1.3rem 0 0.8rem; }

p {
    margin: 0 0 1rem;
    line-height: 1.7;
}

a {
    color: #0073aa;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Site Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid #e1e1e1;
    padding: 1rem 0;
    margin-bottom: 2rem;
}

.site-branding {
    text-align: center;
    margin-bottom: 1rem;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.site-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.site-description {
    color: #666;
    font-size: 1rem;
    margin: 0.5rem 0 0;
}

.main-navigation {
    text-align: center;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
    gap: 2rem;
}

.main-navigation a {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.main-navigation a:hover {
    border-color: #0073aa;
    text-decoration: none;
}

/* Entry Header */
.entry-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 1rem;
    line-height: 1.1;
}

.standfirst {
    font-size: 1.25rem;
    font-weight: 400;
    color: #555;
    margin: 1rem 0;
    line-height: 1.5;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.entry-meta {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-meta a {
    color: #666;
    font-weight: 500;
}

.entry-meta a:hover {
    color: #0073aa;
}

.byline {
    margin-right: 0.5rem;
}

.entry-date {
    color: #888;
}

.reading-time {
    color: #888;
    font-size: 0.85rem;
}

/* Entry Content */
.entry-content {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.7;
}

.entry-content p {
    margin-bottom: 1.5rem;
}

.entry-content h2 {
    font-size: 1.875rem;
    margin: 2.5rem 0 1rem;
    padding-top: 1rem;
}

.entry-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 0.8rem;
}

/* Images and Figures */
.entry-content figure {
    margin: 2rem 0;
}

.entry-content img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.entry-content figcaption {
    font-size: 0.9rem;
    color: #666;
    text-align: center;
    margin-top: 0.75rem;
    font-style: italic;
}

/* Blockquotes */
.entry-content blockquote {
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
    margin: 2rem 0;
    padding: 1.5rem;
    border-radius: 0 8px 8px 0;
}

.entry-content blockquote p {
    font-size: 1.2rem;
    font-style: italic;
    margin-bottom: 1rem;
    color: #444;
}

.entry-content blockquote cite {
    display: block;
    font-size: 0.95rem;
    color: #666;
    font-style: normal;
    font-weight: 600;
}

.entry-content blockquote cite:before {
    content: "— ";
}

/* Entry Content Lead */
.entry-content .lead {
    font-size: 1.3rem;
    font-weight: 400;
    color: #444;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    border-left: 4px solid #0073aa;
    padding-left: 1rem;
    background: #f8f9fa;
    padding: 1rem 1rem 1rem 1.5rem;
    border-radius: 0 4px 4px 0;
}

/* Entry Footer */
.entry-footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e1e1e1;
    font-size: 0.9rem;
    color: #666;
}

.entry-categories,
.entry-tags,
.entry-sharing {
    margin-bottom: 1rem;
}

.entry-categories a,
.entry-tags a {
    color: #0073aa;
    text-decoration: none;
    font-weight: 500;
}

.entry-categories a:hover,
.entry-tags a:hover {
    text-decoration: underline;
}

.entry-sharing {
    border-top: 1px solid #f0f0f0;
    padding-top: 1rem;
}

.entry-sharing .share-text {
    margin-right: 1rem;
    font-weight: 500;
}

.entry-sharing a {
    color: #666;
    text-decoration: none;
    margin-right: 1rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.entry-sharing a:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

/* Site Footer */
.site-footer {
    background: #f8f9fa;
    border-top: 1px solid #e1e1e1;
    padding: 2rem 0;
    margin-top: 4rem;
    text-align: center;
}

.site-info {
    max-width: 800px;
    margin: 0 auto;
}

.site-info p {
    margin: 0.5rem 0;
    color: #666;
    font-size: 0.9rem;
}

.site-info a {
    color: #666;
    margin: 0 0.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .entry-title {
        font-size: 2rem;
    }
    
    .standfirst {
        font-size: 1.1rem;
    }
    
    .entry-content {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .site-header,
    .site-footer {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .entry-title {
        font-size: 1.75rem;
    }
    
    .entry-content h2 {
        font-size: 1.5rem;
    }
    
    .entry-content blockquote {
        padding: 1rem;
        margin: 1.5rem 0;
    }
}