/* ========================================
   MODERN VIDEO HUB - TELJES RESZPONZIVITÁS
   NON-STICKY HEADER | Minden eszközre optimalizált
   ======================================== */

/* ===== RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* ÚJ EGYEDI SZÍNVILÁG */
    --primary-color: #00d4aa;
    --secondary-color: #0088ff;
    --accent-color: #ff6b35;
    --bg-dark: #0f0f23;
    --bg-card: #1a1a35;
    --bg-darker: #13132a;
    --text-light: #e4e7f0;
    --text-gray: #a0a6b8;
    --text-white: #ffffff;
    --accent-gold: #ffb800;
    --hover-color: #00ffcc;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', 'Roboto', Arial, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== HEADER (NON-STICKY, KOMPAKT) ===== */
header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 6px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    width: 100%;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.logo {
    font-weight: 800;
    font-size: 24px;
    color: var(--text-white);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--text-white);
}

.logo-icon {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

/* Hamburger - alapból rejtve */
.hamburger-menu {
    display: none;
}

/* ===== NAVIGATION - DESKTOP: IKON FENT, SZÖVEG ALUL ===== */
nav {
    flex-shrink: 0;
    flex: 1;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 15px;
    align-items: center;
}

nav ul li {
    position: relative;
}

/* NAV LINKEK - DESKTOP: FÜGGŐLEGES (ikon fent, szöveg alul) */
nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-white);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
}

nav a svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

nav a:hover,
nav a.active {
    color: var(--hover-color);
    background: rgba(0, 212, 170, 0.1);
}

/* Categories dropdown nyíl */
.dropdown-arrow {
    font-size: 9px;
    opacity: 0.8;
    margin-left: 3px;
}

/* ===== CATEGORIES DROPDOWN (DESKTOP) ===== */
.has-dropdown .dropdown-menu {
    position: absolute;
    left: 50%;
    top: 100%;
    transform: translateX(-50%);
    min-width: 600px;
    max-width: 750px;
    background: var(--bg-darker);
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.8);
    padding: 18px 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 900;
    margin-top: 8px;
    border: 2px solid rgba(0, 212, 170, 0.3);
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px 16px;
}

.dropdown-item {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    padding: 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.dropdown-item:hover {
    color: var(--hover-color);
    text-decoration: underline;
}

/* DESKTOP HOVER DROPDOWN */
@media (min-width: 1025px) {
    .has-dropdown:hover .dropdown-menu {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    
    /* Biztonsági pad - láthatatlan híd */
    .has-dropdown::after {
        content: '';
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        height: 15px;
        background: transparent;
        z-index: 899;
    }
}

/* ===== SEARCH BOX ===== */
.search-box {
    display: flex;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    overflow: hidden;
    flex: 1;
    max-width: 400px;
    min-width: 200px;
}

.search-box form {
    display: flex;
    width: 100%;
}

.search-box input[type="text"] {
    flex: 1;
    padding: 10px 18px;
    border: none;
    background-color: rgba(255, 255, 255, 0.95);
    color: #333;
    font-size: 14px;
    width: 100%;
}

.search-box input[type="text"]::placeholder {
    color: #999;
}

.search-box input[type="text"]:focus {
    outline: none;
    background-color: #fff;
}

.search-box button {
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.25);
    border: none;
    padding: 0 18px;
    color: var(--text-white);
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: rgba(0, 0, 0, 0.45);
}

.search-box button svg {
    width: 18px;
    height: 18px;
}

/* ===== SEO TEXT SECTION ===== */
.seo-section {
    margin: 35px 0;
    padding: 30px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    overflow-wrap: break-word;
}

.seo-section h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    word-wrap: break-word;
}

.seo-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-white);
    margin: 25px 0 15px 0;
    word-wrap: break-word;
}

.seo-section p {
    color: var(--text-light);
    font-size: 16px;
    margin-bottom: 18px;
    line-height: 1.7;
    word-wrap: break-word;
}

.seo-section a {
    color: var(--primary-color);
    text-decoration: underline;
    font-weight: 600;
    transition: color 0.3s ease;
}

.seo-section a:hover {
    color: var(--hover-color);
    text-decoration: none;
}

/* ===== PAGE HEADER ===== */
.page-header {
    margin: 20px 0 10px 0;
    width: 100%;
}

.page-header h1,
.page-header h2 {
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.page-header h2 {
    font-size: 30px;
}

/* ===== FILTER BAR ===== */
.filter-bar {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
}

.filter-bar select,
.month-selector select {
    background: var(--bg-card);
    color: var(--text-white);
    border: 2px solid transparent;
    padding: 11px 22px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
}

.filter-bar select:hover,
.month-selector select:hover {
    border-color: var(--primary-color);
    background: var(--bg-darker);
}

.month-selector {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.month-selector label {
    font-weight: 600;
    color: var(--text-gray);
    white-space: nowrap;
}

.total-count {
    margin: 10px 0 18px 0;
    color: var(--text-gray);
    font-size: 15px;
    font-weight: 500;
    width: 100%;
}

/* ===== VIDEO GRID ===== */
.video-grid,
.channel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 22px;
    margin-bottom: 35px;
    width: 100%;
}

@media (min-width: 1280px) {
    .video-grid,
    .channel-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== VIDEO CARD ===== */
.video-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 212, 170, 0.4);
}

.video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-darker);
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.video-card:hover .video-thumb img {
    transform: scale(1.08);
}

.video-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.video-card:hover .video-overlay {
    opacity: 1;
}

.duration,
.quality {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    padding: 5px 11px;
    border-radius: 5px;
    font-size: 12px;
    color: var(--text-white);
    font-weight: 700;
    z-index: 10;
    white-space: nowrap;
}

.duration {
    bottom: 10px;
    right: 10px;
}

.quality {
    top: 10px;
    left: 10px;
    background: var(--accent-color);
}

.video-info {
    padding: 15px 17px;
    width: 100%;
}

.video-info h3 {
    font-size: 15px;
    color: var(--text-white);
    font-weight: 700;
    margin-bottom: 9px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
}

.video-meta {
    font-size: 13px;
    color: var(--text-gray);
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.separator {
    color: #555;
    font-weight: 700;
}

.rating {
    color: var(--accent-gold);
    font-weight: 700;
    white-space: nowrap;
}

.channel {
    color: var(--primary-color);
    font-weight: 600;
}

/* ===== CHANNEL CARD ===== */
.channel-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.channel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 136, 255, 0.4);
}

.channel-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-darker);
    overflow: hidden;
}

.channel-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.channel-card:hover .channel-thumb img {
    transform: scale(1.08);
}

.channel-overlay {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: var(--text-white);
    font-weight: 700;
    padding: 7px 15px;
    border-radius: 22px;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    white-space: nowrap;
}

.channel-info {
    padding: 5px 17px;
    text-align: center;
    width: 100%;
}

.channel-details h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 5px;
    word-wrap: break-word;
}

.channel-details .subscribers {
    font-size: 13px;
    color: var(--text-gray);
}

/* ===== POPULAR SEARCHES (PILLS) ===== */
.popular-searches-section,
.recent-searches-section {
    margin: 40px 0;
    width: 100%;
}

.search-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.search-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--text-white);
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-transform: capitalize;
    box-shadow: 0 4px 14px rgba(0, 136, 255, 0.3);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    white-space: nowrap;
}

.search-pill:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.5);
    transform: translateY(-3px) scale(1.05);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ===== A-Z CATEGORIES SECTION ===== */
.az-categories-section {
    padding: 10px;
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    overflow-x: hidden;
}

.az-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
    width: 100%;
}

.az-column {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.az-item {
    padding: 0;
    min-width: 0;
}

.az-link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 2px 12px;
    color: var(--text-light);
    transition: all 0.3s ease;
    border-radius: 6px;
    background: transparent;
    min-width: 0;
}

.az-link:hover {
    background: var(--bg-darker);
    color: var(--text-white);
    transform: translateX(5px);
}

.az-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.az-count {
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 500;
    flex-shrink: 0;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 45px 0;
    width: 100%;
}

.page-link {
    padding: 13px 19px;
    background: var(--bg-card);
    border-radius: 9px;
    color: var(--text-light);
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.page-link:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
    transform: translateY(-3px);
}

.page-link.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--text-white);
}

.prev-next {
    background: var(--bg-darker);
}

.dots {
    pointer-events: none;
    background: transparent;
    box-shadow: none;
}

/* ===== FOOTER ===== */
footer {
    background: var(--bg-darker);
    padding: 45px 0 0 0;
    margin-top: 70px;
    border-top: 3px solid var(--primary-color);
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 35px;
    margin-bottom: 35px;
    width: 100%;
}

.footer-section h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 18px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 11px;
}

.footer-section ul li a {
    color: var(--text-gray);
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: var(--primary-color);
}

/* ===== FOOTER LEGAL ===== */
.footer-legal {
    background: rgba(0, 0, 0, 0.35);
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
}

.footer-legal-content {
    display: flex;
    flex-direction: column;
    gap: 22px;
    align-items: center;
    width: 100%;
}

.footer-legal-links {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.footer-legal-links a {
    color: var(--text-gray);
    font-size: 13px;
    font-weight: 600;
    padding: 9px 17px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 7px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.footer-legal-links a:hover {
    background: rgba(0, 212, 170, 0.2);
    color: var(--primary-color);
}

.footer-legal-text {
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    line-height: 1.7;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
    word-wrap: break-word;
}

.copyright {
    text-align: center;
    color: var(--text-gray);
    font-size: 13px;
    margin-top: 18px;
}

/* ===== VIDEO PAGE SPECIFIKUS SZABÁLYOK - JAVÍTOTT ===== */
.video-page {
    display: block !important;
    padding-top: 30px;
}

.video-content-wrapper {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    margin-bottom: 30px;
    width: 100%;
}

.video-main {
    flex: 1;
    min-width: 0;
}

.video-player {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
    margin-bottom: 25px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.video-player iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

.video-sidebar {
    width: 300px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 30px;
}

.sidebar-banner {
    width: 300px;
    height: 250px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-details h1 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 15px;
    line-height: 1.3;
    word-wrap: break-word;
}

.video-description {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    width: 100%;
}

.video-description h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 12px;
}

.video-description p {
    color: var(--text-gray);
    line-height: 1.7;
    margin-bottom: 15px;
    word-wrap: break-word;
}

.tags {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.tag {
    padding: 6px 14px;
    background: var(--bg-darker);
    border-radius: 20px;
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tag:hover {
    background: var(--primary-color);
    color: var(--text-white);
}

.video-meta-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.video-meta-info p {
    margin-bottom: 8px;
    font-size: 14px;
}

.video-meta-info strong {
    color: var(--primary-color);
}

/* ===== RELATED VIDEOS - JAVÍTOTT VERZIÓ ===== */
.related-videos {
    width: 100% !important;
    margin-top: 30px;
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 18px !important;
    margin-bottom: 25px;
}

.related-videos > h3 {
    font-size: 32px !important;
    font-weight: 800 !important;
    color: var(--text-white);
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color)) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    word-wrap: break-word;
    text-align: left;
    grid-column: 1 / -1;
}

@media (min-width: 1280px) {
    .related-videos {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

.related-videos .video-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 22px rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.related-videos .video-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0, 212, 170, 0.4);
}

.related-videos .video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--bg-darker);
    overflow: hidden;
}

.related-videos .video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.related-videos .video-card:hover .video-thumb img {
    transform: scale(1.08);
}

.related-videos .duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.85);
    padding: 5px 11px;
    border-radius: 5px;
    font-size: 12px;
    color: var(--text-white);
    font-weight: 700;
    z-index: 10;
    white-space: nowrap;
}

.related-videos .video-info {
    padding: 15px 17px;
    width: 100%;
}

.related-videos .video-info h3 {
    font-size: 15px !important;
    color: var(--text-white) !important;
    font-weight: 700 !important;
    margin-bottom: 9px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    background: none !important;
    -webkit-background-clip: initial !important;
    -webkit-text-fill-color: initial !important;
    background-clip: initial !important;
    text-align: left;
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border: none;
    border-radius: 50%;
    color: var(--text-white);
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(0, 212, 170, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    box-shadow: 0 8px 25px rgba(0, 136, 255, 0.6);
    transform: scale(1.1) translateY(-3px);
}

.scroll-to-top svg {
    width: 24px;
    height: 24px;
}

/* ========================================
   RESPONSIVE - TABLET & MOBILE
   ======================================== */

/* ===== TABLET (≤1024px) - HAMBURGER MENU ===== */
@media (max-width: 1024px) {
    /* Hamburger megjelenik */
    .hamburger-menu {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1100;
        padding: 8px;
    }

    .hamburger-menu span {
        display: block;
        width: 26px;
        height: 3px;
        background: var(--text-white);
        border-radius: 3px;
        transition: all 0.3s ease;
    }

    .hamburger-menu.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }

    .hamburger-menu.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger-menu.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    /* Header layout átrendezés */
    header .container {
        display: grid;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto;
        gap: 15px;
        align-items: center;
    }

    .hamburger-menu {
        grid-column: 1;
        grid-row: 1;
    }

    .logo {
        grid-column: 2;
        grid-row: 1;
        justify-self: center;
        text-align: center;
        font-size: 24px;
    }

    .logo-icon {
        width: 28px;
        height: 28px;
        margin-right: 8px;
    }

    .search-box {
        grid-column: 1 / -1;
        grid-row: 2;
        width: 100%;
        max-width: 100%;
    }

    /* NAV - slide-in balról */
    nav {
        position: fixed;
        left: -300px;
        top: 0;
        width: 300px;
        height: 100vh;
        background: var(--bg-darker);
        padding: 70px 0 20px 0;
        transition: left 0.3s ease;
        z-index: 1050;
        overflow-y: auto;
        box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
        justify-content: flex-start;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }

    nav ul li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* NAV linkek MOBILE: vízszintes (ikon balra, szöveg mellette) */
    nav a {
        flex-direction: row;
        justify-content: flex-start;
        padding: 16px 24px;
        gap: 12px;
        font-size: 15px;
        border-radius: 0;
    }

    nav a svg {
        width: 24px;
        height: 24px;
    }

    nav a:hover,
    nav a.active {
        background: rgba(0, 212, 170, 0.12);
    }

    /* CATEGORIES accordion mobile */
    .has-dropdown .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        background: transparent;
        box-shadow: none;
        padding: 0 0 8px 60px;
        display: none;
    }

    .has-dropdown.open .dropdown-menu {
        display: block;
        opacity: 1;
        visibility: visible;
    }

    .dropdown-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4px 10px;
    }

    .dropdown-item {
        font-size: 13px;
        padding: 3px 0;
    }

    .dropdown-arrow {
        transition: transform 0.2s ease;
    }

    .has-dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Menu Overlay */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.75);
        z-index: 1000;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    .video-grid,
    .channel-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px;
    }

    .az-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }

    .search-box {
        max-width: 100%;
    }

    .video-page {
        padding-top: 20px;
    }

    .video-content-wrapper {
        flex-direction: column;
    }

    .video-sidebar {
        width: 100%;
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar-banner {
        width: 300px;
        height: 250px;
    }

    .related-videos {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 20px !important;
    }

    .related-videos > h3 {
        font-size: 28px !important;
    }
}

/* ===== TABLET KICSI / MOBILE NAGY (≤768px) ===== */
@media (max-width: 768px) {
    header {
        padding: 10px 0;
    }

    .logo {
        font-size: 24px;
    }

    .page-header h1 {
        font-size: 22px;
    }

    .page-header h2 {
        font-size: 24px;
    }

    .video-grid,
    .channel-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px;
    }

    .az-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 12px;
    }

    .az-categories-section {
        padding: 20px;
    }

    .seo-section {
        padding: 20px;
    }

    .seo-section h2 {
        font-size: 22px;
    }

    .seo-section h3 {
        font-size: 18px;
    }

    .seo-section p {
        font-size: 15px;
    }

    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-bar select,
    .month-selector select {
        width: 100%;
        min-width: 0;
    }

    .month-selector {
        width: 100%;
    }

    .video-page {
        padding-top: 15px;
    }

    .video-details h1 {
        font-size: 22px;
    }

    .video-description {
        padding: 16px;
    }

    .related-videos {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }

    .related-videos > h3 {
        font-size: 24px !important;
    }

    .scroll-to-top {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .scroll-to-top svg {
        width: 20px;
        height: 20px;
    }

    nav {
        width: 280px;
        left: -280px;
    }
}

/* ===== MOBILE KICSI (≤480px) ===== */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .video-grid,
    .channel-grid {
        grid-template-columns: 1fr !important;
    }

    .logo {
        font-size: 20px;
    }

    .logo-icon {
        width: 24px;
        height: 24px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .page-header h2 {
        font-size: 20px;
    }

    .duration,
    .quality {
        padding: 4px 8px;
        font-size: 11px;
    }

    .az-categories-grid {
        grid-template-columns: 1fr;
    }

    .search-pills {
        gap: 8px;
    }

    .search-pill {
        padding: 8px 16px;
        font-size: 13px;
    }

    .pagination {
        gap: 6px;
    }

    .page-link {
        padding: 10px 14px;
        font-size: 13px;
    }

    .footer-legal-links {
        gap: 10px;
    }

    .footer-legal-links a {
        font-size: 12px;
        padding: 8px 14px;
    }

    .footer-legal-text {
        font-size: 12px;
    }

    .video-page {
        padding-top: 10px;
    }

    .related-videos {
        grid-template-columns: 1fr !important;
    }

    .related-videos > h3 {
        font-size: 22px !important;
    }

    .video-details h1 {
        font-size: 20px;
    }

    .related-videos .duration {
        padding: 4px 8px;
        font-size: 11px;
    }

    .hamburger-menu span {
        width: 24px;
    }

    nav {
        width: 260px;
        left: -260px;
    }

    .scroll-to-top {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
    }

    .scroll-to-top svg {
        width: 18px;
        height: 18px;
    }

    .video-sidebar {
        flex-direction: column;
        align-items: center;
    }

    .sidebar-banner {
        width: 100%;
        max-width: 300px;
    }
}

/* ===== EXTRA SMALL DEVICES (≤360px) ===== */
@media (max-width: 360px) {
    .logo {
        font-size: 16px;
    }

    .logo-icon {
        font-size: 20px;
    }

    .page-header h1 {
        font-size: 20px;
    }

    .page-header h2 {
        font-size: 18px;
    }

    .seo-section h2 {
        font-size: 20px;
    }

    .seo-section h3 {
        font-size: 16px;
    }

    .seo-section p {
        font-size: 14px;
    }
}
