/* Reset và Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a1a;
    --secondary-color: #2a2a2a;
    --accent-color: #00d4aa;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --border-color: #333333;
    --background-color: #0f0f0f;
    --card-background: #1a1a1a;
    --hover-color: #2a2a2a;
    --success-color: #00d4aa;
    --danger-color: #ff4757;
    --warning-color: #ffa502;
}

[data-theme="light"] {
    --primary-color: #ffffff;
    --secondary-color: #f8f9fa;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #999999;
    --border-color: #e0e0e0;
    --background-color: #ffffff;
    --card-background: #f8f9fa;
    --hover-color: #f0f0f0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--background-color);
    color: var(--text-primary);
    line-height: 1.6;
    transition: all 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent-color);
}

.logo a {
    text-decoration: none;
    color: inherit;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
}

.main-nav a:hover::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.user-avatar:hover {
    transform: scale(1.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-info {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.user-email {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.user-actions a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-actions a:hover {
    background: var(--background);
    color: var(--accent-color);
}

.auth-buttons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-login,
.btn-register {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-login {
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-login:hover {
    background: var(--background);
}

.btn-register {
    background: var(--accent-color);
    color: var(--primary-color);
}

.btn-register:hover {
    background: #e6850e;
    transform: translateY(-2px);
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    color: var(--text-primary);
    width: 250px;
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
}

.search-box i {
    position: absolute;
    left: 1rem;
    color: var(--text-muted);
}

.theme-toggle {
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--hover-color);
    color: var(--accent-color);
}

/* Live Prices Bar */
.live-prices-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.prices-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    white-space: nowrap;
}

.prices-label {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.prices-label i {
    animation: pulse 2s infinite;
}

.last-updated {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 400;
    margin-left: 0.5rem;
}

.prices-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
}

.prices-scroll::-webkit-scrollbar {
    display: none;
}

.price-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    flex-shrink: 0;
    min-width: 200px;
    animation: slideIn 0.5s ease-out;
}

.price-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.price-item.loading {
    animation: pulse 1.5s infinite;
}

.price-item.error {
    background: rgba(239, 68, 68, 0.2);
    border-color: rgba(239, 68, 68, 0.3);
}

.symbol {
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 60px;
}

.price {
    font-weight: 700;
    font-size: 1rem;
    min-width: 80px;
    transition: color 0.3s ease;
}

.price.updating {
    color: #22c55e;
    animation: priceUpdate 0.5s ease-in-out;
}

.price.downdating {
    color: #ef4444;
    animation: priceUpdate 0.5s ease-in-out;
}

.change {
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    min-width: 60px;
    text-align: center;
    transition: all 0.3s ease;
}

.change.positive {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.change.negative {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Live Prices Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes priceUpdate {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Live Prices */
@media (max-width: 768px) {
    .prices-container {
        gap: 1rem;
    }
    
    .prices-label {
        font-size: 0.75rem;
    }
    
    .last-updated {
        display: none;
    }
    
    .price-item {
        min-width: 160px;
        padding: 0.4rem 0.8rem;
    }
    
    .symbol {
        font-size: 0.75rem;
        min-width: 50px;
    }
    
    .price {
        font-size: 0.875rem;
        min-width: 70px;
    }
    
    .change {
        font-size: 0.75rem;
        min-width: 50px;
    }
}

/* Banner Ads */
.banner-ads-top {
    background-color: var(--background-color);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.banner-ad {
    background: linear-gradient(135deg, var(--card-background), var(--secondary-color));
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
}

.banner-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.banner-ad::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #00b894);
}

.ad-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.ad-logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.75rem;
}

.banner-ad h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.banner-ad h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.banner-ad p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ad-button {
    background: linear-gradient(135deg, var(--accent-color), #00b894);
    color: var(--primary-color);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
}

.ad-button.large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.ad-button:hover {
    background: linear-gradient(135deg, #00b894, var(--accent-color));
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.3);
}

.ad-label {
    position: absolute;
    bottom: 0.5rem;
    right: 0.5rem;
    font-size: 0.7rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Between Posts Banner */
.banner-ad.between-posts {
    margin: 2rem 0;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid var(--accent-color);
}

.banner-ad.between-posts .ad-logo {
    color: var(--accent-color);
}

/* Bottom Banner */
.banner-ads-bottom {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    padding: 2rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.banner-ad.full-width {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 2px solid var(--accent-color);
    padding: 2rem;
}

.banner-ad.full-width .ad-logo {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.banner-ad.full-width h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.banner-ad.full-width p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.prices-container {
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
}

.prices-label {
    font-weight: 600;
    color: var(--accent-color);
    font-size: 0.9rem;
    white-space: nowrap;
}

.price-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.price-item .symbol {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.price-item .price {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.price-item .change {
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
}

/* Main Content */
.main-content {
    padding: 2rem 0;
}

/* Three Column Layout */
.three-column-layout {
    display: grid;
    grid-template-columns: 300px 1fr 280px;
    gap: 2rem;
    align-items: start;
}

/* Left Sidebar */
.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
}

.sidebar-section h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.news-item {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.news-item h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.news-item h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-item h4 a:hover {
    color: var(--accent-color);
}

.news-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.see-more {
    color: var(--accent-color);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.see-more:hover {
    color: #00b894;
}

/* Press Release */
.press-release h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.press-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Crypto IQ */
.crypto-iq {
    background: linear-gradient(135deg, var(--accent-color), #00b894);
    color: var(--primary-color);
    border: none;
}

.crypto-iq h3 {
    color: var(--primary-color);
}

.leaderboard {
    margin-bottom: 1rem;
}

.leaderboard-header {
    display: grid;
    grid-template-columns: 40px 1fr 80px 40px;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.leaderboard-item {
    display: grid;
    grid-template-columns: 40px 1fr 80px 40px;
    gap: 0.5rem;
    font-size: 0.8rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.rank {
    font-weight: 600;
}

.user {
    font-weight: 500;
}

.score {
    font-size: 0.7rem;
    opacity: 0.9;
}

.time {
    font-size: 0.7rem;
    opacity: 0.9;
}

.iq-text {
    font-size: 0.8rem;
    margin: 1rem 0;
    opacity: 0.9;
}

.iq-button {
    width: 100%;
    background-color: var(--primary-color);
    color: var(--accent-color);
    border: none;
    padding: 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.iq-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

/* Main Content Area */
.main-content-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.featured-article {
    margin-bottom: 2rem;
}

/* Latest News Section */
.latest-news-section {
    margin-bottom: 2rem;
}

.latest-news-section h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.latest-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.latest-news-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--card-background);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.latest-news-item:hover {
    background: var(--hover-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.latest-news-thumbnail {
    flex-shrink: 0;
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
}

.latest-news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.latest-news-content h3 {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.latest-news-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.latest-news-content h3 a:hover {
    color: var(--accent-color);
}

.latest-news-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.latest-news-meta .date {
    color: var(--text-muted);
}

.latest-news-meta .category {
    color: var(--accent-color);
    font-weight: 500;
}

.latest-news-footer {
    text-align: center;
    margin-top: 1rem;
}

.latest-news-footer .see-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.3s ease;
}

.latest-news-footer .see-more:hover {
    color: var(--text-primary);
}

.featured-image {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-article h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.featured-article h1 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-article h1 a:hover {
    color: var(--accent-color);
}

.featured-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.list-article {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.list-article:last-child {
    border-bottom: none;
}

.article-thumbnail {
    width: 120px;
    height: 80px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.article-info h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-info h3 a:hover {
    color: var(--accent-color);
}

.article-meta {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sponsored {
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    border: 1px solid var(--accent-color);
}

.sponsored-banner {
    text-align: center;
    padding: 1rem;
}

.sponsored-logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.sponsored-rating {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sponsored-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.sponsored-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.sponsored-label {
    font-size: 0.7rem;
    color: var(--accent-color);
    font-weight: 600;
    text-transform: uppercase;
}

.research-unlocked {
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1rem;
}

.research-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.research-item {
    display: flex;
    gap: 0.75rem;
}

.research-image {
    width: 60px;
    height: 40px;
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.research-item h4 {
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-primary);
}

.access-section {
    background-color: var(--secondary-color);
}

.access-section h3 {
    color: var(--accent-color);
}

.access-section p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.access-article h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    margin-bottom: 3rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    height: 500px;
}

.hero-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--card-background);
}

.hero-article {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-image {
    position: relative;
    height: 60%;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-article:hover .article-image img {
    transform: scale(1.05);
}

.article-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.article-content {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.article-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-content h1 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-content h1 a:hover {
    color: var(--accent-color);
}

.article-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    flex: 1;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.author {
    font-weight: 500;
}

/* Hero Sidebar */
.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-article {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    height: 150px;
    transition: transform 0.3s ease;
}

.sidebar-article:hover {
    transform: translateY(-2px);
}

.sidebar-article .article-image {
    width: 40%;
    height: 100%;
}

.sidebar-article .article-content {
    width: 60%;
    padding: 1rem;
    justify-content: space-between;
}

.sidebar-article h3 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.sidebar-article h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.sidebar-article h3 a:hover {
    color: var(--accent-color);
}

/* Latest News Section */
.latest-news {
    margin-bottom: 3rem;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.view-all {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.view-all:hover {
    gap: 0.75rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.news-card {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-image img {
    transform: scale(1.05);
}

.card-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.card-content {
    padding: 1.5rem;
}

.card-content h3 {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.card-content h3 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-content h3 a:hover {
    color: var(--accent-color);
}

.card-content p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Market Data Section */
.market-data {
    margin-bottom: 3rem;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.market-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.market-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.crypto-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.crypto-info img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.crypto-details h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.symbol {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
}

.price-info {
    text-align: right;
}

.price {
    font-size: 1.2rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
}

.change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.change.positive {
    color: var(--success-color);
    background-color: rgba(0, 212, 170, 0.1);
}

.change.negative {
    color: var(--danger-color);
    background-color: rgba(255, 71, 87, 0.1);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.footer-section p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.newsletter-form input {
    flex: 1;
    background-color: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.75rem;
    color: var(--text-primary);
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--accent-color);
}

.newsletter-form button {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.newsletter-form button:hover {
    background-color: #00b894;
    transform: translateY(-1px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Banner System Styles */
.banner-item {
    margin-bottom: 1rem;
}

.banner-link {
    display: block;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.banner-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Banner Grid Styles */
.banner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.banner-grid .banner-item {
    margin-bottom: 0;
}

/* Single Banner Styles */
.banner-ads-top .banner-item,
.banner-ads-bottom .banner-item,
.between-posts .banner-item {
    width: 100%;
}

/* Sidebar Banner Styles */
.sidebar-section .banner-item {
    margin-bottom: 1.5rem;
}

.sidebar-section .banner-link {
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    background: #fff;
    overflow: hidden;
}

.sidebar-section .banner-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.sidebar-section .banner-image {
    border-radius: 12px 12px 0 0;
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive Banner Styles */
@media (max-width: 768px) {
    .sidebar-section .banner-item {
        margin-bottom: 1rem;
    }
    
    .sidebar-section .banner-image {
        max-height: 200px;
    }
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .banner-item {
        margin-bottom: 0.5rem;
    }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .three-column-layout {
        grid-template-columns: 250px 1fr 250px;
        gap: 1.5rem;
    }
}

@media (max-width: 992px) {
    .three-column-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .left-sidebar,
    .right-sidebar {
        order: 2;
    }
    
    .main-content-area {
        order: 1;
    }
    
    .latest-news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .latest-news-item {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .latest-news-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .all-news-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .all-news-sidebar {
        order: 2;
    }
    
    .all-news-content {
        order: 1;
    }
    
    .left-sidebar,
    .right-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .search-box input {
        width: 200px;
    }
    
    .prices-container {
        gap: 1rem;
    }
    
    .price-item {
        font-size: 0.8rem;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .banner-ad {
        padding: 1rem;
    }
    
    .banner-ad h2 {
        font-size: 1.2rem;
    }
    
    .banner-ad h3 {
        font-size: 1rem;
    }
    
    .banner-ad.full-width {
        padding: 1.5rem;
    }
    
    .banner-ad.full-width .ad-logo {
        font-size: 1.5rem;
    }
    
    .banner-ad.full-width h2 {
        font-size: 1.5rem;
    }
    
    .left-sidebar,
    .right-sidebar {
        grid-template-columns: 1fr;
    }
    
    .featured-article h1 {
        font-size: 1.5rem;
    }
    
    .featured-image {
        height: 200px;
    }
    
    .list-article {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .article-thumbnail {
        width: 100%;
        height: 150px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .search-box input {
        width: 150px;
    }
    
    .article-content h1 {
        font-size: 1.4rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .market-card {
        padding: 1rem;
    }
    
    .pagination {
        gap: 0.25rem;
    }
    
    .pagination-btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .pagination-number {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--accent-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles */
a:focus,
button:focus,
input:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

/* Selection Styles */
::selection {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Article Layout */
.article-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.article-content {
    background-color: var(--card-background);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.article-header {
    padding: 2rem 2rem 1rem;
}

.article-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 1rem 0;
    color: var(--text-primary);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

.article-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.article-body {
    padding: 2rem;
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body h2,
.article-body h3,
.article-body h4 {
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
}

.article-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
}

.share-buttons h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.share-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background-color: #1877f2;
    color: white;
}

.share-btn.twitter {
    background-color: #1da1f2;
    color: white;
}

.share-btn.telegram {
    background-color: #0088cc;
    color: white;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Article Sidebar */
.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-section {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
}

.sidebar-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-color);
}

.related-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-article {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.related-article:hover {
    background-color: var(--hover-color);
    transform: translateX(5px);
}

.related-image {
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    flex-shrink: 0;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.related-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-content h4 a:hover {
    color: var(--accent-color);
}

.related-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-article {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background-color: var(--secondary-color);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.popular-article:hover {
    background-color: var(--hover-color);
}

.popular-number {
    width: 30px;
    height: 30px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.popular-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.popular-content h4 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.popular-content h4 a:hover {
    color: var(--accent-color);
}

.popular-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Category Layout */
.category-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.category-header {
    margin-bottom: 2rem;
    text-align: center;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.category-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.articles-grid {
    display: grid;
    gap: 2rem;
}

.article-card {
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.article-card .card-image {
    height: 250px;
}

.article-card .card-content {
    padding: 1.5rem;
}

.article-card .card-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.article-card .card-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-card .card-content h2 a:hover {
    color: var(--accent-color);
}

.article-card .card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 1rem;
}

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-btn:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination-number:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.pagination-number.current {
    background-color: var(--accent-color);
    color: var(--primary-color);
    border-color: var(--accent-color);
}

.pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: var(--text-muted);
    font-weight: 500;
}

/* All News Layout */
.all-news-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 3rem;
    margin-top: 2rem;
}

.all-news-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.page-header {
    text-align: center;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.page-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.news-list-full {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.news-item-full {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.news-item-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-thumbnail {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.news-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-category {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.news-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.news-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.news-content h2 a:hover {
    color: var(--accent-color);
}

.news-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.news-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.all-news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* No Articles */
.no-articles {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.no-articles i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-articles h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.no-articles p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #00b894;
    transform: translateY(-2px);
}

/* Category Sidebar */
.category-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.category-list a:hover,
.category-list a.active {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: var(--accent-color);
    color: var(--primary-color);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

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

.back-to-top:hover {
    background-color: #00b894;
    transform: translateY(-2px);
}

/* Reading Progress */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background-color: var(--accent-color);
    z-index: 1001;
    transition: width 0.1s ease;
}

/* Notifications */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1002;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-message {
    color: var(--text-primary);
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background-color: var(--hover-color);
    color: var(--text-primary);
}

.notification-success {
    border-left: 4px solid var(--success-color);
}

.notification-error {
    border-left: 4px solid var(--danger-color);
}

.notification-info {
    border-left: 4px solid var(--accent-color);
}

/* Mobile Responsive for Article Layout */
@media (max-width: 768px) {
    .article-layout,
    .category-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .article-header h1 {
        font-size: 2rem;
    }
    
    .article-body {
        padding: 1.5rem;
        font-size: 1rem;
    }
    
    .share-links {
        flex-direction: column;
    }
    
    .share-btn {
        justify-content: center;
    }
    
    .related-article {
        flex-direction: column;
        text-align: center;
    }
    
    .related-image {
        width: 100%;
        height: 150px;
    }
    
    .popular-article {
        flex-direction: column;
        text-align: center;
    }
    
    .category-header h1 {
        font-size: 2rem;
    }
    
    .article-card .card-image {
        height: 200px;
    }
    
    .pagination {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    .notification {
        top: 1rem;
        right: 1rem;
        left: 1rem;
        max-width: none;
    }
}

/* Search Layout */
.search-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.search-header {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.search-header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.search-info {
    color: var(--text-secondary);
    font-size: 1rem;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-result {
    display: flex;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--card-background);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.search-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.result-image {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.result-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.result-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-category {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.result-content h2 {
    font-size: 1.3rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.result-content h2 a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.result-content h2 a:hover {
    color: var(--accent-color);
}

.result-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.no-results,
.search-placeholder {
    text-align: center;
    padding: 4rem 2rem;
    background-color: var(--card-background);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.no-results i,
.search-placeholder i {
    font-size: 4rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.no-results h3,
.search-placeholder h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.no-results p,
.search-placeholder p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.search-suggestions {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.search-suggestions h4 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.search-suggestions ul {
    list-style: none;
    padding: 0;
}

.search-suggestions li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.search-suggestions li:last-child {
    border-bottom: none;
}

/* Search Sidebar */
.search-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.search-tips {
    list-style: none;
}

.search-tips li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.search-tips li:last-child {
    border-bottom: none;
}

.search-tips i {
    color: var(--accent-color);
    width: 16px;
}

.popular-searches {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.search-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
}

/* Mobile Responsive for Search */
@media (max-width: 768px) {
    .search-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .search-header h1 {
        font-size: 1.5rem;
    }
    
    .search-result {
        flex-direction: column;
    }
    
    .result-image {
        width: 100%;
        height: 200px;
    }
    
    .popular-searches {
        justify-content: center;
    }
}
