/* Blog Post Template Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-light: #9ca3af;
    --background: #ffffff;
    --background-light: #f9fafb;
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --border-radius: 12px;
    --border-radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--background);
    font-size: 18px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Skip Link Hidden */
.skip-link,
.skip-link.screen-reader-text {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Featured Image with Overlay */
.hero-section {
    position: relative;
    width: 100%;
    max-height: 600px;
    overflow: hidden;
    background: var(--background-light);
}

.featured-image-container {
    width: 100%;
    height: 100%;
}

.featured-image {
    width: 100%;
    height: auto;
    aspect-ratio: 1.91 / 1;
    object-fit: cover;
    display: block;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.1));
    color: white;
    padding: 40px 0 30px;
}

.hero-overlay .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hero-overlay .article-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Article Metadata Section */
.article-metadata {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 20px 0;
}

.meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    align-items: center;
    justify-content: center;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.meta-label {
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 500;
}

/* Article Content */
.article-content {
    padding: 60px 0;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

/* Typography */
.lead-paragraph {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 48px;
    padding: 32px;
    background: var(--background-light);
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

h2 {
    font-size: 2.5rem;
    margin: 64px 0 32px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary-color);
}

h3 {
    font-size: 2rem;
    margin: 48px 0 24px;
    color: var(--primary-color);
}

h4 {
    font-size: 1.5rem;
    margin: 40px 0 20px;
}

h5 {
    font-size: 1.25rem;
    margin: 32px 0 16px;
}

h6 {
    font-size: 1.125rem;
    margin: 24px 0 12px;
    font-weight: 600;
}

p {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Images and Media */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

.content-wrapper img {
    max-width: 100%;
    height: auto;
    margin: 32px auto;
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.content-wrapper figure {
    margin: 32px 0;
    text-align: center;
}

.content-wrapper figure img {
    margin: 0 auto 16px;
}

.content-wrapper figcaption {
    font-size: 14px;
    color: var(--text-light);
    font-style: italic;
    text-align: center;
}

/* Custom Lists */
.custom-list {
    list-style: none;
    margin: 32px 0;
    padding: 0;
}

.custom-list li {
    position: relative;
    padding: 12px 0 12px 56px;
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-primary);
    margin-left: 0;
}

.custom-list li::before {
    content: "⚖️";
    position: absolute;
    left: 0;
    top: 12px;
    font-size: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    font-weight: bold;
}

/* Author Section */
.author-section {
    background: var(--background-light);
    padding: 48px 0;
    border-top: 1px solid var(--border-color);
}

.author-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
    cursor: pointer;
    transition: var(--transition);
}

.author-header:hover {
    transform: translateY(-2px);
}

.author-avatar {
    flex-shrink: 0;
}

.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    transition: var(--transition);
}

.author-header:hover .author-avatar img {
    transform: scale(1.05);
}

.author-basic-info {
    flex: 1;
}

.author-basic-info h3 {
    font-size: 1.5rem;
    margin: 0 0 8px;
    color: var(--text-primary);
}

.author-title {
    font-size: 16px;
    color: var(--primary-color);
    font-weight: 600;
    margin: 0;
}

.author-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 50%;
    transition: var(--transition);
}

.author-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.toggle-icon {
    font-size: 1.5rem;
    font-weight: 300;
    transition: var(--transition);
    color: white;
}

.toggle-icon.active {
    transform: rotate(45deg);
}

.author-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.author-content.active {
    max-height: 1000px;
}

.author-bio {
    padding: 32px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
}

.author-bio p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.author-credentials .custom-list li::before {
    content: "🎓";
}

/* Recent Posts */
.recent-posts {
    padding: 64px 0;
    background: var(--background);
}

.recent-posts h3 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text-primary);
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
}

.post-card {
    background: var(--background);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid var(--border-light);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.post-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 24px;
}

.post-content h4 {
    margin: 0 0 12px;
    font-size: 1.25rem;
    line-height: 1.4;
}

.post-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.post-content h4 a:hover {
    color: var(--primary-color);
}

.post-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.post-date {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

/* Footer */
.site-footer {
    background: var(--text-primary);
    color: white;
    padding: 32px 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-links p {
    margin: 0;
    font-size: 14px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: white;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-overlay .article-title {
        font-size: 2rem;
        margin-bottom: 24px;
    }
    
    .article-metadata {
        padding: 16px 0;
    }
    
    .meta-row {
        gap: 20px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meta-item {
        font-size: 13px;
    }
    
    .hero-overlay {
        padding: 40px 0 30px;
    }
    
    .lead-paragraph {
        font-size: 20px;
        padding: 24px;
    }
    
    h2 {
        font-size: 2rem;
        margin: 48px 0 24px;
    }
    
    h3 {
        font-size: 1.5rem;
        margin: 32px 0 16px;
    }
    
    .author-header {
        gap: 16px;
        padding: 20px 0;
    }
    
    .author-avatar img {
        width: 60px;
        height: 60px;
    }
    
    .author-basic-info h3 {
        font-size: 1.25rem;
    }
    
    .author-title {
        font-size: 14px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .custom-list li {
        padding-left: 48px;
        font-size: 16px;
    }
    
    .custom-list li::before {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 16px;
    }
    
    .hero-overlay .article-title {
        font-size: 1.75rem;
    }
    
    .article-metadata {
        padding: 12px 0;
    }
    
    .meta-row {
        gap: 12px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .meta-item {
        font-size: 12px;
    }
    
    .lead-paragraph {
        font-size: 18px;
        padding: 20px;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 16px;
    }
    
    .custom-list li {
        font-size: 16px;
        padding-left: 40px;
    }
    
    .custom-list li::before {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    
    .author-header {
        gap: 12px;
        padding: 16px 0;
    }
    
    .author-avatar img {
        width: 50px;
        height: 50px;
    }
    
    .author-basic-info h3 {
        font-size: 1.125rem;
    }
    
    .author-title {
        font-size: 13px;
    }
    
    .author-toggle {
        width: 32px;
        height: 32px;
    }
    
    .toggle-icon {
        font-size: 1.25rem;
    }
}

