/**
 * Blog Posts Optimization Styles
 *
 * Features:
 * - Professional typography for readability
 * - Modern card-based layouts
 * - Smooth animations and transitions
 * - Social sharing integration
 * - Responsive design
 * - Print-friendly styles
 * - Accessibility features
 */

/* ========================================
   SINGLE POST STYLES
   ======================================== */

/* Breadcrumb Navigation */
.breadcrumb {
    background: var(--white, #ffffff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1rem 0;
    margin-bottom: 0;
}

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.875rem;
    color: #6b7280;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    opacity: 0.5;
}

.breadcrumb-list a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-list a:hover {
    color: var(--primary-color, #2563eb);
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--primary-color, #2563eb);
    font-weight: 500;
}

/* Single Post Main */
.single-post-main {
    background: var(--white, #ffffff);
}

.single-post-article {
    padding: 2rem 0 4rem;
}

/* Post Header */
.post-header {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.post-category-badge {
    margin-bottom: 1rem;
}

.category-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-color, #2563eb), #7c3aed);
    color: var(--white, #ffffff);
    text-decoration: none;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.category-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(37, 99, 235, 0.3);
}

.post-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--heading-color, #1e293b);
    margin: 1rem 0;
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
}

/* Post Meta */
.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
    color: #6b7280;
    font-size: 0.9rem;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-meta img {
    border-radius: 50%;
    border: 2px solid var(--primary-color, #2563eb);
}

.author-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.author-name {
    font-weight: 600;
    color: var(--heading-color, #1e293b);
}

.post-date {
    font-size: 0.85rem;
    color: #9ca3af;
}

.meta-divider {
    color: #d1d5db;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.meta-item i {
    color: var(--primary-color, #2563eb);
}

/* Featured Image */
.post-featured-image {
    margin: 2rem 0;
    border-radius: var(--radius-xl, 1rem);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-caption {
    padding: 1rem;
    background: rgba(0, 0, 0, 0.02);
    font-size: 0.875rem;
    color: #6b7280;
    font-style: italic;
    text-align: center;
}

/* Post Content Wrapper */
.post-content-wrapper {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Social Share Sidebar */
.social-share-sidebar {
    position: relative;
}

.share-sticky {
    position: sticky;
    top: 100px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
}

.share-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    margin-bottom: 0.5rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.share-btn:hover {
    transform: translateY(-3px) scale(1.1);
}

.share-facebook:hover {
    background: #1877f2;
    color: white;
}

.share-twitter:hover {
    background: #1da1f2;
    color: white;
}

.share-linkedin:hover {
    background: #0a66c2;
    color: white;
}

.share-email:hover {
    background: #ea4335;
    color: white;
}

.share-copy:hover {
    background: var(--primary-color, #2563eb);
    color: white;
}

.social-share-mobile {
    display: none;
}

/* Post Content */
.post-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #374151;
    font-size: 1.0625rem;
}

.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
    color: var(--heading-color, #1e293b);
    font-weight: 700;
    margin: 2rem 0 1rem;
    line-height: 1.3;
}

.post-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
}

.post-content p {
    margin: 1.5rem 0;
}

.post-content a {
    color: var(--primary-color, #2563eb);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 3px;
    transition: all 0.2s;
}

.post-content a:hover {
    text-decoration-color: var(--primary-color, #2563eb);
    color: #1e40af;
}

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 2rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    border-left: 4px solid var(--primary-color, #2563eb);
    background: linear-gradient(to right, rgba(37, 99, 235, 0.05), transparent);
    font-size: 1.125rem;
    font-style: italic;
    color: #4b5563;
}

.post-content ul,
.post-content ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-content li {
    margin: 0.75rem 0;
}

.post-content code {
    background: #f3f4f6;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
    color: #dc2626;
}

.post-content pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}

.post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

.post-content th,
.post-content td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.post-content th {
    background: #f9fafb;
    font-weight: 600;
}

/* Post Footer */
.post-footer {
    max-width: 800px;
    margin: 3rem auto 0;
    padding: 2rem 1rem 0;
    border-top: 2px solid #e5e7eb;
}

/* Tags */
.post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.post-tags i {
    color: var(--primary-color, #2563eb);
}

.post-tags a {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    border-radius: 1rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.post-tags a:hover {
    background: var(--primary-color, #2563eb);
    color: white;
    transform: translateY(-2px);
}

/* Author Bio */
.author-bio {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    border-radius: var(--radius-xl, 1rem);
    margin: 2rem 0;
}

.author-avatar img {
    border-radius: 50%;
    border: 3px solid var(--primary-color, #2563eb);
}

.author-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--heading-color, #1e293b);
    margin-bottom: 0.5rem;
}

.author-description {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.author-social {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.author-social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    color: var(--primary-color, #2563eb);
    text-decoration: none;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.author-social-link:hover {
    background: var(--primary-color, #2563eb);
    color: white;
    transform: translateY(-2px);
}

/* Post Navigation */
.post-navigation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.nav-post {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: var(--radius-xl, 1rem);
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-post:hover {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.15);
    transform: translateY(-4px);
}

.nav-label {
    display: block;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #6b7280;
}

.nav-post-link {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
}

.nav-post-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 0.5rem;
}

.nav-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nav-post-info h4 {
    font-size: 1rem;
    color: var(--heading-color, #1e293b);
    line-height: 1.4;
    margin: 0;
}

/* Related Posts */
.related-posts {
    background: linear-gradient(135deg, #f9fafb 0%, #f3f4f6 100%);
    padding: 4rem 0;
    margin-top: 3rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--heading-color, #1e293b);
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
}

.section-title i {
    color: var(--primary-color, #2563eb);
    margin-right: 0.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-post-card {
    background: white;
    border-radius: var(--radius-xl, 1rem);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.related-post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.related-post-link {
    text-decoration: none;
    color: inherit;
}

.related-post-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.related-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-post-card:hover .related-post-image img {
    transform: scale(1.1);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.related-post-card:hover .image-overlay {
    opacity: 1;
}

.image-overlay i {
    color: white;
    font-size: 2rem;
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--primary-color, #2563eb);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 1rem;
    margin-bottom: 0.75rem;
}

.related-post-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0.75rem 0;
    line-height: 1.4;
    color: var(--heading-color, #1e293b);
}

.related-post-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Comments Section */
.comments-section {
    background: white;
    padding: 3rem 0;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color, #2563eb), #7c3aed);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s ease;
}

/* ========================================
   ARCHIVE STYLES
   ======================================== */

/* Archive Hero */
.archive-hero {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color, #2563eb) 0%, #7c3aed 100%);
    color: white;
    padding: 4rem 0 3rem;
    overflow: hidden;
}

.archive-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.archive-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: var(--font-display, 'Playfair Display', Georgia, serif);
}

.archive-title i {
    margin-right: 0.5rem;
    opacity: 0.9;
}

.archive-description {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto 1rem;
    opacity: 0.95;
    line-height: 1.6;
}

.archive-meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    font-weight: 600;
}

/* Archive Background Shapes */
.archive-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.bg-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -75px;
}

.shape-3 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Archive Filters */
.archive-filters {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-xl, 1rem);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    margin: -2rem auto 2rem;
    position: relative;
    z-index: 3;
    max-width: 1200px;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--heading-color, #1e293b);
    margin-bottom: 1rem;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    color: #4b5563;
    text-decoration: none;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s;
}

.category-pill:hover,
.category-pill.active {
    background: var(--primary-color, #2563eb);
    color: white;
    transform: translateY(-2px);
}

.pill-count {
    padding: 0.125rem 0.5rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Search Form */
.filter-search {
    max-width: 500px;
    margin: 0 auto;
}

.search-form {
    position: relative;
    display: flex;
}

.search-field {
    flex: 1;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 2rem;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.search-field:focus {
    outline: none;
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-submit {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.5rem 1rem;
    background: var(--primary-color, #2563eb);
    color: white;
    border: none;
    border-radius: 1.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.search-submit:hover {
    background: #1e40af;
    transform: translateY(-50%) scale(1.05);
}

/* Posts Archive Grid */
.posts-archive-grid {
    display: grid;
    gap: 2rem;
    margin: 2rem 0;
}

/* Post Card */
.post-card {
    background: white;
    border-radius: var(--radius-xl, 1rem);
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

/* Featured Post (First post in grid) */
.featured-post {
    grid-column: 1 / -1;
}

.featured-post .post-card-link {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2rem;
}

.featured-post .post-card-content {
    padding: 2rem;
}

.post-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Post Card Image */
.post-card-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.post-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .post-card-image img {
    transform: scale(1.1);
}

.post-category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.5rem 1rem;
    background: var(--primary-color, #2563eb);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 1rem;
    z-index: 2;
}

.featured-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 1rem;
    z-index: 2;
}

/* Post Card Content */
.post-card-content {
    padding: 1.5rem;
}

.post-card-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.post-card-meta img {
    border-radius: 50%;
}

.post-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 1rem 0;
    color: var(--heading-color, #1e293b);
}

.featured-post .post-card-title {
    font-size: 2rem;
}

.post-card-excerpt {
    color: #6b7280;
    line-height: 1.6;
    margin: 1rem 0;
}

.post-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    background: #f3f4f6;
    font-size: 0.75rem;
    border-radius: 1rem;
    color: #6b7280;
}

.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.read-more-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color, #2563eb);
    font-weight: 600;
    font-size: 0.9375rem;
}

.post-card:hover .read-more-link i {
    transform: translateX(4px);
}

.read-more-link i {
    transition: transform 0.2s;
}

.comments-count {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #9ca3af;
    font-size: 0.875rem;
}

/* No Posts Found */
.no-posts-found {
    text-align: center;
    padding: 4rem 2rem;
}

.no-posts-icon {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

.no-posts-found h2 {
    font-size: 2rem;
    color: var(--heading-color, #1e293b);
    margin-bottom: 1rem;
}

.no-posts-found p {
    color: #6b7280;
    margin-bottom: 2rem;
}

/* Pagination */
.pagination-wrapper {
    margin: 3rem 0;
}

.pagination-wrapper .page-numbers {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
}

.pagination-wrapper .page-numbers a,
.pagination-wrapper .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0.5rem 1rem;
    background: white;
    color: #4b5563;
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.2s;
    border: 1px solid #e5e7eb;
}

.pagination-wrapper .page-numbers a:hover {
    background: var(--primary-color, #2563eb);
    color: white;
    border-color: var(--primary-color, #2563eb);
    transform: translateY(-2px);
}

.pagination-wrapper .page-numbers .current {
    background: var(--primary-color, #2563eb);
    color: white;
    border-color: var(--primary-color, #2563eb);
}

/* Archive Newsletter */
.archive-newsletter {
    margin: 4rem 0;
}

.newsletter-card {
    background: linear-gradient(135deg, var(--primary-color, #2563eb), #7c3aed);
    color: white;
    padding: 3rem 2rem;
    border-radius: var(--radius-xl, 1rem);
    text-align: center;
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.3);
}

.newsletter-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.newsletter-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.newsletter-description {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-input-group {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto 1rem;
}

.newsletter-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

.newsletter-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.newsletter-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
}

.newsletter-submit {
    padding: 0.875rem 2rem;
    background: white;
    color: var(--primary-color, #2563eb);
    border: none;
    border-radius: 2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.newsletter-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.newsletter-privacy {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color, #2563eb);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    z-index: 1000;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.4);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
    .post-content-wrapper {
        grid-template-columns: 1fr;
    }

    .social-share-sidebar {
        display: none;
    }

    .social-share-mobile {
        display: block;
        margin: 2rem 0;
        padding: 2rem;
        background: #f9fafb;
        border-radius: var(--radius-xl, 1rem);
    }

    .social-share-mobile h3 {
        font-size: 1.25rem;
        margin-bottom: 1rem;
    }

    .share-buttons-mobile {
        display: flex;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .share-btn-mobile {
        flex: 1;
        min-width: 150px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        border-radius: 0.5rem;
        text-decoration: none;
        color: white;
        font-weight: 600;
        transition: all 0.2s;
    }

    .share-facebook {
        background: #1877f2;
    }

    .share-twitter {
        background: #1da1f2;
    }

    .share-linkedin {
        background: #0a66c2;
    }

    .share-btn-mobile:hover {
        transform: translateY(-2px);
    }

    .featured-post .post-card-link {
        grid-template-columns: 1fr;
    }

    .author-bio {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .author-avatar {
        justify-self: center;
    }

    .author-social {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .archive-title {
        font-size: 2rem;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-meta {
        font-size: 0.8125rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        grid-template-columns: 1fr;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-submit {
        width: 100%;
    }

    .archive-filters {
        padding: 1.5rem 1rem;
    }

    .category-pills {
        gap: 0.5rem;
    }

    .filter-search {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 0.75rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .related-post-title {
        font-size: 1rem;
    }

    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .social-share-sidebar,
    .social-share-mobile,
    .related-posts,
    .post-navigation,
    .back-to-top,
    .archive-filters,
    .breadcrumb,
    .newsletter-card {
        display: none !important;
    }

    .post-content-wrapper {
        grid-template-columns: 1fr;
    }

    .post-content a {
        color: #000;
        text-decoration: underline;
    }

    .post-featured-image {
        page-break-inside: avoid;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .post-card {
        border: 2px solid currentColor;
    }

    .category-link,
    .share-btn,
    .btn-primary {
        border: 2px solid currentColor;
    }
}

/* Focus Visible (Keyboard Navigation) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--primary-color, #2563eb);
    outline-offset: 2px;
}
