/* Bootstrap Components CSS */
:root {
    --primary-color: #ff6b35;
    --primary-hover: #ff5722;
    --secondary-color: #000000;
    --dark-color: #1a1a1a;
    --light-color: #ffffff;
    --gray-color: #6c757d;
    --gray-light: #f8f8f8;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    --bg-gradient: linear-gradient(135deg, #ffffff 0%, #f8f8f8 100%);
    --card-bg: rgba(255, 255, 255, 1);
    --border-radius: 16px;
    --border-radius-sm: 8px;
    --box-shadow: 0 10px 30px -15px rgba(0,0,0,0.1);
    --box-shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'NanumSquareNeo', 'NanumGothic', sans-serif;
    background: var(--bg-gradient);
    color: #000000;
    line-height: 1.6;
    padding-top: 0;
    padding-bottom: 0;
    font-size: var(--base-font-size, 16px);
}

/* Header Auth Buttons */
#user-auth-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

#auth-login-buttons {
    display: flex;
    align-items: center;
    gap: 6px;
}

#auth-login-buttons .btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    border: 1px solid;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

#auth-login-buttons .btn-outline-light {
    background: transparent;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

#auth-login-buttons .btn-outline-light:hover {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

#auth-login-buttons .btn-primary {
    background: linear-gradient(135deg, #ff6b35, #ff8c42);
    border-color: #ff6b35;
    color: #fff;
    font-weight: 600;
}

#auth-login-buttons .btn-primary:hover {
    background: linear-gradient(135deg, #ff5722, #ff6b35);
    border-color: #ff5722;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.3);
}

#auth-user-menu .dropdown-toggle {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
    color: var(--primary-color);
    padding: 6px 12px;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s ease;
}

#auth-user-menu .dropdown-toggle:hover {
    background: rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
}

#auth-user-menu .dropdown-menu {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    margin-top: 5px;
    min-width: 180px;
}

#auth-user-menu .dropdown-item {
    padding: 8px 16px;
    color: #333;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

#auth-user-menu .dropdown-item:hover {
    background: #f8f9fa;
    color: #ff6b35;
}

#auth-user-menu .dropdown-item i {
    width: 16px;
    text-align: center;
}

/* Floating Telegram Button */
.floating-telegram {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #0088cc, #0077b3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 136, 204, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: white;
    font-size: 24px;
    animation: float 3s ease-in-out infinite;
}

.floating-telegram:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 136, 204, 0.6);
    color: white;
    text-decoration: none;
}

.floating-telegram:active {
    transform: scale(0.95);
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Floating Telegram Tooltip */
.floating-telegram::before {
    content: '제휴문의';
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
}

.floating-telegram::after {
    content: '';
    position: absolute;
    right: 62px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid rgba(0, 0, 0, 0.8);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.floating-telegram:hover::before,
.floating-telegram:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .floating-telegram {
        right: 15px;
        bottom: 80px;
        width: 55px;
        height: 55px;
        font-size: 22px;
        box-shadow: 0 6px 25px rgba(0, 136, 204, 0.5);
        z-index: 1001;
    }
    
    .floating-telegram::before {
        right: 65px;
        font-size: 13px;
        padding: 8px 12px;
        bottom: 50%;
        transform: translateY(50%);
        top: auto;
    }
    
    .floating-telegram::after {
        right: 60px;
        border-left-width: 7px;
        border-top-width: 7px;
        border-bottom-width: 7px;
        bottom: 50%;
        transform: translateY(50%);
        top: auto;
    }
    
    /* 모바일에서 더 눈에 띄게 */
    .floating-telegram:hover {
        transform: scale(1.15);
        box-shadow: 0 8px 30px rgba(0, 136, 204, 0.7);
    }
}

/* Improved Spacing */
.content-container {
    padding-top: 30px !important;
    padding-bottom: 30px !important;
}

.category-card {
    margin-bottom: 30px !important;
}

.category-card-header {
    padding: 20px 24px !important;
}

.category-card-body {
    padding: 0 !important;
}

.category-link {
    padding: 18px 24px !important;
    margin-bottom: 0 !important;
}

/* Section Spacing */
.banner-component {
    margin: 25px 0 !important;
}

.category-nav-component {
    margin: 20px 0 !important;
}

.major-sites-component {
    margin: 30px 0 !important;
}

/* Category Page Spacing */
.category-header-section {
    padding: 30px 0 !important;
}

.category-content-section {
    padding: 20px 0 40px 0 !important;
}

.category-stats {
    margin-bottom: 30px !important;
}

.sub-category-nav {
    margin-bottom: 25px !important;
}

/* Main Content Container - 1600px max width */
.main-content {
    width: 100%;
}

/* Desktop: 1600px max width */
@media (min-width: 769px) {
    .main-content {
        max-width: 1600px;
        margin: 0 auto;
    }
    
    .banner-component .container-fluid {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .category-nav-component .container-fluid,
    .major-sites-component .container-fluid,
    .content-container {
        max-width: 1600px;
        margin: 0 auto;
    }
}

/* Header Component */
.header-component {
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(255,107,53,0.1);
    border-bottom: 3px solid #ff6b35;
    min-height: 180px;
}

.header-top {
    background: #000000;
    padding: 10px 0;
    border-bottom: 1px solid var(--primary-color);
}

.header-middle {
    padding: 20px 0;
    min-height: 80px;
    background: #ffffff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.header-nav {
    background: #f8f8f8;
    padding: 12px 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.logo-area {
    z-index: 10;
    position: relative;
    padding: 10px 0;
}

.logo-area img {
    height: 45px;
    transition: var(--transition);
    filter: drop-shadow(0 2px 6px rgba(255,107,53,0.2));
}

.logo-area img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 3px 8px rgba(255,107,53,0.3));
}

.major-site-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8a65 100%);
    color: white;
    border: 1px solid rgba(255, 107, 53, 0.3);
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 2px;
    box-shadow: 0 2px 8px rgba(255,107,53,0.3);
}

.major-site-btn:hover {
    background: linear-gradient(135deg, #ff8a65 0%, #ff6b35 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.5);
    color: white;
    border-color: rgba(255, 107, 53, 0.6);
}

.sns-icon {
    color: #333333;
    font-size: 18px;
    transition: all 0.3s ease;
    text-decoration: none;
    padding: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.05);
}

.sns-icon:hover {
    color: #ff6b35;
    transform: scale(1.1);
    background: rgba(255, 107, 53, 0.1);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.2);
}

/* Banner Component */
.banner-component {
    background: transparent;
    padding: 10px 0;
    width: 100%;
    position: relative;
}

.banner-container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 10px;
}

.banner-header {
    text-align: center;
    margin-bottom: 12px;
}

.banner-title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #ff6b35 0%, #ff8a65 100%);
    color: white;
    padding: 10px 24px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,107,53,0.4);
    margin-bottom: 8px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 4px 15px rgba(255,107,53,0.4);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 6px 20px rgba(255,107,53,0.6);
        transform: scale(1.02);
    }
}

.banner-subtitle {
    color: #666666;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.banner-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 100%;
    margin: 0 auto;
}

.banner-item {
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    height: auto;
    display: block;
    position: relative;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.banner-item:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.banner-item:active {
    transform: translateY(-1px) scale(1.01);
}

.banner-item a {
    display: block;
    width: 100%;
    height: auto;
    text-decoration: none;
    padding: 0;
    margin: 0;
    line-height: 0;
    border-radius: 8px;
    overflow: hidden;
}

.banner-item img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: block;
    margin: 0;
    padding: 0;
    filter: brightness(1);
}

.banner-item:hover img {
    transform: scale(1.08);
    filter: brightness(1.05);
}

/* Verified badge - 제거 */

/* Banner responsive improvements */
@media (max-width: 768px) {
    .banner-component {
        padding: 2px 0 !important;
    }
    
    .banner-container {
        padding: 0 8px !important;
    }
    
    .banner-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2px !important;
    }
    
    .banner-item {
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        height: auto !important;
        margin: 0 !important;
        border: none !important;
    }
    
    .banner-item img {
        border-radius: 0 !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        max-width: 100% !important;
    }
    
    .banner-title {
        font-size: 14px;
        padding: 8px 20px;
    }
    
    .banner-subtitle {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .banner-container {
        padding: 0 6px !important;
    }
    
    .banner-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1px !important;
    }
    
    .banner-item {
        border-radius: 0 !important;
        padding: 0 !important;
        box-shadow: none !important;
        background: transparent !important;
        height: auto !important;
        margin: 0 !important;
        border: none !important;
    }
    
    .banner-item img {
        border-radius: 0 !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
        display: block !important;
        max-width: 100% !important;
    }
    
    .banner-title {
        font-size: 12px;
        padding: 6px 16px;
    }
    
    .banner-subtitle {
        font-size: 10px;
    }
}

/* Category Navigation Component */
.category-nav-component {
    background: #ffffff;
    padding: 12px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.category-nav-component::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,107,53,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,107,53,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,107,53,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.category-nav-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.category-nav-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 10px 14px;
    min-width: 75px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.category-nav-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.category-nav-btn:hover::before {
    transform: translateX(100%);
}

.category-nav-icon {
    font-size: 18px;
    margin-bottom: 3px;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
    color: #ff6b35;
}

.category-nav-text {
    font-size: 11px;
    font-weight: 600;
    text-shadow: none;
    transition: all 0.3s ease;
    color: #333;
}

.category-nav-ripple {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.category-nav-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.2);
    border-color: var(--primary-color);
    background: rgba(255, 107, 53, 0.05);
}

.category-nav-btn:hover .category-nav-icon {
    transform: scale(1.15) rotate(3deg);
    color: var(--primary-color);
}

.category-nav-btn:hover .category-nav-text {
    transform: scale(1.05);
    color: var(--primary-color);
}

.category-nav-btn:hover .category-nav-ripple {
    width: 80px;
    height: 80px;
}

.category-nav-btn:active {
    transform: translateY(-1px) scale(1.01);
}

.category-nav-btn.active {
    background: rgba(255, 107, 53, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.2);
}

.category-nav-btn.active .category-nav-icon {
    transform: scale(1.1);
    animation: pulse-icon 2s ease-in-out infinite;
    color: var(--primary-color);
}

.category-nav-btn.active .category-nav-text {
    color: var(--primary-color);
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1.1); }
    50% { transform: scale(1.2); }
}

/* Special styling for 토토군 and 주소야 buttons */
.category-nav-btn[href*="totogun.com"],
.category-nav-btn[href*="주소야.kr"] {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8a65 100%);
    border: 2px solid #ff6b35;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.category-nav-btn[href*="totogun.com"]:hover,
.category-nav-btn[href*="주소야.kr"]:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #ff8a65 0%, #ff6b35 100%);
}

/* Ensure all navigation buttons have consistent styling */
.category-nav-btn[href="board.html"] {
    /* Same base styling as other internal navigation buttons */
    background: linear-gradient(135deg, #6610f2 0%, #8b5cf6 100%);
    border: 2px solid #ffd700;
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), 0 4px 15px rgba(102, 16, 242, 0.3);
    animation: glow-pulse-pc 2s ease-in-out infinite alternate;
}

.category-nav-btn[href="board.html"]:hover {
    background: linear-gradient(135deg, #5a0cd8 0%, #7c3aed 100%);
    border-color: #ffed4a;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 6px 25px rgba(102, 16, 242, 0.5);
    color: #fff;
    transform: translateY(-2px) scale(1.05);
}

.category-nav-btn[href="board.html"]:hover .category-nav-icon {
    color: #ffffff;
    transform: scale(1.15) rotate(3deg);
}

.category-nav-btn[href="board.html"]:hover .category-nav-text {
    color: #ffffff;
    transform: scale(1.05);
}

.category-nav-btn[href="board.html"]:hover .category-nav-ripple {
    width: 80px;
    height: 80px;
    background: #6c5ce760;
}

.category-nav-btn[href="board.html"] .category-nav-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #ffffff;
    margin-bottom: 4px;
}

.category-nav-btn[href="board.html"] .category-nav-text {
    color: #ffffff;
    font-weight: 600;
}

/* PC용 제휴문의 버튼 애니메이션 */
@keyframes glow-pulse-pc {
    0% { box-shadow: 0 0 15px rgba(255, 215, 0, 0.5), 0 4px 15px rgba(102, 16, 242, 0.3); }
    100% { box-shadow: 0 0 25px rgba(255, 215, 0, 0.8), 0 4px 15px rgba(102, 16, 242, 0.5); }
}

/* Category Card Component */
.category-card {
    background: var(--card-bg);
    border: 1px solid rgba(255, 107, 53, 0.2);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(255,107,53,0.25);
    border-color: var(--primary-color);
}

.category-card-header {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%);
    color: white;
    padding: 16px 20px;
    border-bottom: none;
}

.category-card-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-more-btn {
    background: rgba(255,255,255,0.95);
    color: var(--primary-color);
    border: 2px solid rgba(255,255,255,0.8);
    padding: 8px;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.category-more-btn:hover {
    background: white;
    color: var(--primary-dark);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    border-color: white;
}

.category-card-body {
    padding: 20px;
    background: #ffffff;
}

/* Category Link Component */
.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    transition: var(--transition);
    margin-bottom: 12px;
    color: #333;
}

.category-link:hover {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.05) 0%, rgba(255, 107, 53, 0.02) 100%);
    border-color: var(--primary-color);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.15);
    color: var(--primary-color);
}

.category-rank {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    margin-right: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.category-rank.top3 {
    background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 50%, #ffab40 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
    border: 2px solid rgba(255, 171, 64, 0.3);
}

.category-rank.top3::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b35, #ffab40, #ff8a65);
    border-radius: 10px;
    z-index: -1;
    opacity: 0.7;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

.category-rank.top3:hover {
    transform: scale(1.1) rotate(2deg);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.6);
}

.category-rank.other {
    background: #f8f8f8;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.category-rank.other:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #4a4a4a 0%, #3a3a3a 100%);
    border-color: var(--primary-color);
}

.category-site-name {
    font-weight: 600;
    font-size: 15px;
    transition: var(--transition);
}

.category-crown {
    color: #ff6b35;
    font-size: 16px;
    margin-left: 8px;
    filter: drop-shadow(0 2px 4px rgba(255, 107, 53, 0.3));
    animation: sparkle 2s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.1) rotate(5deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Major Sites Component */
.major-sites-component {
    background: #f8f8f8;
    padding: 25px 0;
    border-top: 3px solid var(--primary-color);
    width: 100%;
}



.major-site-box {
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    padding: 20px;
    text-align: center;
    transition: var(--transition);
    backdrop-filter: blur(10px);
    height: 100%;
}

.major-site-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.2);
    background: rgba(255, 107, 53, 0.05);
    border-color: var(--primary-color);
}

.major-site-box h5 {
    color: #000000;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.major-site-box p {
    color: #666666;
    font-size: 14px;
    margin-bottom: 15px;
}

.major-site-box .btn {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    transition: var(--transition);
}

.major-site-box .btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,107,53,0.3);
}

/* Footer Component */
.footer-component {
    background: #000000;
    color: white;
    padding: 40px 0 20px;
    border-top: 3px solid var(--primary-color);
}

.footer-link {
    color: #cccccc;
    text-decoration: none;
    transition: var(--transition);
}

.footer-link:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* 모바일에서는 넓이 제한 해제 */
    .main-content,
    .banner-component .container-fluid,
    .category-nav-component .container-fluid,
    .major-sites-component .container-fluid,
    .content-container {
        max-width: none !important;
    }
    
    .logo-area img {
        height: 35px;
    }
    
    .header-middle {
        padding: 15px 0;
        min-height: 80px;
    }
    
    .header-component {
        min-height: 120px;
    }
    
    .header-top {
        display: none !important;
    }
    
    .header-middle .container-fluid {
        padding: 0 15px;
    }
    
    .header-middle .row {
        align-items: center;
        justify-content: space-between;
    }
    
    .logo-area {
        padding: 5px 0;
    }
    
    .major-site-btn {
        display: none;
    }
    
    .sns-icon {
        width: 32px;
        height: 32px;
        margin: 0 2px;
    }
    
    /* 모바일 배너 개선 */
    .banner-header {
        margin-bottom: 12px;
    }
    
    .category-card-title {
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        color: white !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .category-link {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 12px !important;
        background: #ffffff !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 0 !important;
        text-decoration: none !important;
        transition: var(--transition) !important;
        margin-bottom: 0 !important;
        color: #333 !important;
        min-height: 48px !important;
        max-height: 48px !important;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
        overflow: hidden !important;
    }
    
    .category-site-name {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 !important;
        margin-right: 8px !important;
    }
    
    .category-rank {
        min-width: 26px !important;
        width: 26px !important;
        height: 26px !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        font-size: 0.8rem !important;
        margin-right: 10px !important;
        position: relative !important;
        overflow: hidden !important;
        transition: all 0.3s ease !important;
        flex-shrink: 0 !important;
    }
    
    .banner-item {
        height: 60px;
        border-radius: 6px;
        overflow: hidden;
        box-shadow: none;
        background: transparent;
    }
    
    .banner-item:hover {
        transform: translateY(-1px) scale(1.02);
        box-shadow: none;
    }
    
    .major-site-box {
        padding: 15px;
        min-height: 120px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .category-nav-btn {
        font-size: 12px;
        padding: 6px 12px;
        border-radius: 15px;
        white-space: nowrap;
    }
    
    .header-nav {
        padding: 10px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .category-nav-container {
        gap: 8px;
        padding: 0 15px;
        min-width: max-content;
    }
    
    .category-nav-btn {
        min-width: 65px;
        padding: 8px 12px;
        border-radius: 10px;
    }
    
    .category-nav-icon {
        font-size: 16px;
        margin-bottom: 2px;
    }
    
    .category-nav-text {
        font-size: 10px;
    }
    
    /* Mobile App-like styling */
    .category-card {
        background: white !important;
        border: 1px solid rgba(0, 0, 0, 0.08) !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
        transition: var(--transition) !important;
        overflow: hidden !important;
        height: auto !important;
        margin-bottom: 12px !important;
    }
    
    .category-card:hover {
        transform: none !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06) !important;
    }
    
    /* 카테고리 그리드 모바일 최적화 */
    .category-grid-component .row {
        margin: 0 -6px !important;
    }
    
    .category-grid-component .col-6 {
        padding: 0 6px !important;
        margin-bottom: 12px !important;
    }
    
    .category-card-header {
        background: linear-gradient(135deg, #ff6b35 0%, #ff8c42 100%) !important;
        color: white !important;
        padding: 10px 14px !important;
        border-bottom: none !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }
    
    .category-more-btn {
        background: white !important;
        color: var(--primary-color) !important;
        border: 2px solid white !important;
        padding: 0 !important;
        border-radius: 50% !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        transition: var(--transition) !important;
        text-decoration: none !important;
        white-space: nowrap !important;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        width: 32px !important;
        height: 32px !important;
        flex-shrink: 0 !important;
    }
    
    .category-more-btn:hover {
        background: rgba(255,255,255,0.9) !important;
        color: var(--primary-dark) !important;
        transform: scale(1.05) !important;
        box-shadow: 0 3px 10px rgba(0,0,0,0.3) !important;
    }
    
    .category-card-body {
        padding: 0 !important;
        background: #ffffff;
    }
    
    .category-link {
        border-radius: 12px;
        background: #f8f9fa;
        border: 1px solid #e9ecef;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
        transition: all 0.3s ease;
    }
    
    .category-link:hover {
        background: linear-gradient(135deg, rgba(255, 107, 53, 0.08) 0%, rgba(255, 107, 53, 0.03) 100%);
        border-color: rgba(255,107,53,0.25);
        transform: translateX(4px);
        box-shadow: 0 2px 8px rgba(255, 107, 53, 0.15);
    }
    
    .category-link:active {
        transform: translateX(2px) scale(0.98);
        background: rgba(255, 107, 53, 0.15);
    }
    
    /* Touch feedback */
    .category-link,
    .banner-item,
    .major-site-box,
    .category-nav-btn,
    .major-site-btn {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        cursor: pointer;
    }
}

@media (max-width: 480px) {
    .logo-area img {
        height: 30px;
    }
    
    .header-middle {
        padding: 8px 0;
        min-height: 60px;
    }
    
    .header-component {
        min-height: 95px;
    }
    
    .header-middle .container-fluid {
        padding: 0 10px;
    }
    
    .major-site-btn {
        display: none;
    }
    
    .sns-icon {
        width: 28px;
        height: 28px;
        margin: 0 1px;
    }
    
    .category-card-title {
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        color: white !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }
    
    .category-link {
        padding: 8px 12px !important;
        min-height: 44px !important;
        max-height: 44px !important;
    }
    
    .category-site-name {
        font-size: 0.8rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
    }
    
    .category-rank {
        min-width: 24px !important;
        width: 24px !important;
        height: 24px !important;
        font-size: 0.75rem !important;
        border-radius: 6px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-weight: 700 !important;
        margin-right: 8px !important;
    }
    
    .category-more-btn {
        width: 28px !important;
        height: 28px !important;
        padding: 0 !important;
        font-size: 0.9rem !important;
        border-radius: 50% !important;
        box-shadow: 0 2px 5px rgba(0,0,0,0.25) !important;
    }
    
    .link-badge {
        padding: 4px 8px !important;
        font-size: 0.7rem !important;
        border-radius: 6px !important;
    }
    
    .banner-item {
        height: 50px;
    }
    
    .major-site-box {
        padding: 12px;
    }
    
    .category-nav-btn {
        min-width: 60px;
        padding: 6px 8px;
        border-radius: 8px;
    }
    
    .category-nav-icon {
        font-size: 14px;
        margin-bottom: 1px;
    }
    
    .category-nav-text {
        font-size: 9px;
    }
}

/* Loading Animation */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Touch Feedback */
.category-link,
.banner-item,
.major-site-box,
.category-nav-btn,
.major-site-btn {
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
        color: #e0e0e0;
    }
    
    .category-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    
    .category-link {
        background: #404040;
        border-color: #555;
        color: #e0e0e0;
    }
    
    .category-link:hover {
        color: var(--primary-color);
    }
} 