/* ========================================
   TAMIL NEWS PORTAL - SINGLE PAGE STYLES
   Modern UI/UX with Shadow Design
   Complete Responsive Layout
   ======================================== */

/* ========== CSS VARIABLES ========== */
:root {
    --single-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --single-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --single-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --single-shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.15);
    --single-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.18);
    --single-radius-sm: 8px;
    --single-radius-md: 12px;
    --single-radius-lg: 16px;
    --single-radius-xl: 20px;
    --single-radius-2xl: 24px;
    --single-radius-full: 50%;
    --single-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== SINGLE PAGE LAYOUT ========== */
.single-page-content {
    padding-top: 100px; /* Reduced - proper spacing from header */
    padding-bottom: 80px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
}

[data-theme="dark"] .single-page-content {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.single-page-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    align-items: start;
}

/* ========== BREADCRUMB NAVIGATION ========== */
.breadcrumb-nav {
    margin-bottom: 24px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: var(--bg-primary);
    border-radius: var(--single-radius-lg);
    box-shadow: var(--single-shadow-md);
    list-style: none;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
}

.breadcrumb-item a {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
    transition: var(--single-transition);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item a i {
    font-size: 12px;
}

.breadcrumb-item:not(:last-child)::after {
    content: '/';
    margin-left: 12px;
    color: var(--text-muted);
    font-weight: 400;
}

.breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
    max-width: 280px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== MAIN ARTICLE CARD ========== */
.single-article {
    background: var(--bg-primary);
    border-radius: var(--single-radius-2xl);
    overflow: hidden;
    box-shadow: var(--single-shadow-lg);
    transition: var(--single-transition);
}

.single-article:hover {
    box-shadow: var(--single-shadow-xl);
}

/* ========== ARTICLE HEADER ========== */
.article-header {
    padding: 32px;
    padding-bottom: 24px;
}

.article-category {
    margin-bottom: 16px;
}

.article-category .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: var(--single-radius-2xl);
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--single-transition);
    text-decoration: none;
    box-shadow: var(--single-shadow-sm);
}

.article-category .category-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--single-shadow-md);
}

.article-category .category-badge i {
    font-size: 12px;
}

.article-category .category-badge.politics { background: linear-gradient(135deg, #e63946 0%, #d62839 100%); }
.article-category .category-badge.sports { background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%); }
.article-category .category-badge.cinema { background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%); }
.article-category .category-badge.technology { background: linear-gradient(135deg, #3498db 0%, #2980b9 100%); }
.article-category .category-badge.business { background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%); }
.article-category .category-badge.health { background: linear-gradient(135deg, #1abc9c 0%, #16a085 100%); }

.article-title {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.3px;
}

/* ========== ARTICLE META ========== */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    background: var(--bg-secondary);
    border-radius: var(--single-radius-lg);
    margin-bottom: 16px;
    box-shadow: var(--single-shadow-sm);
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: var(--single-radius-full);
    overflow: hidden;
    border: 3px solid var(--primary-color);
    box-shadow: var(--single-shadow-sm);
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--single-radius-full);
}

.author-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.author-role {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.meta-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}

.meta-details span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.meta-details span i {
    color: var(--primary-color);
    font-size: 14px;
}

/* ========== ARTICLE STATS ========== */
.article-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 20px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border-radius: var(--single-radius-lg);
    box-shadow: var(--single-shadow-sm);
}

.article-stats .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 600;
}

.article-stats .stat-item i {
    color: var(--primary-color);
    font-size: 16px;
}

/* ========== FEATURED IMAGE - WITH RADIUS ========== */
.article-featured-image {
    position: relative;
    margin: 0 24px;
    border-radius: var(--single-radius-xl);
    overflow: hidden;
    box-shadow: var(--single-shadow-lg);
}

.article-featured-image img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--single-radius-xl);
    transition: var(--single-transition);
}

.article-featured-image:hover img {
    transform: scale(1.02);
}

.article-featured-image figcaption {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: linear-gradient(135deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 100%);
    font-size: 13px;
    color: #ffffff;
    font-style: italic;
    font-weight: 500;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    border-radius: 0 0 var(--single-radius-xl) var(--single-radius-xl);
}

.article-featured-image figcaption i {
    color: #ffffff;
}

/* ========== ARTICLE CONTENT ========== */
.article-content {
    padding: 32px;
    font-size: 18px;
    line-height: 1.9;
    color: var(--text-primary);
}

.article-content p {
    margin-bottom: 20px;
    color: var(--text-primary);
}

.article-content p:last-child {
    margin-bottom: 0;
}

.article-content h2 {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--primary-color);
    position: relative;
}

.article-content h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 14px;
}

/* Content Images - WITH RADIUS */
.article-content img {
    border-radius: var(--single-radius-xl);
    box-shadow: var(--single-shadow-lg);
    max-width: 100%;
    height: auto;
    margin: 24px 0;
    display: block;
}

.article-content a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: var(--single-transition);
}

.article-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* Content Tag Links */
.content-tag-link {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 2px dashed var(--primary-color);
    padding: 0 3px;
    transition: var(--single-transition);
    font-weight: 600;
    border-radius: 3px;
}

.content-tag-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    border-bottom-color: transparent;
}

/* Article Quote */
.article-quote,
.article-content blockquote {
    position: relative;
    margin: 32px 0;
    padding: 28px 32px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--single-radius-xl);
    color: #ffffff;
    box-shadow: var(--single-shadow-lg);
}

.article-quote::before,
.article-content blockquote::before {
    content: '"';
    position: absolute;
    top: -5px;
    left: 20px;
    font-size: 80px;
    font-family: Georgia, serif;
    color: rgba(255, 255, 255, 0.2);
    line-height: 1;
}

/* Article Lists */
.article-content ul,
.article-content ol {
    margin: 20px 0;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 12px;
    color: var(--text-primary);
}

/* ========== ARTICLE FOOTER ========== */
.article-footer {
    padding: 32px;
    border-top: 2px solid var(--border-color);
    background: linear-gradient(180deg, transparent 0%, var(--bg-secondary) 100%);
}

/* ========== TAGS SECTION ========== */
.article-tags-section {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--bg-primary);
    border-radius: var(--single-radius-lg);
    box-shadow: var(--single-shadow-md);
}

.section-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.section-label i {
    color: var(--primary-color);
    font-size: 18px;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
    border: 2px solid var(--border-color);
    border-radius: var(--single-radius-2xl);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--single-transition);
    box-shadow: var(--single-shadow-sm);
}

.tag-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: var(--single-shadow-md);
}

.no-tags {
    color: var(--text-muted);
    font-style: italic;
    font-size: 14px;
}

/* ========== SOCIAL SHARE SECTION ========== */
.social-share-section {
    margin-bottom: 28px;
    padding: 24px;
    background: var(--bg-primary);
    border-radius: var(--single-radius-lg);
    box-shadow: var(--single-shadow-md);
}

.social-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--single-radius-full);
    color: #ffffff;
    font-size: 18px;
    text-decoration: none;
    transition: var(--single-transition);
    box-shadow: var(--single-shadow-md);
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(100%);
    transition: var(--single-transition);
}

.social-btn:hover::before {
    transform: translateY(0);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: var(--single-shadow-lg);
}

.social-btn.facebook {
    background: linear-gradient(135deg, #1877f2 0%, #0d65d9 100%);
}

.social-btn.twitter {
    background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.social-btn.whatsapp {
    background: linear-gradient(135deg, #25d366 0%, #1ebe57 100%);
}

.social-btn.telegram {
    background: linear-gradient(135deg, #0088cc 0%, #0077b3 100%);
}

.social-btn.linkedin {
    background: linear-gradient(135deg, #0077b5 0%, #006699 100%);
}

.social-btn.email {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
}

/* ========== AUTHOR CARD ========== */
.author-card {
    display: flex;
    gap: 24px;
    padding: 28px;
    background: var(--bg-primary);
    border-radius: var(--single-radius-xl);
    margin-bottom: 28px;
    box-shadow: var(--single-shadow-md);
    border: 2px solid var(--border-color);
    transition: var(--single-transition);
}

.author-card:hover {
    box-shadow: var(--single-shadow-lg);
    border-color: var(--primary-color);
}

.author-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: var(--single-radius-xl);
    overflow: hidden;
    flex-shrink: 0;
    border: 4px solid var(--primary-color);
    box-shadow: var(--single-shadow-md);
}

.author-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--single-radius-lg);
}

.author-details {
    flex: 1;
}

.author-details .author-name {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.author-details .author-bio {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.author-social-links {
    display: flex;
    gap: 10px;
}

.author-social-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--single-radius-full);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: var(--single-transition);
    border: 2px solid var(--border-color);
    text-decoration: none;
    box-shadow: var(--single-shadow-sm);
}

.author-social-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--single-shadow-md);
}

/* ========== ARTICLE NAVIGATION - IMPROVED ========== */
.article-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.nav-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: var(--bg-primary);
    border-radius: var(--single-radius-lg);
    text-decoration: none;
    transition: var(--single-transition);
    border: 2px solid var(--border-color);
    box-shadow: var(--single-shadow-md);
    min-height: 90px;
}

.nav-card:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--single-shadow-lg);
}

.nav-card:hover .nav-arrow,
.nav-card:hover .nav-label,
.nav-card:hover .nav-title {
    color: #ffffff;
}

.nav-card:hover .nav-arrow {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.nav-card.nav-prev {
    justify-content: flex-start;
}

.nav-card.nav-next {
    text-align: right;
    justify-content: flex-end;
}

.nav-arrow {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: var(--single-radius-full);
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
    transition: var(--single-transition);
    box-shadow: var(--single-shadow-sm);
}

.nav-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.nav-label {
    display: block;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 4px;
    transition: var(--single-transition);
}

.nav-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--single-transition);
}

/* Single Navigation Card (when only one exists) */
.article-navigation .nav-card:only-child {
    grid-column: span 2;
    max-width: 100%;
}

/* ========== COMMENTS SECTION ========== */
.comments-section {
    padding: 32px;
    border-top: 2px solid var(--border-color);
}

.comments-header {
    margin-bottom: 24px;
}

.comments-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    padding-bottom: 16px;
    border-bottom: 3px solid var(--primary-color);
}

.comments-title i {
    color: var(--primary-color);
}

/* Comment Form Card */
.comment-form-card {
    background: var(--bg-secondary);
    padding: 28px;
    border-radius: var(--single-radius-xl);
    margin-bottom: 28px;
    box-shadow: var(--single-shadow-md);
    border: 2px solid var(--border-color);
}

.form-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group:last-of-type {
    margin-bottom: 20px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: var(--single-radius-md);
    font-family: inherit;
    font-size: 15px;
    color: var(--text-primary);
    transition: var(--single-transition);
    outline: none;
    box-shadow: var(--single-shadow-sm);
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(230, 57, 70, 0.15);
}

.comment-form input::placeholder,
.comment-form textarea::placeholder {
    color: var(--text-muted);
}

.comment-form textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--single-radius-lg);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--single-transition);
    box-shadow: var(--single-shadow-md);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--single-shadow-lg);
}

/* Comments List */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-card {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--bg-primary);
    border-radius: var(--single-radius-lg);
    box-shadow: var(--single-shadow-md);
    border: 2px solid var(--border-color);
    transition: var(--single-transition);
}

.comment-card:hover {
    box-shadow: var(--single-shadow-lg);
    border-color: rgba(230, 57, 70, 0.3);
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: var(--single-radius-full);
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--border-color);
    box-shadow: var(--single-shadow-sm);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--single-radius-full);
}

.comment-body {
    flex: 1;
}

.comment-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.commenter-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.comment-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 14px;
}

.comment-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.comment-action {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: var(--single-radius-2xl);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--single-transition);
}

.comment-action:hover {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
}

/* No Comments State */
.no-comments {
    text-align: center;
    padding: 48px 24px;
    background: var(--bg-secondary);
    border-radius: var(--single-radius-xl);
    box-shadow: var(--single-shadow-md);
}

.no-comments i {
    font-size: 56px;
    color: var(--text-muted);
    margin-bottom: 16px;
    display: block;
    opacity: 0.5;
}

.no-comments p {
    color: var(--text-secondary);
    font-size: 16px;
    font-weight: 500;
}

/* ========== SIDEBAR ========== */
.single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Sidebar Card Base */
.sidebar-card {
    background: var(--bg-primary);
    border-radius: var(--single-radius-xl);
    overflow: hidden;
    box-shadow: var(--single-shadow-lg);
    transition: var(--single-transition);
    border: 2px solid transparent;
}

.sidebar-card:hover {
    box-shadow: var(--single-shadow-xl);
    border-color: rgba(230, 57, 70, 0.2);
}

.card-header {
    padding: 20px 24px;
    border-bottom: 2px solid var(--border-color);
    background: linear-gradient(135deg, var(--bg-secondary) 0%, transparent 100%);
}

.card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.card-title i {
    color: var(--primary-color);
    font-size: 20px;
}

.card-body {
    padding: 20px 24px;
}

/* Ad Card */
.ad-card {
    overflow: hidden;
    padding: 16px;
}

.ad-card a {
    display: block;
}

.ad-card img {
    width: 100%;
    height: auto;
    transition: var(--single-transition);
    border-radius: var(--single-radius-lg);
    box-shadow: var(--single-shadow-sm);
}

.ad-card:hover img {
    transform: scale(1.03);
}

/* Related News List */
.related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.related-item {
    display: flex;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--single-transition);
}

.related-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.related-image {
    width: 90px;
    height: 68px;
    border-radius: var(--single-radius-md);
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: var(--single-shadow-sm);
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--single-radius-md);
    transition: var(--single-transition);
}

.related-item:hover .related-image img {
    transform: scale(1.1);
}

.related-info h4 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    margin-bottom: 6px;
}

.related-info h4 a {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--single-transition);
}

.related-info h4 a:hover {
    color: var(--primary-color);
}

.related-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.related-time i {
    color: var(--primary-color);
}

.no-data {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
    padding: 16px;
}

/* Sticky Card */
.sticky-card {
    position: sticky;
    top: 120px;
}

/* ========== BACK TO TOP BUTTON ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    border: none;
    border-radius: var(--single-radius-full);
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--single-transition);
    z-index: 1000;
    box-shadow: var(--single-shadow-lg);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-4px);
    box-shadow: var(--single-shadow-xl);
}

/* ========== LOADING OVERLAY ========== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    text-align: center;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: var(--single-radius-full);
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESPONSIVE STYLES - COMPLETE
   ======================================== */

/* Large Desktop */
@media (max-width: 1399px) {
    .single-page-grid {
        grid-template-columns: 1fr 340px;
        gap: 28px;
    }
}

/* Desktop */
@media (max-width: 1199px) {
    .single-page-content {
        padding-top: 95px;
    }
    
    .single-page-grid {
        grid-template-columns: 1fr 320px;
        gap: 24px;
    }
    
    .article-title {
        font-size: 28px;
    }
    
    .article-content {
        font-size: 17px;
        padding: 28px;
    }
    
    .article-featured-image {
        margin: 0 20px;
    }
}

/* Tablet Landscape */
@media (max-width: 991px) {
    .single-page-content {
        padding-top: 90px;
        padding-bottom: 60px;
    }
    
    .single-page-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .single-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .single-sidebar .ad-card:first-child {
        grid-column: span 2;
    }
    
    .sticky-card {
        position: static;
    }
    
    .article-title {
        font-size: 26px;
    }
    
    .article-featured-image {
        margin: 0 16px;
    }
    
    /* Navigation - Tablet */
    .article-navigation {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .nav-card {
        min-height: 80px;
    }
    
    .nav-card:only-child {
        grid-column: span 1;
    }
}

/* Tablet Portrait */
@media (max-width: 767px) {
    .single-page-content {
        padding-top: 85px;
        padding-bottom: 50px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    .breadcrumb {
        padding: 12px 16px;
    }
    
    .breadcrumb-item {
        font-size: 13px;
    }
    
    .breadcrumb-item.active {
        max-width: 150px;
    }
    
    .single-sidebar {
        grid-template-columns: 1fr;
    }
    
    .single-sidebar .ad-card:first-child {
        grid-column: span 1;
    }
    
    .article-header {
        padding: 24px;
    }
    
    .article-title {
        font-size: 22px;
        line-height: 1.4;
    }
    
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 16px;
    }
    
    .meta-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .article-stats {
        flex-wrap: wrap;
        gap: 12px;
        padding: 12px 16px;
    }
    
    .article-featured-image {
        margin: 0 16px;
        border-radius: var(--single-radius-lg);
    }
    
    .article-featured-image img {
        max-height: 280px;
        border-radius: var(--single-radius-lg);
    }
    
    .article-featured-image figcaption {
        padding: 12px 16px;
        font-size: 12px;
        border-radius: 0 0 var(--single-radius-lg) var(--single-radius-lg);
    }
    
    .article-content {
        padding: 24px;
        font-size: 16px;
        line-height: 1.85;
    }
    
    .article-content img {
        border-radius: var(--single-radius-lg);
        margin: 20px 0;
    }
    
    .article-content h2 {
        font-size: 20px;
    }
    
    .article-content h3 {
        font-size: 18px;
    }
    
    .article-footer {
        padding: 24px;
    }
    
    .article-tags-section,
    .social-share-section {
        padding: 20px;
    }
    
    .social-btn {
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
    
    .author-card {
        flex-direction: column;
        text-align: center;
        padding: 24px;
        gap: 16px;
    }
    
    .author-avatar-large {
        margin: 0 auto;
        width: 80px;
        height: 80px;
    }
    
    .author-social-links {
        justify-content: center;
    }
    
    /* Navigation - Mobile Tablet */
    .article-navigation {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .nav-card {
        padding: 16px;
        min-height: 70px;
        gap: 12px;
    }
    
    .nav-card.nav-prev {
        flex-direction: row;
        text-align: left;
    }
    
    .nav-card.nav-next {
        flex-direction: row-reverse;
        text-align: right;
    }
    
    .nav-arrow {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 14px;
    }
    
    .nav-label {
        font-size: 10px;
    }
    
    .nav-title {
        font-size: 13px;
    }
    
    .comments-section {
        padding: 24px;
    }
    
    .comments-title {
        font-size: 18px;
    }
    
    .comment-form-card {
        padding: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .comment-card {
        flex-direction: column;
        padding: 20px;
        gap: 12px;
    }
    
    .comment-avatar {
        width: 44px;
        height: 44px;
    }
    
    .card-header {
        padding: 16px 20px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-body {
        padding: 16px 20px;
    }
    
    .related-image {
        width: 80px;
        height: 60px;
    }
    
    .related-info h4 {
        font-size: 13px;
    }
}

/* Mobile Portrait */
@media (max-width: 575px) {
    .single-page-content {
        padding-top: 80px;
        padding-bottom: 40px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    .breadcrumb {
        padding: 10px 14px;
        gap: 8px;
    }
    
    .breadcrumb-item {
        font-size: 12px;
    }
    
    .breadcrumb-item:not(:last-child)::after {
        margin-left: 8px;
    }
    
    .article-header {
        padding: 20px;
    }
    
    .article-category .category-badge {
        padding: 6px 14px;
        font-size: 11px;
    }
    
    .article-title {
        font-size: 20px;
        margin-bottom: 16px;
    }
    
    .meta-author {
        gap: 12px;
    }
    
    .author-avatar {
        width: 42px;
        height: 42px;
    }
    
    .author-name {
        font-size: 14px;
    }
    
    .author-role {
        font-size: 11px;
    }
    
    .meta-details span {
        font-size: 12px;
    }
    
    .article-stats {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
    
    .article-stats .stat-item {
        font-size: 13px;
    }
    
    .article-featured-image {
        margin: 0 12px;
        border-radius: var(--single-radius-md);
    }
    
    .article-featured-image img {
        max-height: 220px;
        border-radius: var(--single-radius-md);
    }
    
    .article-featured-image figcaption {
        border-radius: 0 0 var(--single-radius-md) var(--single-radius-md);
    }
    
    .article-content {
        padding: 20px;
        font-size: 15px;
    }
    
    .article-content img {
        border-radius: var(--single-radius-md);
        margin: 16px 0;
    }
    
    .article-content h2 {
        font-size: 18px;
        margin-top: 24px;
    }
    
    .article-content h3 {
        font-size: 16px;
    }
    
    .article-footer {
        padding: 20px;
    }
    
    .section-label {
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    .tag-item {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .social-share-buttons {
        justify-content: center;
    }
    
    .social-btn {
        width: 42px;
        height: 42px;
        font-size: 15px;
    }
    
    .author-card {
        padding: 20px;
    }
    
    .author-avatar-large {
        width: 70px;
        height: 70px;
    }
    
    .author-details .author-name {
        font-size: 18px;
    }
    
    .author-details .author-bio {
        font-size: 13px;
    }
    
    .author-social-btn {
        width: 34px;
        height: 34px;
        font-size: 13px;
    }
    
    /* Navigation - Mobile Small */
    .article-navigation {
        gap: 10px;
    }
    
    .nav-card {
        padding: 14px;
        gap: 10px;
        min-height: 65px;
    }
    
    .nav-arrow {
        width: 36px;
        height: 36px;
        min-width: 36px;
        font-size: 13px;
    }
    
    .nav-label {
        font-size: 9px;
        letter-spacing: 0.5px;
        margin-bottom: 2px;
    }
    
    .nav-title {
        font-size: 12px;
        line-height: 1.3;
        white-space: normal;
        -webkit-line-clamp: 2;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .comments-section {
        padding: 20px;
    }
    
    .comments-title {
        font-size: 16px;
        gap: 10px;
    }
    
    .comment-form-card {
        padding: 16px;
    }
    
    .form-title {
        font-size: 16px;
    }
    
    .comment-form input,
    .comment-form textarea {
        padding: 12px 14px;
        font-size: 14px;
    }
    
    .submit-btn {
        padding: 12px 24px;
        font-size: 14px;
        width: 100%;
        justify-content: center;
    }
    
    .comment-card {
        padding: 16px;
    }
    
    .commenter-name {
        font-size: 14px;
    }
    
    .comment-text {
        font-size: 14px;
    }
    
    .comment-action {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .no-comments {
        padding: 32px 16px;
    }
    
    .no-comments i {
        font-size: 40px;
    }
    
    .no-comments p {
        font-size: 14px;
    }
    
    .card-header {
        padding: 14px 16px;
    }
    
    .card-title {
        font-size: 15px;
        gap: 8px;
    }
    
    .card-body {
        padding: 14px 16px;
    }
    
    .related-item {
        gap: 12px;
        padding-bottom: 12px;
    }
    
    .related-image {
        width: 70px;
        height: 52px;
    }
    
    .related-image img {
        border-radius: var(--single-radius-sm);
    }
    
    .related-info h4 {
        font-size: 12px;
        line-height: 1.4;
    }
    
    .related-time {
        font-size: 11px;
    }
    
    .back-to-top {
        width: 44px;
        height: 44px;
        bottom: 20px;
        right: 20px;
        font-size: 16px;
    }
}

/* Extra Small Devices */
@media (max-width: 400px) {
    .single-page-content {
        padding-top: 75px;
    }
    
    .article-title {
        font-size: 18px;
    }
    
    .article-content {
        font-size: 14px;
        padding: 16px;
    }
    
    .article-featured-image {
        margin: 0 10px;
    }
    
    .social-btn {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .social-share-buttons {
        gap: 8px;
    }
    
    /* Navigation - Extra Small */
    .nav-card {
        padding: 12px;
        gap: 8px;
        min-height: 60px;
    }
    
    .nav-arrow {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 12px;
    }
    
    .nav-label {
        font-size: 8px;
    }
    
    .nav-title {
        font-size: 11px;
    }
}

/* ========== DARK MODE STYLES ========== */
[data-theme="dark"] .single-article {
    background: var(--bg-primary);
}

[data-theme="dark"] .article-meta,
[data-theme="dark"] .article-stats {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .article-featured-image figcaption {
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.7) 100%);
}

[data-theme="dark"] .article-tags-section,
[data-theme="dark"] .social-share-section,
[data-theme="dark"] .author-card {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .comment-form-card {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .comment-form input,
[data-theme="dark"] .comment-form textarea {
    background: var(--bg-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] .comment-card {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .nav-card {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .sidebar-card {
    background: var(--bg-primary);
}

[data-theme="dark"] .no-comments {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .tag-item {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .loading-overlay {
    background: rgba(15, 23, 42, 0.95);
}

/* ========== PRINT STYLES ========== */
@media print {
    .single-sidebar,
    .article-stats,
    .social-share-section,
    .comments-section,
    .article-navigation,
    .back-to-top,
    .breadcrumb-nav {
        display: none !important;
    }
    
    .single-page-content {
        padding-top: 0;
    }
    
    .single-page-grid {
        grid-template-columns: 1fr;
    }
    
    .single-article {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .article-featured-image {
        margin: 0;
    }
    
    .article-featured-image img {
        max-height: none;
    }
}