/* ======================================================
   SZÍN KONSTANSOK (VÁLTOZÓK)
====================================================== */
:root {
    --primary-color: #c20429;       /* Fő piros */
    --primary-hover: #e3123b;      /* Sötétebb piros hoverhez */
    --secondary-color: ;     /* Pasztell szín (zöld helyett) */
    --header-bg: #222222;          /* Sötét header/footer háttér */
    --body-bg: #D6D6D6;            /* Oldal háttér */
    --text-color: #222222;         /* Általános szövegszín */
    --white: #ffffff;              /* Tiszta fehér */
    --soft-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.04), 0 2px 6px rgba(0, 0, 0, 0.04);
    --card-shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.06);
}

/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
}

main {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

/* TYPOGRAPHY */
body {
    font-family: 'Merriweather', serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--body-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1, h2, h3, h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
}

h1 { font-size: 36px; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
p { font-weight: 300; }

/* LAYOUT */
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
}

.site-main {
    padding: 40px 0;
}

/* HEADER */
.site-header {
    background: var(--header-bg);
    padding: 10px 0;
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.header-search {
    flex: 0 0 auto;
    margin: 0 20px;
    position: relative;
}

.header-search .search-form {
    display: flex;
    border: none;
    border-radius: 30px; 
    background: var(--white);
    position: relative;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-search:focus-within .search-form {
    box-shadow: var(--soft-shadow);
    transform: translateY(-1px);
}

.header-search input {
    border: none;
    padding: 12px 5px 12px 25px;
    outline: none;
    width: 450px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 0.3px;
    background: transparent;
    color: var(--text-color);
}

.header-search button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0 20px;
    margin: 4px;
    border-radius: 25px;
    cursor: pointer;
    transition: background 0.3s;
}

.header-search button:hover {
    background: var(--primary-hover);
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--white);
    border-radius: 18px;
    border: none;
    box-shadow: var(--soft-shadow);
    z-index: 1000;
    display: none;
    max-height: 380px;
    overflow-y: auto;
    padding: 10px 0;
}

.search-dropdown a {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: var(--text-color);
    display: block;
    padding: 14px 25px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.search-dropdown a:last-child {
    border-bottom: none;
    border-radius: 0 0 20px 20px;
}

.search-dropdown a:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding-left: 30px;
}

.search-dropdown .no-res {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    padding: 15px 25px;
    color: #888;
}

.main-nav {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: var(--white);
    font-size: 18px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* HERO */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.6, 0.2, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    text-align: center;
    padding: 80px 20px 50px;
}

.hero h1 {
    margin-bottom: 10px;
    animation: fadeInDown 1s ease forwards;
}

.hero p {
    max-width: 600px;
    margin: 0 auto;
    opacity: 0;
    animation: fadeInUp 1s ease forwards 0.3s;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.subscribe-section {
    text-align: center;
    margin-top: 25px;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

@keyframes pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(194, 4, 41, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(194, 4, 41, 0); }
    100% { box-shadow: 0 0 0 0 rgba(194, 4, 41, 0); }
}
.subscribe-btn {
    animation: pulse-red 2s infinite;
}

.subscribe-btn i {
    font-size: 18px;
}

.subscribe-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.section-header {
    padding: 50px 0px;
}

.category-header {
    padding: 100px 0px;
}

.search-header {
    padding: 50px 0px;
}

.section-subtitle {
    padding-bottom: 50px;
}

.sub-categories-section {
    text-align: center;
}

.center-btn {
    text-align: center;
    padding: 50px 0px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: var(--text-color) !important;
    border: 2px solid #dee2e6;
    
    padding: 16px 35px;
    border-radius: 50px;
    text-decoration: none !important;
    
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
    
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.btn-secondary i {
    transition: transform 0.3s ease;
    font-size: 14px;
}

.btn-secondary:hover {
    background: var(--white);
    transform: scale(1.05);
    box-shadow: 0 12px 20px rgba(0,0,0,0.1);
}

.btn-secondary:hover i {
    transform: translateX(5px);
}

.btn-secondary:active {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
}

.btn-secondary:visited {
    color: var(--text-color) !important;
}

.back-navigation {
    padding: 50px 0px;
}

/* Kisebb padding, hogy ne legyen olyan bumszli, mint a főoldali gomb */
.back-btn {
    padding: 10px 20px !important;
    font-size: 13px !important;
    gap: 8px !important;
}

/* Hovernél az ikon BALRA mozduljon, ne jobbra */
.back-btn:hover i {
    transform: translateX(-5px) !important;
}

/* VIDEÓK */
.latest-videos {
    text-align: center;
}

.categories-archive {
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.video-grid.single-result {
    display: flex;
    justify-content: center;
    grid-template-columns: none;
    padding-bottom: 50px;
}

.video-grid.single-result .video-item {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
}

.category-tag {
    display: block;
    margin-bottom: 8px;
}

.category-tag a {
    display: inline-block;
    color: #888888 !important;
    font-family: 'Raleway', sans-serif;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    text-decoration: none; 
    letter-spacing: 1.2px;
    transition: color 0.3s ease;
}

.category-tag a:hover {
    color: #333333 !important;
    background: none !important;
    transform: none;
}

/* Egy kis elválasztó vonal a dátum és a kategória közé, ha szükséges */
.video-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ======================================================
   LEBEGŐ "VISSZA A TETEJÉRE" GOMB
====================================================== */
#backToTop {
    display: none; /* Alapból rejtve, a JS jeleníti meg */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    background-color: var(--primary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

#backToTop:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: var(--primary-hover);
}

/* ======================================================
   ALSÓ NAVIGÁCIÓS GOMB
====================================================== */
.bottom-nav {
    margin-top: 60px;
    padding: 40px 0;
    border-top: 1px solid #eee;
    text-align: center; /* Az oldal alján középre igazítva jobban néz ki */
}

.bottom-nav .back-btn {
    padding: 15px 35px !important; /* Itt lehet kicsit nagyobb, mint fent */
}

/* FOOTER */
.site-footer {
    background: var(--header-bg);
    color: var(--white);
    text-align: center;
    padding: 40px 0 20px;
    font-size: 14px;
}

.site-footer p {
    margin-top: 10px;
    font-size: 14px;
    color: var(--body-bg);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.social-icons a {
    width: 42px;
    height: 42px;
    background: #444;
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s;
}

.social-icons a:hover {
    transform: scale(1.1);
}

.social-icons a:nth-child(1) {
    background: #1877f2;
}

.social-icons a:nth-child(2) {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icons a:nth-child(3) {
    background: var(--primary-color);
}

/* MOBILE */
@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .logo, .header-search, .main-nav {
        flex: none;
        justify-content: center;
        width: 100%;
    }

    .header-search input {
        width: 100%;
    }

    .logo img {
        height: 50px;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .hero {
        padding: 40px 15px;
    }

    .hero h1 {
        font-size: 26px;
    }

    .hero p {
        font-size: 16px;
    }
    
    .latest-videos {
        padding: 50px 15px 30px;
    }

    .video-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .video {
        position: relative;
        padding-bottom: 56.25%;
        height: 0;
    }

    .video iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* TABLET */
@media (min-width: 769px) and (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo img {
        height: 55px;
    }

    .hero h1 {
        font-size: 30px;
    }
}

/* LARGE SCREENS */
@media (min-width: 1200px) {
    .hero h1 {
        font-size: 40px;
    }
}

/* CATEGORIES */

/* Kategória Navigáció (Automatikus lista stílusa) */
.category-nav {
    margin: -20px 0 40px;
    text-align: center;
}

.category-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 0;
}

.category-nav li a {
    display: inline-block;
    padding: 10px 20px;
    background: var(--white);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    font-size: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* Az aktuális kategória gombja piros lesz */
/* ======================================================
   KATEGÓRIÁK GYŰJTŐ OLDAL (Grid)
====================================================== */

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    padding: 0px 0px 100px 0px;
}

.category-card {
    background: var(--white);
    text-decoration: none;
    border-radius: 20px;
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.category-card i {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.category-card h2 {
    color: var(--text-color);
    font-size: 24px;
    margin-bottom: 10px;
}

.category-card p {
    color: #888;
    font-size: 16px;
    margin-bottom: 20px;
}

.btn-minimal {
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Hover effekt a kártyákon */
.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--card-shadow-hover);
    border-color: var(--primary-color);
}

.category-card:hover h2 {
    color: var(--primary-color);
}

/* ======================================================
   KATEGÓRIA ARCHÍVUM STÍLUS
====================================================== */

.category-archive-page {
    padding-bottom: 80px;
}

.category-hero {
    text-align: center;
    padding: 80px 20px 80px;
    background: var(--white);
    border-radius: 0 0 40px 40px;
    box-shadow: var(--card-shadow);
}

.category-badge {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 15px;
    letter-spacing: 1px;
}

.category-hero h1 {
    font-size: 48px;
    color: var(--text-color);
    margin: 0 0 15px;
}

.category-desc {
    max-width: 600px;
    margin: 0 auto 20px;
    color: #666;
    font-size: 18px;
}

.stats-bar {
    font-family: 'Raleway', sans-serif;
    color: #999;
    font-size: 14px;
}

/* Ha nincs tartalom */
.no-content {
    grid-column: 1 / -1;
    padding: 100px 0;
    text-align: center;
}