
/* ===== MODERN PROFESSIONAL STYLING ===== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary-color: #64748b;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1e293b;
    --gray-900: #0f172a;
    --white: #ffffff;
    --radius: 12px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    min-height: 100vh;
    color: var(--gray-800);
    line-height: 1.6;
}

/* Header */
.header {
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 50%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 500;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 2.5rem;
    height: 2.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    z-index: 500;
    position: relative;
    touch-action: manipulation;
}

.hamburger-line {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
    transform-origin: center;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Banners Section */
.banners {
    max-width: 1400px;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: .5rem;
}

.banner-item {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
    object-fit: contain;
}

.banner-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.banner-grid a {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
}

.nav-container {
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
    margin: 0;
    padding: 0;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.875rem;
}

.nav-tab:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-1px);
}

.nav-tab.active {
    background: rgba(37, 99, 235, 0.8);
    color: white;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Main Content */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.page-subtitle {
    color: var(--gray-600);
    font-size: 1.125rem;
    font-weight: 400;
}

.section-title {
    font-size: 1.5rem;
    color: var(--gray-800);
    margin-bottom: 2rem;
    font-weight: 700;
}

/* ===== MAIN LAYOUT - THREE COLUMN DESIGN ===== */

.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr 300px;
    gap: 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

/* ===== LEFT SIDEBAR ===== */

.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-widget {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.sidebar-widget:hover {
    box-shadow: var(--shadow-lg);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-100);
}

.widget-title i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Quick Navigation */
.quick-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--gray-700);
    transition: all 0.3s ease;
    position: relative;
}

.quick-nav-item:hover {
    background: var(--gray-50);
    color: var(--primary-color);
    transform: translateX(4px);
}

.quick-nav-item.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: var(--shadow-md);
}

.quick-nav-item i {
    font-size: 0.875rem;
    width: 1rem;
}

.quick-nav-item span {
    flex: 1;
    font-weight: 500;
}

.nav-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.quick-nav-item.active .nav-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.activity-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-text {
    font-size: 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: var(--gray-50);
    border-radius: 8px;
    border: 1px solid var(--gray-200);
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 500;
}

/* ===== RIGHT SIDEBAR - ADVERTISEMENTS ===== */

.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ad-widget {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.ad-widget:hover {
    box-shadow: var(--shadow-lg);
}

.ad-widget .widget-title {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    background: var(--gray-50);
}

/* Banner Advertisement */
.ad-banner {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.ad-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ad-banner:hover .ad-image {
    transform: scale(1.05);
}

.ad-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    padding: 1rem;
}

.ad-text {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Sponsored Sites */
.sponsored-sites {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sponsored-item {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.sponsored-item:hover {
    background: var(--gray-50);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.sponsored-image {
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.sponsored-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sponsored-content {
    flex: 1;
}

.sponsored-content h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.sponsored-content p {
    font-size: 0.75rem;
    color: var(--gray-600);
    margin-bottom: 0.5rem;
}

.sponsored-tag {
    background: var(--warning-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
}

/* Popup Advertisement */
.ad-popup {
    position: relative;
    overflow: hidden;
}

.popup-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.popup-content {
    padding: 1.5rem;
    text-align: center;
}

.popup-content h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.popup-content p {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.popup-btn {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

/* Notice List */
.notice-list {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.notice-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.notice-item:hover {
    background: var(--gray-50);
}

.notice-badge {
    background: var(--danger-color);
    color: white;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.625rem;
    font-weight: 600;
    text-transform: uppercase;
    flex-shrink: 0;
}

.notice-badge:empty {
    display: none;
}

.notice-text {
    flex: 1;
    font-size: 0.875rem;
    color: var(--gray-800);
    font-weight: 500;
}

.notice-date {
    font-size: 0.75rem;
    color: var(--gray-500);
    flex-shrink: 0;
}

/* Bottom Banner */
.bottom-banner {
    overflow: hidden;
}

.banner-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.bottom-banner:hover .banner-image {
    transform: scale(1.02);
}

/* Korean Social Media Icons */
.korean-socials {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    background: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.social-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.social-icon:hover::before {
    left: 100%;
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.social-icon img {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
    transition: all 0.3s ease;
}

.social-icon:hover img {
    transform: scale(1.1);
}

/* Individual social icon hover effects */
.social-icon.google:hover {
    border-color: #4285f4;
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.social-icon.naver:hover {
    border-color: #03c75a;
    box-shadow: 0 5px 15px rgba(3, 199, 90, 0.3);
}

.social-icon.daum:hover {
    border-color: #4A90E2;
    box-shadow: 0 5px 15px rgba(74, 144, 226, 0.3);
}

.social-icon.nate:hover {
    border-color: #ff6b35;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

.social-icon.zum:hover {
    border-color: #7b68ee;
    box-shadow: 0 5px 15px rgba(123, 104, 238, 0.3);
}

.social-icon.youtube:hover {
    border-color: #ff0000;
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.social-icon.instagram:hover {
    border-color: #e4405f;
    box-shadow: 0 5px 15px rgba(228, 64, 95, 0.3);
}

.social-icon.facebook:hover {
    border-color: #1877f2;
    box-shadow: 0 5px 15px rgba(24, 119, 242, 0.3);
}

.social-icon.twitter:hover {
    border-color: #1da1f2;
    box-shadow: 0 5px 15px rgba(29, 161, 242, 0.3);
}

/* ===== CENTER CONTENT - MODERN PROFESSIONAL DESIGN ===== */

.center-content {
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    margin-bottom: 2rem;
}

/* Hero Section */
.hero-section {
    margin-bottom: 3rem;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.hero-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-icon {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--warning-color) 100%);
    color: white;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
}

.hero-title h2 {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.hero-badge {
    background: linear-gradient(135deg, var(--danger-color) 0%, var(--warning-color) 100%);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.hero-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.hero-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

/* Featured Grid */
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.featured-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: var(--shadow);
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.rank-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 10;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    box-shadow: var(--shadow-lg);
}

.rank-badge.gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffb300 100%);
}

.rank-badge.silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #a8a8a8 100%);
}

.rank-badge.bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #a0522d 100%);
}

.rank-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.card-content {
    padding: 1.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.site-name a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-name a:hover {
    color: var(--primary-color);
}

.card-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tag.popular {
    background: linear-gradient(135deg, var(--danger-color) 0%, #dc2626 100%);
    color: white;
}

.tag.trending {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    color: white;
}

.tag.recommended {
    background: linear-gradient(135deg, var(--success-color) 0%, #059669 100%);
    color: white;
}

.tag.verified {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
}

.tag.new {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
}

.site-description {
    color: var(--gray-600);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.stat.online {
    color: var(--success-color);
}

.stat i {
    font-size: 0.75rem;
}

/* Categories Container */
.categories-container {
    display: grid;
    gap: 3rem;
}

.category-section {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.category-section:hover {
    box-shadow: var(--shadow-lg);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-100);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.category-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 8px;
    object-fit: cover;
}

.category-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin: 0;
}

.category-count {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.category-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-100);
    color: var(--gray-700);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all 0.3s ease;
}

.category-more:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

/* Sites Grid */
.sites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.site-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    transition: all 0.3s ease;
    background: var(--gray-50);
}

.site-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-color);
    background: var(--white);
}

.site-rank {
    flex-shrink: 0;
}

.rank-img {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    object-fit: cover;
}

.site-info {
    flex: 1;
    min-width: 0;
}

.site-link {
    font-weight: 600;
    color: var(--gray-900);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 0.25rem;
}

.site-link:hover {
    color: var(--primary-color);
}

.site-link.premium {
    background: linear-gradient(135deg, var(--warning-color) 0%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-link.verified {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--gray-600);
}

.site-status.online {
    color: var(--success-color);
}

.site-actions {
    display: flex;
    gap: 0.5rem;
}

.bookmark-site,
.share-site {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-100);
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.75rem;
}

.bookmark-site:hover {
    background: var(--warning-color);
    color: white;
}

.share-site:hover {
    background: var(--primary-color);
    color: white;
}
.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);
}
/* Responsive Design */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 250px 1fr 280px;
        gap: 1.5rem;
    }
    
    .container {
        padding: 1.5rem;
    }
    
    .banners {
        padding: 0 1.5rem;
    }
    
    .banner-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 0.75rem;
    }
    
    .featured-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .sites-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .banners {
        padding: 0 1rem;
        margin: 1.5rem auto;
    }
    
    .banner-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 0.75rem;
    }
    
    .left-sidebar,
    .right-sidebar {
        order: 2;
    }
    
    .center-content {
        order: 1;
    }
    
    .left-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .right-sidebar {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
        justify-content: space-between;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: flex;
        order: 2;
    }

    .nav-container {
        position: fixed;
        top: 0;
        left: -100%;
        width: 80%;
        height: 100vh;
        background: linear-gradient(135deg, var(--gray-900) 0%, var(--gray-800) 50%, var(--primary-dark) 100%);
        backdrop-filter: blur(10px);
        transition: left 0.3s ease;
        z-index: 999;
        padding-top: 5rem;
        box-shadow: var(--shadow-xl);
        overflow-y: auto;
        overflow-x: hidden;
        scroll-behavior: smooth;
    }

    /* Custom scrollbar for webkit browsers */
    .nav-container::-webkit-scrollbar {
        width: 6px;
    }

    .nav-container::-webkit-scrollbar-track {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 3px;
    }

    .nav-container::-webkit-scrollbar-thumb {
        background: rgba(255, 255, 255, 0.3);
        border-radius: 3px;
    }

    .nav-container::-webkit-scrollbar-thumb:hover {
        background: rgba(255, 255, 255, 0.5);
    }

    .nav-container.active {
        left: 0;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0;
        width: 100%;
        padding: 1rem 1rem 2rem 1rem;
        min-height: calc(100vh - 5rem);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-tab {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        border-radius: 8px;
        margin-bottom: 0.5rem;
        justify-content: flex-start;
        transition: all 0.3s ease;
    }

    .nav-tab:hover {
        background: rgba(255, 255, 255, 0.1);
        transform: translateX(8px);
    }

    .nav-tab.active {
        background: rgba(37, 99, 235, 0.8);
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    }

    .nav-tab i {
        margin-right: 0.75rem;
        font-size: 1.125rem;
    }

    /* Mobile overlay */
    .nav-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }

    .nav-overlay.active {
        visibility: visible;
    }

    .banners {
        padding: 0 1rem;
        margin: 1rem auto;
    }
    
    .banner-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.5rem;
    }
    

    .container {
        padding: 1rem;
    }

    .main-layout {
        gap: 1.5rem;
    }

    .center-content {
        padding: 1.5rem;
    }

    .hero-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .hero-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .hero-title h2 {
        font-size: 1.5rem;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .category-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .sites-grid {
        grid-template-columns: 1fr;
    }

    .site-card {
        padding: 0.75rem;
    }
    
    .left-sidebar,
    .right-sidebar {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .sponsored-sites {
        padding: 1rem;
    }
    
    .notice-list {
        padding: 1rem;
    }
    
    .korean-socials {
        padding: 1rem;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }
    
    .social-icon {
        padding: 0.5rem;
    }
    
    .social-icon img {
        width: 1.5rem;
        height: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-title {
        font-size: 2rem;
    }

    .banners {
        padding: 0 0.5rem;
        margin: 0.75rem auto;
    }
    
    .banner-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .banner-item {
        aspect-ratio: 16/9;
        border-radius: 8px;
    }

    .hero-icon {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .category-title h3 {
        font-size: 1.25rem;
    }
    
    .main-layout {
        gap: 1rem;
    }
    
    .sidebar-widget {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .sponsored-item {
        padding: 0.75rem;
    }
    
    .popup-content {
        padding: 1rem;
    }
}
/* 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);
    }
}

/* ===== STATISTICS SECTION ===== */
.statistics {
    margin: 2rem 0;
}

.stats-container {
    max-width: 1450px;
    margin: 0 auto;
    background: white;
    border-radius: var(--radius);
    padding: 15px 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
}

.stats-header {
    text-align: center;
    margin-bottom: .5rem;
}

.stats-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.stats-title i {
    color: var(--primary-color);
    font-size: 2rem;
}

.stats-subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 400;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 2px solid var(--gray-100);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transition: height 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.stat-card:hover::before {
    height: 6px;
}

.stat-card .stat-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    color: white;
}

.active-users .stat-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.total-connections .stat-icon {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.new-users .stat-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.verified-sites .stat-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.server-status .stat-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
}

.response-time .stat-icon {
    background: linear-gradient(135deg, #ec4899, #db2777);
}

.security-scans .stat-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.data-transfer .stat-icon {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.stat-content {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.stat-change {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.stat-change.positive {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.stat-change.negative {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.stat-status {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

.stat-status.online {
    color: var(--success-color);
    background: rgba(16, 185, 129, 0.1);
}

.stat-status i {
    animation: pulse 2s infinite;
}

/* Real-time Feed */
.real-time-feed {
    background: var(--gray-50);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--gray-200);
}

.feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.feed-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feed-title i {
    color: var(--danger-color);
    animation: pulse 2s infinite;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--danger-color);
    background: rgba(239, 68, 68, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: var(--danger-color);
    border-radius: 50%;
    animation: pulse 1s infinite;
}

.feed-content {
    display: flex;
    flex-direction: column;
}

.feed-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.75rem;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    margin-bottom: 0.75rem;
    transition: all 0.3s ease;
}

.feed-item:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.feed-time {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
    white-space: nowrap;
    background: var(--gray-100);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    min-width: 60px;
    text-align: center;
}

.feed-text {
    color: var(--gray-700);
    font-weight: 500;
    line-height: 1.4;
}
/* Footer */
.footer {
    background: white;
    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;
}
/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Counter Animation for Numbers */
.stat-number {
    animation: countUp 2s ease-out;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Statistics */
@media (max-width: 768px) {
    .statistics {
        margin: 1rem 0;
        padding: 0 0.5rem;
    }
    
    .stats-container {
        padding: 1.5rem;
    }
    
    .stats-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .feed-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .feed-item {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .feed-time {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .stats-title {
        font-size: 1.75rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .stat-number {
        font-size: 1.75rem;
    }
    
    .stat-card .stat-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.25rem;
    }
}
