/**
 * Dan Don Tech - Main Stylesheet
 * Complete design system for the news & music blog.
 * Version: 1.0
 */

/* ===================================================== */
/* CSS Variables / Design Tokens */
/* ===================================================== */
:root {
    /* Primary Colors */
    --primary: #1a73e8;
    --primary-dark: #1557b0;
    --primary-light: #e8f0fe;
    --primary-rgb: 26, 115, 232;
    
    /* Secondary Colors */
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --dark: #1a1a2e;
    --darker: #0f0f1a;
    
    /* Background Colors */
    --body-bg: #ffffff;
    --card-bg: #ffffff;
    --header-bg: #ffffff;
    --footer-bg: #1a1a2e;
    --footer-text: #b0b0c0;
    --section-bg: #f8f9fa;
    
    /* Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #6c757d;
    --text-muted: #999;
    --text-light: #ffffff;
    --heading-color: #1a1a2e;
    
    /* Border */
    --border-color: #e0e0e0;
    --border-light: #f0f0f0;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-heading: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.15);
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    
    /* Container */
    --container-max: 1200px;
    
    /* Z-index */
    --z-header: 1000;
    --z-modal: 1050;
    --z-tooltip: 1070;
}

/* ===================================================== */
/* Reset & Base */
/* ===================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--body-bg);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: var(--primary-dark);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--heading-color);
    line-height: 1.3;
    margin-bottom: var(--spacing-md);
}

h1 { font-size: var(--font-size-4xl); }
h2 { font-size: var(--font-size-3xl); }
h3 { font-size: var(--font-size-2xl); }
h4 { font-size: var(--font-size-xl); }
h5 { font-size: var(--font-size-lg); }
h6 { font-size: var(--font-size-base); }

img {
    max-width: 100%;
    height: auto;
}

/* ===================================================== */
/* Header / Navigation */
/* ===================================================== */
.site-header {
    background: var(--header-bg);
    box-shadow: var(--shadow-sm);
    z-index: var(--z-header);
}

/* Top Bar */
.top-bar {
    background: var(--dark);
    color: rgba(255,255,255,0.8);
    padding: 6px 0;
    font-size: var(--font-size-xs);
}
.top-bar a {
    color: rgba(255,255,255,0.8);
}
.top-bar a:hover {
    color: #fff;
}
.top-bar .social-link {
    margin-left: 12px;
    font-size: 14px;
}
.dark-mode-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    padding: 2px 8px;
}
.dark-mode-toggle:hover {
    color: #fff;
}

/* Main Navbar */
.main-navbar {
    padding: 8px 0;
}
.navbar-brand img {
    height: 40px;
    width: auto;
}
.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 14px;
    color: var(--text-primary);
    padding: 8px 14px !important;
    transition: color var(--transition-fast);
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary);
}
.navbar-nav .nav-link i {
    margin-right: 4px;
}

/* Mega Menu */
.mega-menu-dropdown .mega-menu {
    width: 600px;
    padding: 20px;
}
.mega-menu-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.mega-menu-list li {
    margin-bottom: 8px;
}
.mega-menu-list a {
    color: var(--text-primary);
    font-size: 14px;
    padding: 6px 10px;
    display: block;
    border-radius: var(--radius-sm);
}
.mega-menu-list a:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* Search in Header */
.header-search-form {
    position: relative;
}
.header-search-form .input-group {
    width: 250px;
}
.live-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 1050;
    max-height: 400px;
    overflow-y: auto;
}
.live-search-result-item {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
}
.live-search-result-item:hover {
    background: var(--primary-light);
}
.live-search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    margin-right: 10px;
}
.live-search-result-info {
    flex: 1;
}
.live-search-result-info h6 {
    font-size: 13px;
    margin: 0;
    line-height: 1.3;
}
.live-search-result-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===================================================== */
/* Breaking News Ticker */
/* ===================================================== */
.breaking-news-ticker {
    background: #fff3cd;
    border-bottom: 1px solid #ffc107;
    overflow: hidden;
}
.ticker-wrapper {
    display: flex;
    align-items: center;
    padding: 6px 0;
}
.ticker-label {
    background: var(--danger);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
    margin-right: 12px;
}
.ticker-content {
    overflow: hidden;
    flex: 1;
}
.ticker-track {
    display: flex;
    animation: ticker-scroll 30s linear infinite;
    white-space: nowrap;
}
.ticker-item {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    padding: 0 12px;
}
.ticker-item:hover {
    color: var(--danger);
}
.ticker-separator {
    color: var(--warning);
}
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================================== */
/* Hero Slider */
/* ===================================================== */
.hero-slider-section {
    padding: 20px 0;
}
.hero-slider {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.hero-slide-image {
    height: 450px;
    object-fit: cover;
}
.carousel-caption {
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    left: 0;
    right: 0;
    bottom: 0;
    padding: 40px 30px 25px;
    text-align: left;
}
.hero-slide-title {
    font-size: 28px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}
.hero-slide-desc {
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    margin-bottom: 10px;
}
.hero-slide-meta {
    color: rgba(255,255,255,0.7);
    font-size: 12px;
}
.hero-slide-meta span {
    margin-right: 15px;
}

/* Hero Sidebar */
.hero-sidebar-posts {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    height: 450px;
    overflow-y: auto;
}
.hero-sidebar-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.hero-sidebar-post {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.hero-sidebar-post:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.hero-sidebar-link {
    display: flex;
    gap: 10px;
}
.hero-sidebar-thumb img {
    width: 80px;
    height: 60px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.hero-sidebar-info {
    flex: 1;
}
.hero-sidebar-post-title {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-sidebar-date {
    font-size: 11px;
    color: var(--text-muted);
}

/* ===================================================== */
/* Section Titles */
/* ===================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}
.section-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0;
    position: relative;
}
.section-title .title-icon {
    margin-right: 10px;
}
.section-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin-top: 6px;
    border-radius: 2px;
}

/* ===================================================== */
/* News Cards */
/* ===================================================== */
.news-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.news-card-image-wrapper {
    position: relative;
    overflow: hidden;
}
.news-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.news-card:hover .news-card-image {
    transform: scale(1.05);
}
.news-card-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: #fff;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}
.news-card-category:hover {
    background: var(--primary-dark);
    color: #fff;
}
.news-card-body {
    padding: 16px;
}
.news-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}
.news-card-title a {
    color: var(--heading-color);
}
.news-card-title a:hover {
    color: var(--primary);
}
.news-card-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}
.news-card-meta span i {
    margin-right: 4px;
}

/* Horizontal News Card */
.news-card-horizontal .news-card-horizontal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    min-height: 100px;
}
.news-card-horizontal-body {
    padding: 12px 16px;
}
.news-card-horizontal-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-horizontal-title a {
    color: var(--heading-color);
}

/* ===================================================== */
/* Trending Cards */
/* ===================================================== */
.trending-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}
.trending-card:hover {
    box-shadow: var(--shadow-lg);
}
.trending-card-image-wrapper {
    position: relative;
}
.trending-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.trending-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger);
    color: #fff;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
    font-weight: 700;
}
.trending-card-body {
    padding: 14px;
}
.category-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.trending-card-title {
    font-size: 16px;
    font-weight: 700;
    margin: 6px 0;
}
.trending-card-title a {
    color: var(--heading-color);
}
.trending-card-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

/* ===================================================== */
/* Music Cards */
/* ===================================================== */
.music-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}
.music-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}
.music-card-image-wrapper {
    position: relative;
}
.music-card-image {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}
.music-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
}
.music-card:hover .music-card-overlay {
    opacity: 1;
}
.play-btn {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: transform var(--transition-fast);
}
.play-btn:hover {
    transform: scale(1.1);
    color: #fff;
}
.music-card-body {
    padding: 12px;
}
.music-card-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 2px;
}
.music-card-title a {
    color: var(--heading-color);
}
.music-card-artist {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}
.music-genre-badge {
    font-size: 11px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}
.music-card-stats {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
    display: flex;
    gap: 10px;
}

/* ===================================================== */
/* Downloads List */
/* ===================================================== */
.downloads-list {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.download-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
    gap: 12px;
    transition: background var(--transition-fast);
}
.download-item:last-child {
    border-bottom: none;
}
.download-item:hover {
    background: var(--primary-light);
}
.download-rank {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary);
    width: 35px;
}
.download-thumb img {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.download-info {
    flex: 1;
}
.download-title {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}
.download-artist {
    font-size: 12px;
    color: var(--text-muted);
    margin: 0;
}
.download-size {
    font-size: 12px;
    color: var(--text-muted);
}
.download-count {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
}

/* ===================================================== */
/* Newsletter */
/* ===================================================== */
.newsletter-section {
    background: var(--primary);
    color: #fff;
}
.newsletter-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
}
.newsletter-section-text {
    color: rgba(255,255,255,0.85);
}
.newsletter-form-wrapper .input-group {
    max-width: 500px;
}

/* ===================================================== */
/* Single Post */
/* ===================================================== */
.single-post-header {
    margin-bottom: 20px;
}
.single-post-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 12px;
}
.single-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.single-post-featured-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
}
.single-post-featured-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}
.single-post-content {
    font-size: 17px;
    line-height: 1.9;
    color: var(--text-primary);
}
.single-post-content h2 {
    font-size: 28px;
    margin-top: 30px;
}
.single-post-content h3 {
    font-size: 22px;
    margin-top: 24px;
}
.single-post-content p {
    margin-bottom: 16px;
}
.single-post-content img {
    border-radius: var(--radius-md);
    margin: 16px 0;
    max-width: 100%;
    height: auto;
}
.single-post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 15px 20px;
    margin: 20px 0;
    background: var(--primary-light);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
}
.single-post-content pre {
    background: var(--dark);
    color: #e0e0e0;
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 14px;
}
.single-post-content code {
    background: #f4f4f4;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}
.single-post-content pre code {
    background: none;
    padding: 0;
}
.single-post-content .table {
    margin: 20px 0;
}

/* Tags */
.single-post-tags {
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
}
.tags-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.tag-link {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all var(--transition-fast);
}
.tag-link:hover {
    background: var(--primary);
    color: #fff;
}

/* ===================================================== */
/* Author Box */
/* ===================================================== */
.author-box {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.author-box-inner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.author-avatar img {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    object-fit: cover;
}
.avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-full);
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
}
.author-info {
    flex: 1;
}
.author-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}
.author-role {
    font-size: 11px;
    margin-bottom: 8px;
}
.author-bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}
.author-meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* ===================================================== */
/* Social Share */
/* ===================================================== */
.social-share {
    display: flex;
    align-items: center;
    gap: 8px;
}
.share-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 4px;
}
.share-buttons {
    display: flex;
    gap: 6px;
}
.share-btn {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 15px;
    transition: all var(--transition-fast);
}
.share-btn:hover {
    transform: scale(1.1);
    color: #fff;
}
.share-facebook { background: #1877f2; }
.share-twitter { background: #000; }
.share-linkedin { background: #0a66c2; }
.share-whatsapp { background: #25d366; }
.share-telegram { background: #26a5e4; }
.share-reddit { background: #ff4500; }
.share-pinterest { background: #e60023; }
.share-email { background: #666; }
.share-copy { background: #6c757d; }

/* ===================================================== */
/* Comments */
/* ===================================================== */
.comments-section {
    margin-top: 30px;
}
.comments-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
}
.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
}
.comment-replies {
    margin-left: 50px;
}
.comment-avatar .avatar-placeholder {
    width: 44px;
    height: 44px;
    font-size: 18px;
}
.comment-body {
    flex: 1;
}
.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}
.comment-author {
    font-size: 15px;
    font-weight: 600;
    margin: 0;
}
.comment-date {
    font-size: 12px;
    color: var(--text-muted);
}
.comment-content {
    font-size: 14px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.comment-footer .reply-btn {
    font-size: 12px;
    padding: 2px 8px;
    color: var(--primary);
}
.comment-form-wrapper {
    margin-top: 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}

/* ===================================================== */
/* Related Posts */
/* ===================================================== */
.related-posts-section {
    margin-top: 30px;
}
.related-post-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-base);
}
.related-post-card:hover {
    box-shadow: var(--shadow-md);
}
.related-post-image-link {
    position: relative;
    display: block;
}
.related-post-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.related-post-category {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary);
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 11px;
}
.related-post-content {
    padding: 12px;
}
.related-post-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
}
.related-post-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 10px;
}

/* ===================================================== */
/* Sidebar */
/* ===================================================== */
.sidebar-widget {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 16px;
    margin-bottom: 20px;
}
.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}
.popular-post-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}
.popular-post-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.popular-post-rank {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    min-width: 35px;
    line-height: 1;
}
.popular-post-title {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
}
.popular-post-meta {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    gap: 8px;
}

/* Categories Widget */
.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.category-item {
    border-bottom: 1px solid var(--border-light);
}
.category-item:last-child {
    border-bottom: none;
}
.category-link {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-primary);
}
.category-count {
    background: var(--primary-light);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tag-cloud-link {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 16px;
    transition: all var(--transition-fast);
}
.tag-cloud-link:hover {
    background: var(--primary);
    color: #fff;
}

/* Social Links Grid */
.social-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.social-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px;
    border-radius: var(--radius-md);
    background: #f8f9fa;
    color: var(--text-primary);
    font-size: 13px;
    gap: 4px;
    transition: all var(--transition-fast);
}
.social-link-card:hover {
    color: #fff;
}
.social-link-card.social-facebook:hover { background: #1877f2; }
.social-link-card.social-twitter:hover { background: #000; }
.social-link-card.social-instagram:hover { background: #e4405f; }
.social-link-card.social-youtube:hover { background: #ff0000; }

/* ===================================================== */
/* Music Player Section */
/* ===================================================== */
.music-player-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.music-cover-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}
.music-title {
    font-size: 28px;
    font-weight: 800;
}
.music-artist {
    font-size: 20px;
    font-weight: 500;
    color: var(--text-secondary);
}
.music-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
}
.music-detail-item {
    font-size: 13px;
}
.audio-player-wrapper {
    background: #f8f9fa;
    border-radius: var(--radius-md);
    padding: 10px;
}
.audio-player {
    width: 100%;
}
.download-btn {
    font-size: 16px;
    font-weight: 600;
}
.download-size {
    font-size: 12px;
    opacity: 0.8;
}
.music-stats {
    display: flex;
    gap: 16px;
}
.stat-item {
    font-size: 14px;
    color: var(--text-secondary);
}
.lyrics-section {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
}
.lyrics-content {
    font-size: 14px;
    line-height: 2;
    white-space: pre-line;
}

/* ===================================================== */
/* Search Page */
/* ===================================================== */
.search-result-item {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    transition: box-shadow var(--transition-fast);
}
.search-result-item:hover {
    box-shadow: var(--shadow-sm);
}
.search-result-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}
.search-result-title {
    font-size: 18px;
    font-weight: 700;
}
.search-result-excerpt {
    font-size: 14px;
    color: var(--text-secondary);
}
.search-result-meta {
    font-size: 12px;
    color: var(--text-muted);
    display: flex;
    gap: 12px;
}

/* Search Filters */
.filter-group {
    margin-bottom: 12px;
}
.filter-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
    color: var(--text-secondary);
}
.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.filter-option {
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    font-size: 12px;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}
.filter-option:hover,
.filter-option.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===================================================== */
/* Error Pages */
/* ===================================================== */
.error-page {
    padding: 60px 0;
}
.error-code {
    font-size: 120px;
    font-weight: 900;
    color: var(--primary);
    line-height: 1;
    opacity: 0.3;
}
.error-title {
    font-size: 36px;
    font-weight: 800;
    margin: 10px 0;
}
.error-description {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 500px;
    margin: 0 auto 20px;
}

/* ===================================================== */
/* Breadcrumb */
/* ===================================================== */
.breadcrumb-nav .breadcrumb {
    background: transparent;
    padding: 8px 0;
    font-size: 13px;
}
.breadcrumb-item a {
    color: var(--primary);
}
.breadcrumb-item.active {
    color: var(--text-muted);
}

/* ===================================================== */
/* Contact Page */
/* ===================================================== */
.contact-info-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
}
.contact-info-item {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
}
.contact-info-icon {
    width: 44px;
    height: 44px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.contact-info-content h5 {
    font-size: 15px;
    margin-bottom: 2px;
}
.contact-info-content p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}
.contact-social-links {
    display: flex;
    gap: 10px;
}
.contact-social-link {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    background: #f0f0f0;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}
.contact-social-link:hover {
    background: var(--primary);
    color: #fff;
}

/* ===================================================== */
/* Footer */
/* ===================================================== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    margin-top: 40px;
}
.footer-main {
    padding: 50px 0 30px;
}
.footer-widget-title {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 12px;
}
.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}
.footer-about p {
    font-size: 14px;
    line-height: 1.7;
}
.footer-logo {
    filter: brightness(0) invert(1);
}
.footer-social {
    display: flex;
    gap: 8px;
}
.footer-social-link {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.1);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: all var(--transition-fast);
}
.footer-social-link:hover {
    background: var(--primary);
    color: #fff;
}
.footer-posts-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-post-item {
    margin-bottom: 12px;
}
.footer-post-link {
    display: flex;
    gap: 10px;
    color: var(--footer-text);
}
.footer-post-link:hover {
    color: #fff;
}
.footer-post-thumb img {
    width: 65px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}
.footer-post-title {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 4px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--footer-text);
}
.footer-post-link:hover .footer-post-title {
    color: #fff;
}
.footer-post-date {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links-list li {
    margin-bottom: 8px;
}
.footer-links-list a {
    color: var(--footer-text);
    font-size: 14px;
    transition: all var(--transition-fast);
}
.footer-links-list a:hover {
    color: #fff;
    padding-left: 4px;
}
.footer-links-list i {
    font-size: 10px;
    margin-right: 6px;
}
.footer-categories-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.footer-category-tag {
    padding: 5px 14px;
    background: rgba(255,255,255,0.08);
    color: var(--footer-text);
    border-radius: 20px;
    font-size: 13px;
    transition: all var(--transition-fast);
}
.footer-category-tag:hover {
    background: var(--primary);
    color: #fff;
}
.footer-bottom {
    background: rgba(0,0,0,0.2);
    padding: 16px 0;
    font-size: 13px;
}
.footer-bottom a {
    color: var(--footer-text);
}
.footer-bottom a:hover {
    color: #fff;
}

/* ===================================================== */
/* Scroll to Top */
/* ===================================================== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-full);
    font-size: 18px;
    cursor: pointer;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
}
.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.scroll-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===================================================== */
/* Advertisement */
/* ===================================================== */
.advertisement-wrapper {
    text-align: center;
    overflow: hidden;
}
.ad-label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.in-article-ad {
    margin: 20px 0;
    padding: 16px;
    background: var(--primary-light);
    border-radius: var(--radius-md);
}

/* ===================================================== */
/* Page Content */
/* ===================================================== */
.page-content {
    max-width: 800px;
}
.page-content h2 {
    margin-top: 30px;
}
.page-content h3 {
    margin-top: 24px;
}
.page-content ul, .page-content ol {
    margin-bottom: 16px;
    padding-left: 20px;
}
.page-content li {
    margin-bottom: 6px;
}

/* ===================================================== */
/* Utility Classes */
/* ===================================================== */
.text-primary { color: var(--primary) !important; }
.bg-primary { background: var(--primary) !important; }
.bg-light { background: var(--section-bg) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.shadow-hover:hover { box-shadow: var(--shadow-lg) !important; }
.transition { transition: all var(--transition-base) !important; }
.object-cover { object-fit: cover; }
.fw-800 { font-weight: 800; }
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===================================================== */
/* Animations */
/* ===================================================== */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.animate-fade-in {
    animation: fadeIn 0.6s ease forwards;
}
.animate-slide-left {
    animation: slideInLeft 0.6s ease forwards;
}
.animate-slide-right {
    animation: slideInRight 0.6s ease forwards;
}

/* Staggered animation for cards */
.stagger-animate > * {
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}
.stagger-animate > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-animate > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-animate > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-animate > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-animate > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-animate > *:nth-child(6) { animation-delay: 0.3s; }