﻿
:root {
    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #17202a;
    --muted: #7b8794;
    --line: #e7ebef;
    --accent: #1769ff;
    --accent-soft: #edf4ff;
    --dark: #111827;
    --dark2: #182235;
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
}


/* =========================================================
   TOP HEADER
========================================================= */

.header {
    background: var(--dark);
    color: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}

.header-inner {
    max-width: 1240px;
    margin: auto;
    padding: 0 24px;

    height: 68px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* LOGO */

.logo {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.6px;
    text-decoration: none;
    color: white;
}

.logo span {
    color: #63a0ff;
}


/* MAIN NAV */

.main-nav {
    display: flex;
    height: 100%;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-button {
    height: 100%;

    display: flex;
    align-items: center;

    padding: 0 17px;

    color: #cbd5e1;
    text-decoration: none;

    font-size: 14px;
    font-weight: 600;

    border-bottom: 2px solid transparent;
}

.nav-button:hover,
.nav-item.active .nav-button {
    color: white;
    border-bottom-color: #4f8cff;
}

.nav-arrow {
    margin-left: 7px;
    font-size: 10px;
    opacity: .6;
}







/* FOLDER CONTENT */

.folder-content {
    display: none;

    padding:
        3px 0 8px 27px;
}

.mega-folder.open .folder-content {
    display: block;
}

.mega-folder.open .folder-arrow {
    transform: rotate(0deg);
}

.folder-content a {
    display: block;

    padding: 5px 9px;

    border-radius: 6px;

    color: #667381;

    font-size: 11px;

    text-decoration: none;
}

.folder-content a:hover {
    color: #1769ff;
    background: #f5f8fc;
}

.folder-content a.current-brand {
    color: #1769ff;

    background: #edf4ff;

    font-weight: 700;
}


/* SIMPLE LINKS */

.simple-menu-link {
    display: flex;

    justify-content: space-between;

    padding: 10px;

    border-radius: 8px;

    text-decoration: none;

    color: #344150;

    font-size: 13px;
}

.simple-menu-link:hover {
    background: #f1f6ff;
    color: #1769ff;
}

.simple-menu-link small {
    color: #a0aab5;
}

/* =========================================================
   MEGA MENU
========================================================= */

.mega-menu {
    position: absolute;

    top: 68px;
    left: 50%;

    transform: translateX(-50%) translateY(8px);

    width: 760px;

    background: white;

    border: 1px solid var(--line);
    border-radius: 0 0 16px 16px;

    box-shadow: 0 18px 45px rgba(0,0,0,.18);

    padding: 22px;

    opacity: 0;
    visibility: hidden;

    transition: .18s ease;
}

.nav-item:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}


/* MEGA HEADER */

.mega-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1.3px;
    color: var(--muted);
    font-weight: 700;

    margin-bottom: 14px;
}


/* COLUMNS */

.mega-columns {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
}

.mega-column {
    border-right: 1px solid var(--line);
    padding-right: 20px;
}

.mega-column:last-child {
    border-right: 0;
}


/* MEGA LINK */

.mega-link {
    display: block;

    padding: 9px 11px;

    border-radius: 8px;

    text-decoration: none;
    color: #344150;

    font-size: 13px;
}

.mega-link:hover {
    background: var(--accent-soft);
    color: var(--accent);
}

.mega-link strong {
    display: block;
    font-size: 13px;
}

.mega-link span {
    display: block;
    margin-top: 2px;

    font-size: 11px;
    color: var(--muted);
}


/* =========================================================
   HERO
========================================================= */

.hero {
    background:
        linear-gradient(135deg, #111827, #1d4ed8);

    color: white;
}

.hero-inner {
    max-width: 1240px;
    margin: auto;

    padding: 55px 24px 65px;
}

.hero-label {
    text-transform: uppercase;
    letter-spacing: 2px;

    font-size: 12px;

    opacity: .7;

    margin-bottom: 12px;
}

.hero h1 {
    font-size: clamp(32px, 5vw, 52px);

    line-height: 1.05;

    margin: 0 0 16px;

    letter-spacing: -1.5px;
}

.hero p {
    max-width: 680px;

    color: #dbeafe;

    font-size: 17px;
    line-height: 1.6;

    margin: 0 0 30px;
}


/* SEARCH */

.search {
    max-width: 680px;

    position: relative;
}

.search input {
    width: 100%;

    border: 0;
    outline: 0;

    border-radius: 12px;

    padding: 17px 20px 17px 50px;

    font-size: 15px;

    box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

.search-icon {
    position: absolute;

    left: 18px;
    top: 50%;

    transform: translateY(-50%);

    font-size: 18px;

    color: #64748b;
}


/* =========================================================
   MAIN
========================================================= */

.container {
    max-width: 1240px;

    margin: auto;

    padding: 35px 24px 70px;
}


/* =========================================================
   CURRENT PATH
========================================================= */

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 25px;

    font-size: 12px;

    color: var(--muted);
}

.breadcrumb a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb .current {
    color: var(--text);
    font-weight: 600;
}

.breadcrumb .separator {
    opacity: .5;
}


/* =========================================================
   CATEGORY BAR
========================================================= */

.category-bar {
    display: flex;

    gap: 9px;

    overflow-x: auto;

    padding-bottom: 10px;

    margin-bottom: 32px;
}

.category {
    flex: 0 0 auto;

    padding: 9px 15px;

    border: 1px solid var(--line);

    background: white;

    border-radius: 999px;

    color: #536170;

    font-size: 13px;

    text-decoration: none;
}

.category.active,
.category:hover {
    background: var(--accent);

    color: white;

    border-color: var(--accent);
}


/* =========================================================
   SECTION TITLE
========================================================= */

.section-title {
    font-size: 13px;

    font-weight: 700;

    color: var(--muted);

    text-transform: uppercase;

    letter-spacing: 1.2px;

    margin-bottom: 14px;
}


/* =========================================================
   MANUFACTURER GRID
========================================================= */

.brand-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;

    margin-bottom: 55px;
}


/* BRAND CARD */
/*
.brand-card {

    background: var(--card);

    border: 1px solid var(--line);

    border-radius: var(--radius);

    overflow: hidden;

    transition: .2s;
}

.brand-card:hover {

    transform: translateY(-3px);

    border-color: #bcd4ff;

    box-shadow:
        0 10px 25px rgba(0,0,0,.06);
}
*/
.brand-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .2s;
}

.brand-card:hover {
    transform: translateY(-3px);
    border-color: #bcd4ff;
    box-shadow: 0 10px 25px rgba(0,0,0,.06);
}


/* BRAND TOP */

.brand-top {

    padding: 18px 18px 14px;

    display: flex;

    align-items: center;

    justify-content: space-between;
}

.brand-name {

    font-size: 15px;

    font-weight: 700;
}

.brand-count {

    font-size: 11px;

    color: var(--muted);
}


/* MODEL PREVIEW */

.model-preview {

    padding: 0 18px 15px;

    min-height: 40px;
}

.model-preview span {

    display: inline-block;

    background: #f5f7fa;

    color: #687687;

    border-radius: 5px;

    padding: 4px 7px;

    margin:

        0 3px 4px 0;

    font-size: 10px;
}


/* SHOW CONTENT BUTTON */
/*
.show-content {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--line); 
    background: white;
    padding: 10px 15px;
    text-align: left;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.show-content:hover {

    background: var(--accent-soft);
}
*/
.show-content {
    width: 100%;
    border: 0;
    border-top: 1px solid var(--line);
    background: white;
    padding: 10px 15px;
    text-align: left;
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
}

.show-content:hover {
    background: var(--accent-soft);
}

/* EXPANDED CONTENT */
.brand-files {
    display: none;
    border-top: 1px solid var(--line);
    background: #fafcff;
    padding: 10px 15px 12px;
}

.brand-card.open .brand-files {
    display: block;
}
/*
.brand-files {
    display: none !important;

    border-top: 1px solid var(--line);

    background: #fafcff;

    padding: 10px 15px 12px;
}
*/
/*.brand-card.open .brand-files {
    display: block !important;
}











.brand-card.open .brand-files {
    display: block;
}
*/
.brand-file {

    display: block;

    padding: 5px 0;

    font-size: 11px;

    color: #536170;

    text-decoration: none;
}

.brand-file:hover {
    color: var(--accent);
}


/* =========================================================
   BRAND DOCUMENT SECTION
========================================================= */

.brand-section {

    background: white;

    border: 1px solid var(--line);

    border-radius: 18px;

    overflow: hidden;

    margin-bottom: 40px;

    scroll-margin-top: 90px;
}


/* BRAND HEADER */

.brand-header {

    padding: 24px 28px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    border-bottom: 1px solid var(--line);
}

.brand-header-left {

    display: flex;

    align-items: center;

    gap: 15px;
}

.brand-logo {

    width: 46px;
    height: 46px;

    border-radius: 12px;

    background: var(--accent-soft);

    color: var(--accent);

    display: flex;

    align-items: center;
    justify-content: center;

    font-weight: 800;
}

.brand-header h2 {

    margin: 0;

    font-size: 21px;
}

.brand-header p {

    margin: 5px 0 0;

    color: var(--muted);

    font-size: 13px;
}

.brand-back {

    color: var(--accent);

    text-decoration: none;

    font-size: 13px;
}


/* =========================================================
   DOCUMENT
========================================================= */

.document {

    display: grid;

    grid-template-columns:
        44px 1fr auto auto;

    gap: 18px;

    align-items: center;

    padding: 18px 28px;

    border-bottom: 1px solid var(--line);

    transition: background .15s;
}

.document:last-child {
    border-bottom: 0;
}

.document:hover {
    background: #fafcff;
}


/* FILE ICON */

.file-icon {

    width: 40px;
    height: 40px;

    border-radius: 9px;

    background: #fff0f0;

    color: #dc2626;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    font-weight: 800;
}


/* FILE NAME */

.file-name {

    font-size: 14px;

    font-weight: 600;

    color: #202a35;
}

.file-meta {

    margin-top: 5px;

    color: var(--muted);

    font-size: 12px;
}


/* SIZE */

.file-size {

    font-size: 12px;

    color: var(--muted);

    white-space: nowrap;
}


/* DOWNLOAD */

.download {

    border: 0;

    background: var(--accent-soft);

    color: var(--accent);

    text-decoration: none;

    padding: 9px 13px;

    border-radius: 8px;

    font-size: 12px;

    font-weight: 700;

    white-space: nowrap;
}

.download:hover {

    background: var(--accent);

    color: white;
}


/* =========================================================
   FOOTER
========================================================= */

.footer {

    background: #111827;

    color: #94a3b8;

    padding: 35px 24px;

    text-align: center;

    font-size: 12px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1000px) {

    .brand-grid {
        grid-template-columns:
            repeat(3, 1fr);
    }

    .mega-menu {
        width: 650px;
    }
}


@media (max-width: 760px) {

    .main-nav {
        display: none;
    }

    .brand-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .mega-menu {
        display: none;
    }

    .document {
        grid-template-columns:
            40px 1fr auto;
    }

    .file-size {
        display: none;
    }
}


@media (max-width: 500px) {

    .hero-inner {
        padding:
            40px 18px 45px;
    }

    .container {
        padding:
            25px 15px 50px;
    }

    .brand-grid {
        grid-template-columns: 1fr;
    }

    .brand-header {
        padding: 20px;
    }

    .document {

        padding: 15px;

        grid-template-columns:
            38px 1fr;
    }

    .download {

        grid-column: 2;

        justify-self: start;
    }
}
/*nem kell talan
.brand-card .brand-files {
    display: none;
}

.brand-card.open .brand-files {
    display: block;
}*/
/*nem kell talan eddig*/


.brand-select {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: background .15s;
}
/*
.brand-select:hover {
    color: inherit;
    text-decoration: none;
    background: var(--accent-soft);
}

.brand-select .brand-top,
.brand-select .model-preview {
    cursor: pointer;
} 

.brand-select {
    display: block;
    color: inherit;
    text-decoration: none;
}

.brand-select:hover,
.brand-select:visited,
.brand-select:active {
    color: inherit;
    text-decoration: none;
}*/