/* ============================================
   PREMIUM MAGAZINE STYLE - SINGLE POST
   ============================================ */

/* Container Utilities */
.container-narrow {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-wide {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ============================================
   READING PROGRESS BAR
   ============================================ */
.reading-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    z-index: 9999;
    transition: width 0.1s ease-out;
}

/* ============================================
   SOCIAL SHARE BUTTONS (Global)
   ============================================ */
.social-share-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.share-btn {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: white;
}

/* Share Button Colors */
.share-btn[href*="facebook"] {
    background: #1877f2;
}

.share-btn[href*="twitter"],
.share-btn[href*="x.com"] {
    background: #000000;
}

.share-btn[href*="whatsapp"] {
    background: #25d366;
}

.share-btn[href*="linkedin"] {
    background: #0a66c2;
}

.share-btn[href*="telegram"] {
    background: #0088cc;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* ============================================
   FLOATING SOCIAL SHARE
   ============================================ */
.floating-social-share {
    position: fixed;
    left: max(2rem, calc((100vw - 1140px) / 2 - 100px));
    top: 50%;
    transform: translateY(-50%);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-social-share.visible {
    opacity: 1;
    visibility: visible;
}

.share-label-floating {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.floating-social-share .social-share-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.floating-social-share .share-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.floating-social-share .share-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* ============================================
   ARTICLE HEADER (Compact)
   ============================================ */
.premium-article-header {
    padding: 2rem 0 1.5rem;
    background: #ffffff;
}

.premium-breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.premium-category-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    text-decoration: none;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.premium-category-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(239, 68, 68, 0.3);
}

.premium-title {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 2rem;
    letter-spacing: -0.02em;
}

.premium-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #f1f5f9;
}

.premium-meta-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-meta-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.author-name a {
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    font-size: 0.9375rem;
}

.author-name a:hover {
    color: #ef4444;
}

.post-date {
    font-size: 0.875rem;
    color: #64748b;
}

.premium-meta-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 600;
}

.reading-time svg {
    color: #ef4444;
}

/* ============================================
   FEATURED IMAGE (Compact)
   ============================================ */
.premium-featured-image {
    margin: 2rem 0;
}

.premium-featured-image img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    border-radius: 16px;
    display: block;
}

.premium-image-caption {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
    font-style: italic;
    text-align: center;
}

/* ============================================
   CONTENT AREA (Compact)
   ============================================ */
.premium-content-area {
    padding: 2rem 0;
}

.premium-content-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 3rem;
    align-items: start;
}

/* ============================================
   ARTICLE BODY
   ============================================ */
.premium-article {
    max-width: 100%;
}

.premium-lead {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #1e293b;
    margin-bottom: 2rem;
    padding-left: 1.5rem;
    border-left: 4px solid #ef4444;
}

.site-name-link {
    color: #ef4444;
    text-decoration: none;
    font-weight: 700;
}

.site-name-link:hover {
    text-decoration: underline;
}

.premium-body {
    font-family: 'Inter', Georgia, serif;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: #334155;
}

.premium-body>p:first-of-type::first-letter {
    float: left;
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 900;
    color: #ef4444;
    margin: 0 0.1em 0 0;
}

.premium-body p {
    margin-bottom: 1.5rem;
}

.premium-body h2,
.premium-body h3 {
    font-weight: 800;
    color: #0f172a;
    margin: 2.5rem 0 1.25rem;
    line-height: 1.3;
    scroll-margin-top: 100px;
}

.premium-body h2 {
    font-size: 1.75rem;
    border-bottom: 3px solid #f1f5f9;
    padding-bottom: 0.75rem;
}

.premium-body h3 {
    font-size: 1.375rem;
}

.premium-body blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-left: 5px solid #ef4444;
    border-radius: 8px;
    font-size: 1.125rem;
    font-style: italic;
    color: #1e293b;
}

.premium-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.premium-body ul,
.premium-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.premium-body li {
    margin-bottom: 0.75rem;
}

/* ============================================
   TAGS (Compact)
   ============================================ */
.premium-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 2rem 0;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 12px;
}

.tags-icon {
    color: #ef4444;
}

.premium-tags a {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.premium-tags a:hover {
    background: #ef4444;
    color: white;
    border-color: #ef4444;
    transform: translateY(-2px);
}

/* ============================================
   MOBILE SHARE (Compact)
   ============================================ */
.premium-share-mobile {
    display: none;
    margin: 2rem 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
}

.share-label-mobile {
    display: block;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.premium-share-mobile .social-share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.premium-share-mobile .share-btn {
    flex: 1;
    min-width: 48px;
    height: 48px;
    border-radius: 8px;
}

/* ============================================
   SIDEBAR (TOC)
   ============================================ */
.premium-sidebar {
    position: relative;
}

.premium-sidebar-sticky {
    position: sticky;
    top: 2rem;
}

.table-of-contents {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
}

.toc-title {
    font-size: 0.9375rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-level-3 {
    margin-left: 1rem;
}

.toc-link {
    display: block;
    color: #64748b;
    text-decoration: none;
    font-size: 0.8125rem;
    line-height: 1.5;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.toc-link:hover,
.toc-link.active {
    background: white;
    color: #ef4444;
    font-weight: 600;
}

/* ============================================
   PREMIUM AUTHOR CARD (Compact)
   ============================================ */
.premium-author-section {
    margin: 3rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.premium-author-card {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.author-card-avatar {
    flex-shrink: 0;
}

.author-card-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid #ef4444;
}

.author-card-content {
    flex: 1;
}

.author-card-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.author-card-name {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 1rem;
}

.author-card-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: #64748b;
    margin: 0 0 1.5rem;
}

.author-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f1f5f9;
}

.author-social-links {
    display: flex;
    gap: 0.75rem;
}

.author-social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s;
}

.author-social-link:hover {
    background: #ef4444;
    color: white;
    transform: translateY(-4px);
}

.author-view-all {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #ef4444;
    color: white;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;
    transition: all 0.3s;
}

.author-view-all:hover {
    background: #dc2626;
    transform: translateX(4px);
}

/* ============================================
   RELATED POSTS GRID (Compact & Enhanced)
   ============================================ */
.related-posts-grid-section {
    margin: 3rem 0;
}

.related-header {
    text-align: center;
    margin-bottom: 2rem;
}

.related-posts-grid-title {
    font-size: 2.25rem;
    font-weight: 900;
    color: #0f172a;
    margin: 0 0 0.75rem;
    letter-spacing: -0.02em;
}

.related-posts-subtitle {
    font-size: 1.125rem;
    color: #64748b;
    margin: 0;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.related-post-card-grid {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.related-post-card-grid:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
    border-color: #3b82f6;
}

.related-post-thumb-grid {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/10;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.related-post-thumb-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.related-post-card-grid:hover .related-post-thumb-grid img {
    transform: scale(1.15);
}

.related-post-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9), rgba(220, 38, 38, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s;
}

.related-post-card-grid:hover .related-post-overlay {
    opacity: 1;
}

.related-post-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.375rem 0.875rem;
    background: rgba(239, 68, 68, 0.95);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 0.6875rem;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 6px;
    letter-spacing: 0.5px;
    z-index: 2;
}

.related-post-content-grid {
    padding: 1.25rem;
}

.related-post-title-grid a {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    text-decoration: none;
    line-height: 1.4;
    display: block;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-title-grid a:hover {
    color: #ef4444;
}

.related-post-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-post-meta-grid {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 600;
}

.related-post-date-grid,
.related-post-reading {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.related-post-date-grid svg,
.related-post-reading svg {
    flex-shrink: 0;
}

/* ============================================
   NEWSLETTER SUBSCRIPTION (Compact)
   ============================================ */
.premium-newsletter-section {
    margin: 3rem 0;
    padding: 3rem 0;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
}

.newsletter-box {
    display: flex;
    gap: 2rem;
    padding: 2.5rem;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
    border: 2px solid #3b82f6;
    align-items: center;
}

.newsletter-icon {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.newsletter-content {
    flex: 1;
}

.newsletter-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 0.75rem;
}

.newsletter-description {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.newsletter-form {
    max-width: 600px;
}

.newsletter-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s;
}

.newsletter-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.newsletter-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.newsletter-button:hover {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.newsletter-privacy {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .floating-social-share {
        display: none !important;
    }

    .premium-share-mobile {
        display: block;
    }

    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .premium-content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .premium-sidebar {
        order: -1;
    }

    .premium-sidebar-sticky {
        position: static;
    }

    .related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .newsletter-box {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .container-narrow,
    .container-wide {
        padding: 0 1.5rem;
    }

    .premium-title {
        font-size: 1.75rem;
    }

    .premium-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .premium-featured-image img {
        max-height: 400px;
    }

    .premium-author-card {
        flex-direction: column;
        padding: 2rem;
    }

    .author-card-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .related-posts-grid {
        grid-template-columns: 1fr;
    }

    .newsletter-input-group {
        flex-direction: column;
    }

    .newsletter-button {
        justify-content: center;
    }

    .premium-body>p:first-of-type::first-letter {
        font-size: 2.5rem;
    }
}