/* Modern LinkSite CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --primary-dark: #1d4ed8;
    --secondary-color: #f59e0b;
    --secondary-light: #fbbf24;
    --accent-color: #ef4444;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-dark: #1e293b;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    --border-color: #e2e8f0;
    --border-light: #f1f5f9;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --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);
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-secondary);
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Top Status Bar */
.top-status-bar {
    background: var(--bg-dark);
    color: white;
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-status-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.status-left .weather-mini {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-icon {
    font-size: 1.2rem;
}

.temperature {
    font-weight: 600;
    color: var(--secondary-color);
}

.status-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    color: var(--text-light);
}

.login-btn-mini {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-btn-mini:hover {
    background: var(--primary-dark);
}

/* Header */
.header {
    background: white;
    padding: 1.5rem 0;
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-light);
}

.header-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 2rem;
    align-items: center;
}

/* Logo Section */
.logo-section {
    text-align: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.875rem;
    font-weight: 900;
}

.linksite-logo {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo-plus {
    color: var(--accent-color);
    font-weight: 700;
}

.logo-tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

/* Search Section */
.search-section {
    max-width: 600px;
    width: 100%;
}

.search-container {
    position: relative;
    display: flex;
    box-shadow: var(--shadow-md);
    border-radius: 0.75rem;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 1rem 1.25rem;
    border: 2px solid var(--border-color);
    border-right: none;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
}

.search-suggestions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.suggestion-tag {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
}

.suggestion-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Header Actions */
.header-actions {
    display: flex;
    gap: 1rem;
}

.bookmark-btn,
.notification-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.bookmark-btn:hover,
.notification-btn:hover {
    background: var(--primary-color);
    color: white;
}

.notification-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -0.25rem;
    right: -0.25rem;
    background: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    min-width: 1.25rem;
    text-align: center;
}

/* Floating Navigation */
.floating-nav {
    background: white;
    border-radius: 1rem;
    margin: 1rem auto;
    max-width: 1200px;
    box-shadow: var(--shadow-lg);
    position: sticky;
    top: 1rem;
    z-index: 50;
}

.nav-tabs {
    display: flex;
    padding: 0.75rem;
    gap: 0.5rem;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.nav-tabs::-webkit-scrollbar {
    display: none;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    min-width: fit-content;
}

.nav-tab:hover,
.nav-tab.active {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    object-fit: contain;
}

.nav-more-btn {
    background: var(--bg-tertiary);
    border: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-more-btn:hover {
    background: var(--secondary-color);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    gap: 0.25rem;
}

.mobile-menu-toggle span {
    width: 1.5rem;
    height: 0.125rem;
    background: var(--text-primary);
    transition: all 0.2s;
}

/* More Categories Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 1rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: var(--shadow-xl);
    padding: 0.5rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 60;
}

.nav-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--bg-tertiary);
}

/* Mobile Navigation */
.mobile-nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: white;
    z-index: 1000;
    transition: left 0.3s;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-nav.show {
    left: 0;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.mobile-nav-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.mobile-nav-items {
    padding: 1rem 0;
}

.mobile-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.mobile-nav-item:hover {
    background: var(--bg-tertiary);
}

/* Quick Access Sidebar */
.quick-access-sidebar {
    position: fixed;
    top: 50%;
    right: -300px;
    transform: translateY(-50%);
    background: white;
    border-radius: 1rem 0 0 1rem;
    box-shadow: var(--shadow-xl);
    transition: right 0.3s;
    z-index: 100;
    width: 300px;
}

.quick-access-sidebar.show {
    right: 0;
}

.quick-access-toggle {
    position: absolute;
    left: -50px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary-color);
    color: white;
    padding: 1rem 0.75rem;
    border-radius: 0.5rem 0 0 0.5rem;
    cursor: pointer;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.quick-access-content {
    padding: 1.5rem;
    max-height: 80vh;
    overflow-y: auto;
}

.quick-access-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.quick-access-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--text-secondary);
}

.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.quick-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
    text-align: center;
}

.quick-link:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.quick-link img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

.quick-link span {
    font-size: 0.75rem;
    font-weight: 500;
}

/* Main Content Layout */
.main-content {
    padding: 2rem 0;
}

.content-layout {
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    gap: 2rem;
}

/* Left Sidebar */
.left-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.banner-section {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.banner-carousel {
    position: relative;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
}


.banner-item.active {
    display: block;
}

.banner-item {
    width: 100%;
    height: auto;
}

.banner-dots {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
}

.banner-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: all 0.2s;
}

.banner-dot.active {
    background: var(--primary-color);
    transform: scale(1.2);
}

.stats-widget {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.stat-item {
    text-align: center;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Center Content */
.center-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Hero Section */
.hero-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.hero-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.hero-icon {
    width: 3rem;
    height: 3rem;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.hero-title h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--text-primary);
}

.hero-badge {
    background: var(--accent-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.hero-more-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.2s;
}

.hero-more-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateX(4px);
}

.featured-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.featured-card {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    position: relative;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.featured-card.rank-1 {
    background: linear-gradient(135deg, #fef3c7 0%, #f59e0b 100%);
    border-color: #d97706;
}

.featured-card.rank-2 {
    background: linear-gradient(135deg, #e5e7eb 0%, #9ca3af 100%);
    border-color: #6b7280;
}

.featured-card.rank-3 {
    background: linear-gradient(135deg, #fed7aa 0%, #ea580c 100%);
    border-color: #c2410c;
}

.rank-badge {
    position: absolute;
    top: -0.75rem;
    left: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
}

.rank-badge img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card-content {
    margin-top: 0.5rem;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.75rem;
}

.site-name a {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
}

.site-name a:hover {
    color: var(--primary-color);
}

.card-tags {
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.tag.popular {
    background: #fecaca;
    color: #dc2626;
}

.tag.verified {
    background: #d1fae5;
    color: #059669;
}

.tag.trending {
    background: #ddd6fe;
    color: #7c3aed;
}

.tag.recommended {
    background: #fed7aa;
    color: #ea580c;
}

.tag.new {
    background: #fef3c7;
    color: #d97706;
}

.site-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.card-stats {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.stat.online {
    color: var(--success-color);
    font-weight: 600;
}

/* Category Sections */
.categories-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.category-section {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.category-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.category-icon {
    width: 2rem;
    height: 2rem;
    object-fit: contain;
}

.category-title h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.category-count {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.category-more {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.category-more:hover {
    color: var(--primary-dark);
    transform: translateX(4px);
}

.sites-grid {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.site-card {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border-radius: 0.75rem;
    background: var(--bg-secondary);
    transition: all 0.2s;
}

.site-card:hover {
    background: var(--bg-tertiary);
    transform: translateX(4px);
}

.rank-img {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.site-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.site-link {
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.site-link:hover {
    color: var(--primary-color);
}

.site-link.premium {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.site-link.trending {
    color: var(--secondary-color);
}

.site-link.verified {
    color: var(--success-color);
}

.site-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.site-status.online {
    color: var(--success-color);
}

.site-visitors {
    color: var(--text-secondary);
}

.site-actions {
    display: flex;
    gap: 0.5rem;
}

.bookmark-site,
.share-site {
    background: none;
    border: none;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.2s;
}

.bookmark-site:hover {
    background: var(--warning-color);
    color: white;
}

.share-site:hover {
    background: var(--primary-color);
    color: white;
}

.show-more-sites {
    margin-top: 1rem;
}

.show-more-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 2px dashed var(--border-color);
    border-radius: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.2s;
}

.show-more-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.hidden-sites {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.hidden-sites.show {
    display: flex;
}

/* Compact Categories */
.compact-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.compact-category {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.compact-category:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.compact-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.compact-icon {
    width: 1.5rem;
    height: 1.5rem;
    object-fit: contain;
}

.compact-header h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.compact-sites {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.compact-site {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s;
    font-size: 0.875rem;
}

.compact-site:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

.compact-site:last-child {
    border-bottom: none;
}

.compact-site.premium {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 600;
}

.compact-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.compact-more:hover {
    color: var(--primary-dark);
}

/* Right Sidebar */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.trending-section,
.recent-updates,
.newsletter-signup {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.trending-list,
.update-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.trending-item,
.update-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.5rem;
    background: var(--bg-secondary);
    transition: all 0.2s;
}

.trending-item:hover,
.update-item:hover {
    background: var(--bg-tertiary);
}

.trending-rank {
    width: 1.5rem;
    height: 1.5rem;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

.trending-link {
    flex: 1;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
}

.trending-link:hover {
    color: var(--primary-color);
}

.trending-change {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.trending-change.up {
    background: #d1fae5;
    color: #059669;
}

.trending-change.down {
    background: #fecaca;
    color: #dc2626;
}

.trending-change.new {
    background: #fef3c7;
    color: #d97706;
}

.trending-change.stable {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
}

.update-time {
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

.update-text {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.newsletter-desc {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.newsletter-input {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.newsletter-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.newsletter-btn:hover {
    background: var(--primary-dark);
}

/* Footer */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

.footer-logo-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-logo-plus {
    color: var(--accent-color);
}

.footer-description {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-contact p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 2rem;
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.2s;
}

.social-links a:hover {
    transform: translateY(-2px);
}

.footer-bottom p {
    color: var(--text-light);
    font-size: 0.875rem;
}

/* Back to Top */
.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 {
    background: var(--primary-dark);
    transform: translateY(-4px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.5);
    }
    50% {
        transform: translateY(-5px) scale(1.1);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.sound_only {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Rainbow Text Effect */
.rainbow-text {
    background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .content-layout {
        grid-template-columns: 240px 1fr 240px;
        gap: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .content-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .left-sidebar,
    .right-sidebar {
        display: none;
    }
}

@media (max-width: 768px) {
    .header-content {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .search-section {
        order: 3;
    }
    
    .header-actions {
        order: 2;
        justify-content: center;
    }
    
    .nav-tabs {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .floating-nav {
        position: relative;
        top: 0;
        margin: 1rem;
    }
    
    .featured-cards {
        grid-template-columns: 1fr;
    }
    
    .compact-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-section,
    .category-section,
    .compact-category {
        padding: 1rem;
    }
    
    .hero-title h2 {
        font-size: 1.5rem;
    }
    
    .quick-access-sidebar {
        width: 250px;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 3rem;
        height: 3rem;
        font-size: 1rem;
    }
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Hover Effects */
.hover-scale {
    transition: transform 0.2s;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Focus States */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .floating-nav,
    .quick-access-sidebar,
    .back-to-top,
    .mobile-nav {
        display: none;
    }
}

/* Right Navigation Panel */
.right-nav-fixed {
    position: fixed;
    top: 50%;
    right: -300px;
    transform: translateY(-50%);
    z-index: 1000;
    transition: right 0.3s ease;
}

.right-nav-fixed.active {
    right: 0;
}

.right-nav-toggle {
    position: absolute;
    left: -150px;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    height: 50px;
    background: var(--primary-color);
    border-radius: 10px 0 0 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    color: white;
}

.right-nav-toggle:hover {
    background: var(--primary-hover);
    color: black;
    transform: translateY(-50%) translateX(-5px);
}

.right-nav-toggle i {
    color: white;
    font-size: 1.2rem;
}

.right-nav-content {
    width: 300px;
    height: 80vh;
    max-height: 600px;
    background: white;
    border-radius: 15px 0 0 15px;
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.right-nav-header {
    padding-top: 1rem;
    padding-left: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
    color: rgb(0, 0, 0);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.right-nav-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.right-nav-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.right-nav-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.quick-links {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.quick-links .quick-link {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 0.5rem;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    border: 1px solid var(--border-color);
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.quick-links .quick-link:hover {
    background: white;
    color: black;
    transform: translateX(5px);
    box-shadow: var(--shadow-md);
}

.quick-links .quick-link img {
    width: 40px;
    height: 40px;
    margin-right: 10px;
    border-radius: 3px;
    pointer-events: none;
}

.quick-links .quick-link span {
    font-size: 1rem;
    font-weight: 500;
    pointer-events: none;
}

/* Mobile responsive for right nav */
@media (max-width: 768px) {
    .right-nav-fixed {
        right: -250px;
    }
    
    .right-nav-content {
        width: 250px;
    }
    
    .right-nav-toggle {
        left: -40px;
        width: 40px;
        height: 40px;
    }
}

/* 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);
    }
}
