/**
 * =================================================================
 * SW Render Library - Complete Stylesheet
 * =================================================================
 * @version 3.0
 * @compatible Bootstrap 5.3.7
 * @fonts Cairo (Arabic), Font Awesome 6.5.1
 */

:root {
    /* الألوان الأساسية */
    --sw-primary: #1e40af;
    --sw-primary-dark: #1e3a8a;
    --sw-secondary: #2563eb;
    --sw-accent: #dc2626;
    --sw-accent-light: #ef4444;
    --sw-success: #059669;
    --sw-warning: #f59e0b;
    --sw-info: #0ea5e9;
    
    /* الألوان المحايدة */
    --sw-dark: #1f2937;
    --sw-gray: #6b7280;
    --sw-gray-light: #9ca3af;
    --sw-gray-lighter: #e5e7eb;
    --sw-gray-lightest: #f3f4f6;
    --sw-bg: #f8fafc;
    --sw-white: #ffffff;
    
    /* الظلال */
    --sw-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --sw-shadow: 0 3px 15px rgba(0, 0, 0, 0.08);
    --sw-shadow-md: 0 6px 20px rgba(0, 0, 0, 0.1);
    --sw-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    
    /* الحواف الدائرية */
    --sw-radius-sm: 8px;
    --sw-radius: 12px;
    --sw-radius-lg: 15px;
    --sw-radius-full: 9999px;
    
    /* التحولات */
    --sw-transition: all 0.3s ease;
    --sw-transition-slow: all 0.5s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    background: var(--sw-bg);
    color: var(--sw-dark);
    line-height: 2;
    direction: rtl;
}

/* =================================================================
   UTILITIES
   ================================================================= */
.sw_hover-effect {
    transition: var(--sw-transition);
}

.sw_hover-effect:hover {
    transform: translateY(-5px);
    box-shadow: var(--sw-shadow-md);
}

.hover-bg-light:hover {
    background-color: var(--sw-gray-lightest);
}

/* =================================================================
   POST HEADER
   ================================================================= */
.sw_post-header {
    margin-bottom: 2rem;
}

.sw_category-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.5rem 1.25rem;
    border-radius: var(--sw-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.sw_post-title {
    font-size: 1.7rem;
    font-weight: 900;
    line-height: 1.3;
    color: var(--sw-dark);
    margin: 1rem 0;
}

.sw_post-subtitle {
    font-size: 1.3rem;
    color: var(--sw-gray);
    line-height: 1.6;
    margin-top: 1rem;
}

/* =================================================================
   POST META
   ================================================================= */
.sw_post-meta {
    padding: 1.25rem 0;
    border-top: 2px solid var(--sw-gray-lighter);
    border-bottom: 2px solid var(--sw-gray-lighter);
    margin: 1.5rem 0;
}

.sw_meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    color: var(--sw-gray);
}

.sw_author-meta {
    gap: 1rem;
}

.sw_author-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sw-white);
    box-shadow: var(--sw-shadow-sm);
}

.sw_author-info {
    display: flex;
    flex-direction: column;
}

.sw_author-label {
    font-size: 0.75rem;
    color: var(--sw-gray-light);
}

.sw_author-name {
    font-weight: 700;
    color: var(--sw-dark);
}

.sw_author-name:hover {
    color: var(--sw-primary);
}

/* =================================================================
   FEATURED IMAGE & MEDIA
   ================================================================= */
.sw_featured-image-container {
    margin: 2rem 0;
    border-radius: var(--sw-radius);
    overflow: hidden;
}

.sw_featured-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--sw-radius);
}

.sw_image-caption {
    font-size: 0.9rem;
    color: var(--sw-gray);
    font-style: italic;
    text-align: center;
    padding: 0.75rem 0;
}

/* Media Slider */
.sw_media-slider {
    border-radius: var(--sw-radius);
    overflow: hidden;
    box-shadow: var(--sw-shadow);
}

.sw_media-slider .carousel-item {
    height: 500px;
}

.sw_media-slider .carousel-item img {
    height: 100%;
    object-fit: cover;
}

/* =================================================================
   ARTICLE CONTENT
   ================================================================= */
.sw_article-container {
    background: var(--sw-white);
    padding: 2.5rem;
    border-radius: var(--sw-radius-lg);
    box-shadow: var(--sw-shadow);
}

.sw_article-content {
    font-size: 1.2rem;
    line-height: 2;
	font-weight: 500;
    color: #374151;
	text-indent: 15px;
}

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

.sw_article-content h2 {
    font-size: 1.875rem;
    font-weight: 800;
    margin: 2.5rem 0 1.5rem;
    color: var(--sw-dark);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--sw-primary);
}

.sw_article-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--sw-dark);
}

.sw_article-content img {
    width: 100%;
    border-radius: var(--sw-radius);
    margin: 2rem 0;
}

.sw_article-content blockquote {
    background: var(--sw-gray-lightest);
    border-right: 4px solid var(--sw-primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    font-size: 1.25rem;
    font-style: italic;
    border-radius: var(--sw-radius-sm);
}

.sw_article-content ul,
.sw_article-content ol {
    margin: 1.5rem 0;
    padding-right: 2rem;
}

.sw_article-content li {
    margin-bottom: 0.95rem;
}

.sw_article-content a {
    color: var(--sw-primary);
    text-decoration: underline;
}

.sw_article-content a:hover {
    color: var(--sw-secondary);
}

/* =================================================================
   SOCIAL SHARE
   ================================================================= */
.sw_social-share {
    background: var(--sw-gray-lightest);
    padding: 1.5rem;
    border-radius: var(--sw-radius);
    margin: 2rem 0;
}

.sw_share-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sw_share-buttons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sw_share-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--sw-white);
    text-decoration: none;
    transition: var(--sw-transition);
    font-size: 1.125rem;
}

.sw_share-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--sw-shadow-md);
}

.sw_share-facebook { background: #1877f2; }
.sw_share-twitter { background: #000000; }
.sw_share-whatsapp { background: #25d366; }
.sw_share-telegram { background: #0088cc; }
.sw_share-linkedin { background: #0a66c2; }

/* Share Style: Minimal */
.sw_share-style-minimal .sw_share-title {
    display: none;
}

.sw_share-style-minimal .sw_share-buttons {
    justify-content: center;
}

/* Share Style: Buttons */
.sw_share-style-buttons .sw_share-btn {
    width: auto;
    height: auto;
    padding: 0.5rem 1.25rem;
    border-radius: var(--sw-radius-full);
    gap: 0.5rem;
}

/* Share Style: Floating */
.sw_share-style-floating {
    position: fixed;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
    background: var(--sw-white);
    padding: 1rem 0.5rem;
    border-radius: var(--sw-radius-lg);
    box-shadow: var(--sw-shadow-lg);
    z-index: 1000;
}

.sw_share-style-floating .sw_share-buttons {
    flex-direction: column;
}

/* =================================================================
   POST TAGS
   ================================================================= */
.sw_post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    padding: 2rem 0 1rem;
    border-top: 2px solid var(--sw-gray-lighter);
}

.sw_tag-item {
    background: var(--sw-gray-lightest);
    color: var(--sw-primary);
    padding: 0.5rem 1.25rem;
    border-radius: var(--sw-radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--sw-transition);
}

.sw_tag-item:hover {
    background: var(--sw-primary);
    color: var(--sw-white);
    transform: translateY(-2px);
}

/* Tags Style: Badges */
.sw_tags-style-badges .sw_tag-item {
    background: var(--sw-secondary);
    color: var(--sw-white);
}

/* =================================================================
   AUTHOR BIO
   ================================================================= */
.sw_author-bio {
    margin: 3rem 0;
}

.sw_author-bio-card {
    background: var(--sw-gray-lightest);
    border-radius: var(--sw-radius);
}

.sw_author-bio-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--sw-white);
    box-shadow: var(--sw-shadow);
}

.sw_author-bio-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sw-dark);
    margin-bottom: 0.5rem;
}

.sw_author-bio-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--sw-gray);
}

.sw_author-bio-link {
    font-size: 0.875rem;
}

/* =================================================================
   CONTENT TYPE BADGES
   ================================================================= */
.sw_content-type-badge {
    margin-bottom: 1.5rem;
}

.sw_content-type-badge .badge {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* =================================================================
   VIDEO POST
   ================================================================= */
.sw_video-post .sw_video-player {
    margin-bottom: 2rem;
    border-radius: var(--sw-radius);
    overflow: hidden;
    box-shadow: var(--sw-shadow-lg);
}

.sw_video-thumbnail {
    position: relative;
    cursor: pointer;
}

.sw_video-thumbnail::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    transition: var(--sw-transition);
}

.sw_video-thumbnail:hover::after {
    background: rgba(0, 0, 0, 0.5);
}

.sw_related-videos {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 2px solid var(--sw-gray-lighter);
}

/* =================================================================
   GALLERY POST
   ================================================================= */
.sw_gallery-slider {
    margin: 2rem 0;
}

.sw_gallery-grid {
    margin: 3rem 0;
}

.sw_gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--sw-radius-sm);
    cursor: pointer;
}

.sw_gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--sw-transition-slow);
}

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

/* =================================================================
   INFOGRAPHIC POST
   ================================================================= */
.sw_infographic-image {
    background: var(--sw-gray-lightest);
    padding: 2rem;
    border-radius: var(--sw-radius);
}

/* =================================================================
   CARICATURE POST
   ================================================================= */
.sw_caricature-image {
    max-width: 800px;
    margin: 0 auto;
}

.sw_related-caricatures {
    padding-top: 3rem;
    border-top: 2px solid var(--sw-gray-lighter);
}

/* =================================================================
   NEWSPAPER POST
   ================================================================= */
.sw_newspaper-pages {
    background: var(--sw-gray-lightest);
    padding: 2rem;
    border-radius: var(--sw-radius);
}

.sw_download-section {
    padding: 2rem;
    background: var(--sw-gray-lightest);
    border-radius: var(--sw-radius);
}

/* =================================================================
   SIDEBAR
   ================================================================= */
.sw_sidebar {
    position: sticky;
    top: 20px;
}

.sw_sidebar-widget {
    background: var(--sw-white);
    border-radius: var(--sw-radius);
    box-shadow: var(--sw-shadow);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.sw_sidebar-widget .card-header {
    border-bottom: none;
    padding: 1.25rem;
}

.sw_widget-title {
    font-size: 1.25rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.sw_widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(to left, var(--sw-primary), var(--sw-accent));
    border-radius: var(--sw-radius-full);
}

/* Sidebar Post Item */
.sw_sidebar-post-item {
    padding: 0.75rem;
    transition: var(--sw-transition);
}

.sw_sidebar-post-item:hover {
    background: var(--sw-gray-lightest);
}

.sw_post-thumb {
    width: 90px;
    height: 90px;
}

.sw_post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--sw-radius-sm);
}

.sw_post-info {
    padding-right: 1rem;
}


.sw_post-title a {
    color: var(--sw-dark);
    text-decoration: none;
}

.sw_post-title a:hover {
    color: var(--sw-primary);
}

.sw_post-meta {
    font-size: 0.8rem;
    color: var(--sw-gray);
    margin-top: 0.25rem;
}

/* Categories Widget */
.sw_categories-list {
    padding: 0.5rem 0;
}

.sw_category-item {
    padding: 0.75rem;
    transition: var(--sw-transition);
    border-radius: var(--sw-radius-sm);
}

.sw_category-item:hover {
    background: var(--sw-gray-lightest);
    padding-right: 1.25rem;
}

/* Tags Widget */
.sw_tags-cloud {
    padding: 0.5rem 0;
}

.sw_tags-cloud .badge {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    font-weight: 600;
    transition: var(--sw-transition);
}

.sw_tags-cloud .badge:hover {
    background: var(--sw-primary) !important;
    color: var(--sw-white) !important;
    transform: translateY(-2px);
}

/* Sidebar Tabs */
.sw_sidebar-widget .nav-tabs {
    border-bottom: 2px solid var(--sw-gray-lighter);
}

.sw_sidebar-widget .nav-tabs .nav-link {
    color: var(--sw-gray);
    font-weight: 600;
    border: none;
    padding: 1rem 1.5rem;
}

.sw_sidebar-widget .nav-tabs .nav-link.active {
    color: var(--sw-primary);
    border-bottom: 3px solid var(--sw-primary);
    background: transparent;
}

/* =================================================================
   ARCHIVE & LISTING
   ================================================================= */
.sw_archive-page,
.sw_archive-list {
    padding: 2rem 0;
}

.sw_archive-header {
    background: var(--sw-white);
    border-radius: var(--sw-radius-lg);
    box-shadow: var(--sw-shadow);
    margin-bottom: 2.5rem;
}

.sw_archive-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--sw-dark);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sw_archive-description {
    font-size: 1.125rem;
    color: var(--sw-gray);
    margin: 1rem 0;
}

.sw_archive-meta {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Posts Grid */
.sw_posts-grid {
    display: grid;
    gap: 1.5rem;
}

/* =================================================================
   POST CARDS
   ================================================================= */
.sw_post-card {
    background: var(--sw-white);
    border-radius: var(--sw-radius);
    overflow: hidden;
    transition: var(--sw-transition);
    height: 100%;
}

.sw_post-card:hover {
    box-shadow: var(--sw-shadow-lg);
}

.sw_card-image-wrapper {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.sw_card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--sw-transition-slow);
}

.sw_post-card:hover .sw_card-image-wrapper img {
    transform: scale(1.1);
}

.sw_card-title {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.5;
    color: var(--sw-dark);
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sw_card-excerpt {
    font-size: 0.95rem;
    color: var(--sw-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.sw_card-meta {
    font-size: 0.85rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--sw-gray-lighter);
}

/* Video Card */
.sw_video-card .sw_video-thumbnail {

    position: relative;
}

.sw_play-icon {
    pointer-events: none;
}

.sw_video-card:hover .sw_play-icon {
    transform: translate(-50%, -50%) scale(1.1);
}

/* Caricature Card */
.sw_caricature-card {
    transition: var(--sw-transition);
}

.sw_caricature-card:hover {
    transform: translateY(-5px);
}

/* =================================================================
   LIST ITEM
   ================================================================= */
.sw_list-item {
    background: var(--sw-white);
    border-radius: var(--sw-radius);
    overflow: hidden;
    transition: var(--sw-transition);
}

.sw_list-item:hover {
    box-shadow: var(--sw-shadow-md);
    transform: translateX(-5px);
}

.sw_list-item img {
    transition: var(--sw-transition-slow);
}

.sw_list-item:hover img {
    transform: scale(1.05);
}

.sw_list-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.sw_list-title a {
    color: var(--sw-dark);
    text-decoration: none;
}

.sw_list-title a:hover {
    color: var(--sw-primary);
}

.sw_list-excerpt {
    font-size: 1rem;
    color: var(--sw-gray);
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* =================================================================
   LOAD MORE
   ================================================================= */
.sw_load-more-container {
    margin: 3rem 0;
}

.sw_load-more-container .btn {
    min-width: 200px;
    padding: 0.875rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    border-radius: var(--sw-radius-full);
    background: linear-gradient(135deg, var(--sw-primary), var(--sw-secondary));
    border: none;
    transition: var(--sw-transition);
}

.sw_load-more-container .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.3);
}

.sw_btn-loader {
    display: none;
}

.sw_btn-loader.d-block {
    display: inline-block !important;
}

/* =================================================================
   PAGE TEMPLATE
   ================================================================= */
.sw_page-template .sw_page-hero {
    background: linear-gradient(135deg, var(--sw-primary) 0%, var(--sw-primary-dark) 100%);
    position: relative;
    overflow: hidden;
}

.sw_page-template .sw_page-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

.sw_page-content {
    font-size: 1.125rem;
    line-height: 2;
}

.sw_page-content h2 {
    font-size: 2rem;
    font-weight: 800;
    margin: 2.5rem 0 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--sw-primary);
}

/* =================================================================
   SECTION TITLES
   ================================================================= */
.sw_section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--sw-dark);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--sw-gray-lighter);
    position: relative;
}

.sw_section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 100px;
    height: 2px;
    background: var(--sw-accent);
}

/* =================================================================
   ANIMATIONS
   ================================================================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

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

.sw_animated {
    animation: fadeInUp 0.6s ease-out;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

/* =================================================================
   RESPONSIVE DESIGN
   ================================================================= */

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
    .sw_posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .sw_sidebar {
        position: sticky;
        top: 100px;
    }
}

/* Medium devices (tablets, 768px to 991px) */
@media (max-width: 991px) {
    .sw_post-title {
        font-size: 1.6rem;
    }
    
    .sw_archive-title {
        font-size: 2rem;
    }
    
    .sw_article-container {
        padding: 1.5rem;
    }
    
    .sw_sidebar {
        margin-top: 2rem;
    }
    
    .sw_posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .sw_list-item .row {
        flex-direction: column;
    }
    
    .sw_list-item img {
        height: 200px;
    }
}

/* Small devices (phones, 576px to 767px) */
@media (max-width: 767px) {
    .sw_post-title {
        font-size: 1.7rem;
    }
    
    .sw_archive-title {
        font-size: 1.75rem;
    }
    
    .sw_article-content {
        font-size: 1.1rem;
	  font-weight: 500;
    }
    
    .sw_post-meta {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start;
    }
    
    .sw_share-buttons {
        justify-content: center;
    }
    
    .sw_posts-grid {
        grid-template-columns: 1fr;
    }
    
    .sw_card-image-wrapper {
        height: 200px;
    }
    
    .sw_media-slider .carousel-item {
        height: 300px;
    }
}

/* Extra small devices (phones, less than 576px) */
@media (max-width: 575px) {
    .sw_post-title {
        font-size: 1.5rem;
    }
    
    .sw_article-container {
        padding: 1rem;
    }
    
    .sw_archive-header {
        padding: 1.5rem !important;
    }
    
    .sw_author-avatar {
        width: 40px;
        height: 40px;
    }
    
    .sw_post-thumb {
        width: 70px;
        height: 70px;
    }
    
    .sw_section-title {
        font-size: 1.5rem;
    }
}

/* =================================================================
   PRINT STYLES
   ================================================================= */
@media print {
    .sw_sidebar,
    .sw_social-share,
    .sw_post-tags,
    .sw_load-more-container,
    .sw_author-bio-link {
        display: none !important;
    }
    
    .sw_article-container {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .sw_post-title {
        color: #000;
    }
}

/* =================================================================
   DARK MODE SUPPORT (Optional)
   ================================================================= */
@media (prefers-color-scheme: dark) {
    :root {
        --sw-dark: #f3f4f6;
        --sw-gray: #9ca3af;
        --sw-bg: #1f2937;
        --sw-white: #111827;
    }
    
    body {
        background: var(--sw-bg);
        color: var(--sw-dark);
    }
    
    .sw_article-container,
    .sw_sidebar-widget,
    .sw_post-card,
    .sw_list-item {
        background: #1f2937;
        color: #f3f4f6;
    }
}

/* =================================================================
   RTL SUPPORT
   ================================================================= */
[dir="ltr"] .sw_post-meta {
    direction: ltr;
}

[dir="ltr"] .sw_category-badge {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* =================================================================
   ACCESSIBILITY
   ================================================================= */
.sw_skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--sw-primary);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.sw_skip-to-content:focus {
    top: 0;
}

/* Focus styles */
a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px solid var(--sw-primary);
    outline-offset: 2px;
}

/* Screen reader only */
.sw_sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* =================================================================
   CUSTOM SCROLLBAR
   ================================================================= */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--sw-gray-lightest);
}

::-webkit-scrollbar-thumb {
    background: var(--sw-gray);
    border-radius: var(--sw-radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--sw-primary);
}

/* =================================================================
   UTILITIES
   ================================================================= */
.sw_text-gradient {
    background: linear-gradient(135deg, var(--sw-primary), var(--sw-accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sw_glass-effect {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.sw_shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}