/* YouTube Style - Dark Mode */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --yt-bg: #000000;
    --yt-card-bg: #1a1a1a;
    --yt-hover-bg: #2b2b2b;
    --yt-text: #ffffff;
    --yt-text-secondary: #b3b3b3;
    --yt-border: #333333;
    --yt-blue: #ff9000;
    --yt-orange: #ffa31a;
    --header-height: 56px;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--yt-bg);
    color: var(--yt-text);
    line-height: 1.6;
    font-size: 15px;
    font-weight: 400;
}

/* Header - YouTube Style */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    background-color: var(--yt-bg);
    border-bottom: 1px solid var(--yt-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 24px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 4px;
}

.logo-link {
    text-decoration: none;
}

.logo-text {
    font-family: 'Black Han Sans', sans-serif;
    font-size: 22px;
    font-weight: 500;
    color: var(--yt-text);
    letter-spacing: -0.8px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Header Navigation */
.header-nav {
    display: flex;
    gap: 12px;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 8px;
    border-radius: 12px;
    border: 1px solid var(--yt-border);
}

.nav-link {
    font-family: 'Noto Sans KR', sans-serif;
    color: var(--yt-text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.2s;
    white-space: nowrap;
}

.nav-link:hover {
    background-color: var(--yt-hover-bg);
    border-color: var(--yt-blue);
}

.nav-link.active {
    background-color: var(--yt-blue);
    color: #fff;
    border-color: var(--yt-blue);
    box-shadow: 0 0 10px rgba(62, 166, 255, 0.3);
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 8px;
}

/* Search */
.search-container {
    flex: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 40px;
}

.search-input {
    width: 100%;
    height: 40px;
    background-color: #121212;
    border: 1px solid var(--yt-border);
    border-radius: 40px;
    padding: 0 16px;
    color: var(--yt-text);
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: var(--yt-blue);
}

.search-input::placeholder {
    color: var(--yt-text-secondary);
}

/* Main Content */
.main {
    margin-top: var(--header-height);
    padding: 24px 16px;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 24px;
    margin-bottom: 48px;
    background: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
    border-radius: 20px;
    border: 4px solid #ff9000;
    box-shadow: 0 15px 50px rgba(255, 163, 26, 0.4),
                0 5px 15px rgba(0, 0, 0, 0.8),
                inset 0 2px 0 rgba(255, 163, 26, 0.3),
                inset 0 -2px 0 rgba(0, 0, 0, 0.5);
    position: relative;
    transform: translateZ(0);
}

.hero-title {
    font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif;
    font-size: 56px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFA31A 0%, #F7971E 50%, #FFB84D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 24px;
    line-height: 1.2;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 20px rgba(255, 163, 26, 0.6));
    letter-spacing: -1px;
}

.hero-subtitle {
    font-family: 'Noto Sans KR', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #fff;
    line-height: 1.6;
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.9);
}

/* Section Title */
.section-title {
    font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif;
    font-size: 40px;
    font-weight: 900;
    background: linear-gradient(135deg, #FFA31A 0%, #F7971E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 5px solid #FFA31A;
    position: relative;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.9))
            drop-shadow(0 0 15px rgba(255, 163, 26, 0.5));
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #FFB84D 0%, transparent 100%);
}

/* Links Grid - YouTube Video Grid Style */
.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

@media (max-width: 768px) {
    .links-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

/* Link Item - YouTube Video Card Style */
.link-item {
    background: linear-gradient(145deg, #1a1a1a 0%, #0d0d0d 100%);
    border-radius: 12px;
    padding: 18px;
    border: 2px solid #333;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6),
                0 2px 4px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
    position: relative;
}

.link-item:hover {
    transform: translateY(-6px) scale(1.02);
    background: linear-gradient(145deg, #2b2b2b 0%, #1a1a1a 100%);
    border-color: #ff9000;
    box-shadow: 0 8px 24px rgba(255, 144, 0, 0.4),
                0 4px 12px rgba(0, 0, 0, 0.8),
                0 0 0 3px rgba(255, 163, 26, 0.3),
                inset 0 1px 0 rgba(255, 163, 26, 0.15);
}

.link-item:hover .link-item-title a {
    color: var(--yt-blue);
}

/* Link Title */
.link-item-title {
    margin-bottom: 8px;
}

.link-item-title a {
    font-family: 'Black Han Sans', 'Noto Sans KR', sans-serif;
    color: var(--yt-text);
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Link Description */
.link-item-desc {
    color: var(--yt-text-secondary);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    opacity: 0.9;
}

/* Category Menu - YouTube Chips Style */
.category-menu {
    position: sticky;
    top: var(--header-height);
    z-index: 50;
    background-color: var(--yt-bg);
    border-bottom: 1px solid var(--yt-border);
    padding: 12px 0;
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-menu::-webkit-scrollbar {
    display: none;
}

.category-list {
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 0 16px;
    flex-wrap: nowrap;
}

.category-list-item {
    flex-shrink: 0;
}

.category-list-link {
    font-family: 'Noto Sans KR', sans-serif;
    display: block;
    padding: 12px 20px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0d0d0d 100%);
    color: var(--yt-text);
    border-radius: 24px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
    border: 2px solid #333;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.category-list-link:hover {
    background: linear-gradient(135deg, #2b2b2b 0%, #1a1a1a 100%);
    border-color: #ff9000;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 12px rgba(255, 144, 0, 0.5),
                0 3px 6px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 163, 26, 0.15);
}

.category-list-link.active {
    background: linear-gradient(135deg, #ffa31a 0%, #ff9000 100%);
    color: #000;
    border-color: #ffb84d;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(255, 144, 0, 0.7),
                0 3px 8px rgba(255, 163, 26, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3),
                inset 0 -1px 0 rgba(0, 0, 0, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.category-count {
    margin-left: 6px;
    padding: 2px 8px;
    background-color: rgba(255, 144, 0, 0.2);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    color: var(--yt-blue);
}

/* Mobile Menu */
.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    margin-right: 16px;
}

.burger-bar {
    width: 24px;
    height: 2px;
    background-color: var(--yt-text);
    transition: 0.3s;
}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    .search-container {
        padding: 0 16px;
    }
}

/* Footer */
.footer {
    background-color: var(--yt-bg);
    border-top: 1px solid var(--yt-border);
    padding: 24px 16px;
    margin-top: 48px;
    text-align: center;
    color: var(--yt-text-secondary);
    font-size: 13px;
}

.footer p {
    margin: 8px 0;
}

.footer-desc {
    color: var(--yt-text-secondary);
    font-size: 12px;
}

/* Top Bar */
.top-bar {
    display: none;
}

/* Hide old elements */
.header-mob,
.header-desk,
.quotes,
.socials,
.lang-menu,
.search-close {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .header {
        gap: 8px;
    }

    .header-nav {
        gap: 8px;
        padding: 6px;
    }

    .nav-link {
        font-size: 12px;
        padding: 8px 12px;
    }

    .search-container {
        padding: 0 8px;
    }

    .logo-text {
        font-size: 16px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .main {
        padding: 16px 8px;
    }

    .links-grid {
        gap: 12px;
        grid-template-columns: 1fr;
    }

    .link-item {
        padding: 12px;
    }

    .link-item-title a {
        font-size: 15px;
        font-weight: 700;
    }

    .link-item-desc {
        font-size: 12px;
    }

    .header-nav {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
    }

    .header {
        flex-wrap: wrap;
    }

    .search-container {
        flex: 1 1 100%;
        max-width: 100%;
        order: 3;
        margin-top: 8px;
    }

    .hero-title {
        font-size: 24px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .section-title {
        font-size: 18px;
    }
}
