/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #1a1a1a;
    color: #ffffff;
    line-height: 1.4;
    overflow-x: hidden;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Header Styles */
.header {
    background-color: #2d2d2d;
    padding: 15px 0;
    border-bottom: 1px solid #404040;
}

.header-top {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo {
    width: 200px;
    height: 40px;
    background-color: #e4c61c;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    font-size: 24px;
    font-weight: bold;
    color: #f7f7f7;
}

.search-container {
    flex: 1;
    max-width: 600px;
    position: relative;
    display: flex;
    align-items: center;
    background-color: #404040;
    border-radius: 25px;
    padding: 8px 15px;
}

.search-input {
    flex: 1;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 16px;
    outline: none;
}

.search-input::placeholder {
    color: #888888;
}

.search-icons {
    display: flex;
    gap: 10px;
}

.keyboard-btn,
.search-btn {
    background: none;
    border: none;
    color: #888888;
    font-size: 16px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.keyboard-btn:hover,
.search-btn:hover {
    background-color: #555555;
}

/* Navigation Tabs */
.nav-tabs {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    overflow-x: auto;
    padding: 5px 0;
}

.nav-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #888888;
    font-size: 12px;
    transition: color 0.2s;
    padding: 10px 8px;
    border-radius: 8px;
    position: relative;
    min-width: 50px;
    flex-shrink: 0;
}

.nav-tab:hover,
.nav-tab.active {
    color: #ffffff;
    background-color: rgba(74, 158, 255, 0.1);
}

.nav-tab.active {
    border-bottom: 2px solid #4a9eff;
}

.nav-icon {
    font-size: 18px;
}

.nav-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.notification-badge {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #ff4444;
    color: #ffffff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 5px;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
    line-height: 1;
}

.nav-tab.more {
    font-size: 14px;
    gap: 2px;
}

/* Main Content Grid */
.main-content {
    padding: 20px 0;
    width: 100%;
    overflow-x: hidden;
}

.content-grid {
    display: grid;
    grid-template-columns: 70px 1fr 300px;
    gap: 20px;
    align-items: start;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

/* Left Sidebar */
.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Quick Links Section */
.quick-links-section {
    background-color: white;
    border-radius: 16px;
    border: 1px solid #404040;
    overflow: hidden;
}

.section-header {
    padding: 16px 20px;
    border-bottom: 1px solid #404040;
    background: linear-gradient(145deg, #333333, #2a2a2a);
}

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h3:before {
    font-size: 14px;
}

.cad-banner {
    background-color: #2d2d2d;
    border-radius: 10px;
    padding: 15px;
    position: relative;
    border: 1px solid #404040;
}

.cad-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cad-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
}

.cad-text h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 5px;
}

.cad-text p {
    font-size: 12px;
    color: #888888;
    line-height: 1.3;
}

.cad-arrow {
    background: none;
    border: none;
    color: #4a9eff;
    font-size: 20px;
    cursor: pointer;
    margin-left: auto;
}

.ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #666666;
    color: #ffffff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 3px;
}

/* Center Content Styles */
.center-content {
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #2d2d2d 0%, #383838 100%);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #404040;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.hero-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(45deg, #ff6b35, #f7931e);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.hero-title h2 {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
}

.hero-badge {
    background: linear-gradient(45deg, #ff4444, #ff6b6b);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.hero-more-btn {
    color: #4a9eff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.hero-more-btn:hover {
    background-color: rgba(74, 158, 255, 0.1);
    border-color: #4a9eff;
    transform: translateX(2px);
}

/* Featured Cards Grid */
.featured-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.featured-card {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(74, 158, 255, 0.3);
    border-color: #4a9eff;
}

.featured-card .rank-badge {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    z-index: 2;
}

.featured-card .rank-badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.featured-card .rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.featured-card .rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #b8751f 100%);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.featured-card .rank-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.featured-card .card-content {
    position: relative;
    z-index: 1;
}

.featured-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
    margin-top: 25px;
}

.featured-card .site-name {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.featured-card .site-name a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-card .site-name a:hover {
    color: #4a9eff;
}

.featured-card .card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.featured-card .tag {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.featured-card .tag.popular {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
}

.featured-card .tag.verified {
    background: linear-gradient(135deg, #51cf66 0%, #40c057 100%);
    color: white;
}

.featured-card .tag.trending {
    background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%);
    color: #333;
}

.featured-card .tag.recommended {
    background: linear-gradient(135deg, #4c6ef5 0%, #364fc7 100%);
    color: white;
}

.featured-card .tag.new {
    background: linear-gradient(135deg, #ff8cc8 0%, #ff6b9d 100%);
    color: white;
}

.featured-card .tag.active {
    background: linear-gradient(135deg, #20c997 0%, #12b886 100%);
    color: white;
}

.featured-card .site-description {
    color: #b0b3b8;
    font-size: 14px;
    margin: 10px 0 15px 0;
    line-height: 1.4;
}

.featured-card .card-stats {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.featured-card .stat {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #8b949e;
    transition: color 0.3s ease;
}

.featured-card .stat i {
    font-size: 11px;
}

.featured-card .stat.online {
    color: #51cf66;
}

.featured-card .stat:hover {
    color: #4a9eff;
}

/* Responsive Design for Featured Grid */
@media (max-width: 1024px) {
    
    .featured-card {
        padding: 16px;
    }
}

@media (max-width: 768px) {
    
    .featured-card {
        padding: 14px;
    }
    
    .featured-card .site-name {
        font-size: 16px;
    }
    
    .featured-card .rank-badge {
        width: 30px;
        height: 30px;
        top: 12px;
        right: 12px;
    }
}


.featured-card {
    background: linear-gradient(145deg, #2d2d2d, #1a1a1a);
    border-radius: 16px;
    padding: 24px;
    min-width: 320px;
    flex-shrink: 0;
    border: 1px solid #404040;
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    margin: 5px;
}

.featured-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 40px rgba(74, 158, 255, 0.3);
    border-color: #4a9eff;
    background: linear-gradient(145deg, #3a3a3a, #2d2d2d);
}

.featured-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #4a9eff, #64b5f6, #4a9eff);
    border-radius: 16px 16px 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.featured-card:hover::before {
    opacity: 1;
}

.rank-badge {
    position: absolute;
    top: -10px;
    left: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    font-size: 14px;
}

.rank-badge.gold {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
}

.rank-badge.silver {
    background: linear-gradient(45deg, #c0c0c0, #e8e8e8);
    box-shadow: 0 4px 15px rgba(192, 192, 192, 0.4);
}

.rank-badge.bronze {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    box-shadow: 0 4px 15px rgba(205, 127, 50, 0.4);
}

.rank-badge img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.card-content {
    margin-top: 15px;
}

.card-header {
    margin-bottom: 12px;
}

.site-name {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
}

.site-name a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-name a:hover {
    color: #4a9eff;
}

.card-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.tag.popular {
    background: linear-gradient(45deg, #ff4444, #ff6b6b);
    color: white;
}

.tag.verified {
    background: linear-gradient(45deg, #4caf50, #66bb6a);
    color: white;
}

.tag.trending {
    background: linear-gradient(45deg, #ff9800, #ffc107);
    color: white;
}

.tag.recommended {
    background: linear-gradient(45deg, #9c27b0, #ba68c8);
    color: white;
}

.tag.new {
    background: linear-gradient(45deg, #2196f3, #64b5f6);
    color: white;
}

.site-description {
    color: #cccccc;
    font-size: 13px;
    margin: 8px 0 12px 0;
    line-height: 1.4;
}

.card-stats {
    display: flex;
    gap: 15px;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #888888;
}

.stat i {
    font-size: 11px;
}

.stat.online {
    color: #4caf50;
    font-weight: 500;
}

.stat.online i {
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

/* Categories Container */
.categories-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
    min-width: 0;
}

/* Category Section */
.category-section {
    background: linear-gradient(145deg, #2d2d2d, #262626);
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #404040;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #404040;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.category-title h3 {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.category-count {
    background-color: #404040;
    color: #cccccc;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.category-more {
    color: #4a9eff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.category-more:hover {
    background-color: rgba(74, 158, 255, 0.1);
    transform: translateX(2px);
}

/* Sites Grid */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
    width: 100%;
}

.site-card {
    background: linear-gradient(145deg, #333333, #2a2a2a);
    border-radius: 10px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
}

.site-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: #4a9eff;
}

.site-rank {
    flex-shrink: 0;
}

.rank-img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.site-info {
    flex: 1;
    min-width: 0;
}

.site-link {
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
    transition: color 0.3s ease;
}

.site-link:hover {
    color: #4a9eff;
}

.site-link.premium {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.site-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.site-status {
    font-size: 8px;
}

.site-status.online {
    color: #4caf50;
    animation: blink 2s infinite;
}

.site-visitors {
    color: #888888;
}

.site-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.bookmark-site,
.share-site {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background-color: #404040;
    border: none;
    color: #888888;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 12px;
}

.bookmark-site:hover {
    background-color: #ffd700;
    color: #000000;
    transform: scale(1.1);
}

.share-site:hover {
    background-color: #4a9eff;
    color: #ffffff;
    transform: scale(1.1);
}
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.5rem;
    height: 3.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    z-index: 1000;
    font-size: 1.1rem;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    animation: bounceIn 0.5s ease-out;
}

.back-to-top:hover {
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-xl);
}
/* Quick Links */
.quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    background: linear-gradient(145deg, #2d2d2d, #262626);
    border-radius: 16px;
    border: 1px solid #404040;
    width: 100%;
}

.quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;    
    background-color: rgb(235, 235, 235);
    border-radius: 10px;
    border: 1px solid #404040;
    transition: all 0.3s ease;
    text-decoration: none;
    aspect-ratio: 1;
    position: relative;
    overflow: hidden;
}

.quick-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    border-color: #4a9eff;
}

.quick-link:hover::after {
    content: attr(title);
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.9);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 10;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.quick-link img {
    width: 60px;
    object-fit: contain;
    transition: transform 0.3s ease;
    filter: brightness(0.9);
}

.quick-link:hover img {
    transform: scale(1.1);
}

/* Responsive Design for Quick Links */
@media (max-width: 768px) {
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .quick-link {
        padding: 10px;
    }
    
    .quick-link img {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 480px) {
    .featured-card {
        min-width: 250px;
        padding: 16px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
    
    .carousel-nav.prev {
        left: -10px;
    }
    
    .carousel-nav.next {
        right: -10px;
    }
    
    .carousel-indicators {
        margin-top: 15px;
    }
    
    .carousel-dot {
        width: 6px;
        height: 6px;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 12px;
    }
    
    .quick-link {
        padding: 8px;
    }
    
    .quick-link img {
        width: 24px;
        height: 24px;
    }
}

/* Responsive Design for Center Content */
@media (max-width: 1024px) {
    .quick-links{
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    .hero-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .hero-title {
        flex-wrap: wrap;
    }
    
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .carousel-nav.prev {
        left: -15px;
    }
    
    .carousel-nav.next {
        right: -15px;
    }
    
    .category-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .site-card {
        padding: 12px;
    }
    .center-content {
        padding: 0 5px;
    }
    
    .featured-cards {
        gap: 15px;
    }
    
    
}

.news-header {
    padding: 15px 20px;
    border-bottom: 1px solid #404040;
}

.news-tabs {
    display: flex;
    gap: 20px;
    align-items: center;
}

.news-tab {
    background: none;
    border: none;
    color: #888888;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.2s;
}

.news-tab:hover,
.news-tab.active {
    color: #ffffff;
}

.news-tab.active {
    border-bottom: 2px solid #4a9eff;
}

.news-tab.dropdown::after {
    content: ' ▼';
    font-size: 10px;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    padding: 20px;
}

.news-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.news-item.large {
    grid-column: 1 / -1;
    background-color: #404040;
    padding: 15px;
    border-radius: 8px;
}

.news-image {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    flex-shrink: 0;
}

.news-content h3 {
    font-size: 14px;
    font-weight: normal;
    line-height: 1.3;
    margin-bottom: 5px;
}

.news-source {
    font-size: 11px;
    color: #888888;
}

.news-urgent {
    background-color: #ff4444;
    color: #ffffff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 3px;
    margin-right: 8px;
}

/* News Headlines */
.news-headlines {
    padding: 0 20px 20px;
    border-top: 1px solid #404040;
}

.headline-item {
    padding: 8px 0;
    border-bottom: 1px solid #404040;
}

.headline-item:last-child {
    border-bottom: none;
}

.headline-text {
    font-size: 13px;
    color: #cccccc;
    line-height: 1.3;
}

/* News Pagination */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 15px;
    background-color: #404040;
}

.page-prev,
.page-next {
    background: none;
    border: none;
    color: #888888;
    font-size: 16px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.page-prev:hover,
.page-next:hover {
    background-color: #555555;
}

.page-info {
    font-size: 13px;
    color: #888888;
}

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Login Section */
.login-section {
    background-color: #2d2d2d;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #404040;
}

.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.ai-text {
    font-size: 14px;
    color: #4a9eff;
    font-weight: bold;
}

.login-dropdown {
    background-color: #404040;
    border: none;
    color: #ffffff;
    font-size: 12px;
    padding: 5px 10px;
    border-radius: 5px;
    max-width: 150px;
}

.login-description {
    font-size: 12px;
    color: #888888;
    margin-bottom: 15px;
    line-height: 1.3;
}

.kakao-login {
    width: 100%;
    background-color: #fee500;
    color: #000000;
    border: none;
    padding: 12px 15px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.kakao-login:hover {
    background-color: #fdd835;
}

/* Food Ad Section */
.food-ad {
    background-color: #2d2d2d;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #404040;
    display: flex;
    gap: 15px;
    align-items: center;
}

.food-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.food-content h4 {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 5px;
    line-height: 1.3;
}

.food-content p {
    font-size: 11px;
    color: #888888;
    margin-bottom: 5px;
    line-height: 1.3;
}

.food-source {
    font-size: 11px;
    color: #4a9eff;
}

/* Weather Widget */
.weather-widget {
    background-color: #2d2d2d;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #404040;
}

.weather-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.weather-header h4 {
    font-size: 16px;
    font-weight: bold;
}

.temperature {
    font-size: 24px;
    font-weight: bold;
}

.weather-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.weather-status {
    font-size: 12px;
    color: #888888;
}

.temp-range {
    font-size: 12px;
    color: #888888;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    background-color: #2d2d2d;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #404040;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 5px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.service-item:hover {
    background-color: #404040;
}

.service-icon {
    font-size: 18px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-item span:last-child {
    font-size: 11px;
    color: #cccccc;
    text-align: center;
}
/* Footer */
.footer {
    background: var(--surface-color);
    border-top: 2px solid var(--border-color);
    padding: 48px 24px 24px;
    margin-top: 48px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.footer-section h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 8px;
}

.footer-section p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.5;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: var(--transition);
    display: block;
    padding: 4px 0;
}

.footer-section ul li a:hover {
    color: var(--text-primary);
    padding-left: 8px;
}
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.social-links a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 16px;
}

.social-links a:hover {
    background: var(--hover-bg);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.footer-bottom {
    max-width: 1200px;
    margin: 32px auto 0;
    padding-top: 24px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
}
/* Responsive Design */
@media (max-width: 1200px) {
    .content-grid {
        grid-template-columns: 100px 1fr 280px;
        gap: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .left-sidebar {
        order: 3;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .center-content {
        order: 1;
    }
    
    .right-sidebar {
        order: 2;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
    
    .quick-links {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
        gap: 10px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 10px;
    }
    
    .main-content {
        padding: 15px 0;
    }
    
    .content-grid {
        gap: 15px;
    }
    
    .header-top {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container {
        max-width: none;
        width: 100%;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
    }
    
    .left-sidebar {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
    
    .right-sidebar {
        grid-template-columns: 1fr;
    }
    
    .quick-links {
        grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
        gap: 8px;
        padding: 10px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 15px;
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
        padding: 15px;
    }
    
    .food-ad {
        flex-direction: column;
        text-align: center;
    }
    
    .sites-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 8px;
    }
    
    .main-content {
        padding: 10px 0;
    }
    
    .content-grid {
        gap: 10px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-tabs {
        gap: 5px;
    }
    
    .nav-tab {
        font-size: 11px;
        padding: 8px 6px;
        min-width: 45px;
    }
    
    .quick-links {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
        padding: 8px;
    }
    
    .quick-link img {
        width: 35px;
        height: 35px;
    }
    
    .sites-grid {
        grid-template-columns: 1fr !important;
        gap: 10px;
    }
    
    .site-card {
        padding: 12px;
    }
    
    .category-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .category-more {
        align-self: center;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 0 5px;
    }
    
    .main-content {
        padding: 8px 0;
    }
    
    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .nav-tab {
        font-size: 10px;
        padding: 6px 4px;
        min-width: 40px;
    }
    
    .search-container {
        padding: 6px 12px;
    }
    
    .search-input {
        font-size: 14px;
    }
}
/* Popup System */
.popup_wrap {
    position: relative;
    z-index: 9999;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    /* Show by default, will be hidden by JavaScript if needed */
}

.popup_5,
.popup_7,
.popup_9 {
    position: relative;
    background: white;
    border-radius: 10px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    max-width: 90vw;
    max-height: 90vh;
    animation: popupFadeIn 0.3s ease-out;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.popup_5 img,
.popup_7 img,
.popup_9 img {
    display: block;
    max-width: 100%;
    height: auto;
}

.popup .close {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.popup .close label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

.popup .close label input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
    cursor: pointer;
}

.popup .close .close-btn {
    background: var(--accent-color);
    color: white;
    padding: 5px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.2s;
    font-weight: 500;
}

.popup .close .close-btn:hover {
    background: #dc2626;
}

/* Popup responsive */
@media (max-width: 768px) {
    .popup_5,
    .popup_7,
    .popup_9 {
        margin: 10px;
        max-width: calc(100vw - 20px);
    }
    
    .popup .close {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .popup .close label {
        justify-content: center;
    }
}

/* Animation for popup close */
.popup.closing {
    animation: popupFadeOut 0.3s ease-in;
}

@keyframes popupFadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.8);
    }
}
