/* Veglegesitett Tema: Az eredeti TVC Sablon Inspiralta (Zold/Szurke) */
:root {
    --bg-main: #CCCCCC;
    --text-main: #000000;
    --bg-sidebar: #363636;
    --bg-menu-item: #262626;
    --text-menu: #48ff00;
    --text-menu-hover: #FFFFFF;
    --font-main: Arial, sans-serif;
}

body {
    background-color: var(--bg-sidebar); 
    color: var(--text-main);
    font-family: var(--font-main);
    margin: 0;
    line-height: 1.5em;
}

.layout {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    background-color: var(--bg-main);
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    min-height: 100vh;
}

.sidebar {
    width: 240px;
    background-color: var(--bg-sidebar);
    padding: 0;
}

.logo-area {
    padding: 20px;
    background-color: #222;
    text-align: center;
    border-bottom: 2px solid #555;
}

.logo-area h2 {
    color: var(--text-menu);
    margin: 0;
    font-size: 28px;
    text-shadow: 1px 1px 0px #000;
}

.menu-group h3 {
    color: #999;
    font-size: 13px;
    text-transform: uppercase;
    margin: 0;
    padding: 8px 15px;
    background-color: #333;
    cursor: pointer;
    border-bottom: 1px solid #222;
    transition: background 0.2s, color 0.2s;
    user-select: none;
}

.menu-group h3:hover {
    background-color: #444;
    color: var(--text-menu);
}

.menu-group h3::after {
    content: ' \25BA';
    float: right;
    font-size: 12px;
    margin-top: 2px;
}
.menu-group.open h3::after {
    content: ' \25BC';
}

.main-menu ul {
    display: none;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-group.open ul {
    display: block;
}

.main-menu li {
    background: var(--bg-menu-item);
    margin: 0;
}

.main-menu a {
    color: var(--text-menu);
    text-decoration: none;
    display: block;
    padding: 6px 30px 6px 15px;
    font-weight: bold;
    font-size: 14px;
    border-top: 1px solid #444;
    transition: background 0.2s, color 0.2s;
    position: relative;
}

.main-menu a:hover, .main-menu a.active {
    background-color: #444;
    color: var(--text-menu-hover);
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

.main-menu a:hover::after {
    content: '\2588';
    position: absolute;
    right: 15px;
    animation: blink 0.8s step-end infinite;
    color: var(--text-menu);
}

.main-menu a.active::after {
    content: '\25C4';
    position: absolute;
    right: 15px;
    animation: none;
    color: #FF0000;
}

.content {
    flex: 1;
    padding: 20px;
    background-color: var(--bg-main);
    min-width: 0;
}

.content img {
    max-width: 100%;
    height: auto;
}

.hero-image {
    text-align: center;
    margin-bottom: 20px;
}

.hero-image img {
    display: inline-block;
    border: 1px solid #999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.page-header h1, .cim {
    color: #222;
    font-size: 28px;
    line-height: 1.4;
    border-bottom: 2px solid #999;
    padding-bottom: 8px;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: uppercase;
    text-align: center;
}

.content h2 {
    color: #222;
    font-size: 20px;
    border-bottom: 2px solid #FF0000;
    padding-bottom: 5px;
    margin-top: 30px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.logo-area img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.card {
    background-color: #FFFFFF;
    border: 1px solid #AAA;
    padding: 12px;
    text-align: center;
}

.card h2 { color: #222; margin-top: 0; font-size: 17px; margin-bottom: 5px; }
.card p { color: #444; font-size: 12px; margin-bottom: 0; line-height: 1.3; }
.card img { display: block; margin: 0 auto 8px auto; max-height: 160px; width: auto; }

.btn {
    display: inline-block;
    background-color: #444;
    color: #FFF;
    padding: 6px 12px;
    margin-top: 15px;
    text-decoration: none;
    font-weight: bold;
    font-size: 12px;
    transition: background 0.2s;
}

.btn:hover { background-color: #222; }

.page-footer {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 2px solid #999;
    color: #555;
    font-size: 12px;
    text-align: center;
}

.menu-toggle {
    display: none;
    background-color: #222;
    color: #48ff00;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    border-bottom: 2px solid #555;
    user-select: none;
}

.menu-toggle:hover { background-color: #333; }

.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 15px 0;
}

@media (max-width: 768px) {
    .layout { flex-direction: column; margin: 0; box-shadow: none; width: 100%; }
    .sidebar { width: 100%; }
    .main-menu { display: none; }
    .main-menu.show-mobile { display: block; }
    .menu-toggle { display: block; }
    .content { padding: 15px; overflow-x: hidden; }
    .content :not(.table-responsive) > table, 
    .content :not(.table-responsive) > table tbody, 
    .content :not(.table-responsive) > table tr, 
    .content :not(.table-responsive) > table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box;
    }
    .content td { text-align: left; padding: 10px 5px; }
    .content-grid { grid-template-columns: 1fr; }
}

.tech-table { width: 100%; border-collapse: collapse; margin: 15px 0; border: 2px solid #333; font-size: 13px; }
.tech-table th { background: #333; color: #fff; padding: 8px; text-align: left; }
.tech-table td { padding: 8px; border: 1px solid #ddd; }
.tech-table tr:nth-child(even) { background-color: #f9f9f9; }

.jump-menu {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    margin: 20px 0 30px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}
.jump-menu h2 {
    font-size: 1.4em;
    margin-top: 0;
    color: #333;
    border-bottom: 3px solid #cc0000;
    display: block;
    padding-bottom: 10px;
    margin-bottom: 20px;
    text-transform: uppercase;
    font-weight: 800;
}
.jump-menu ul { 
    list-style: none; 
    padding: 0; 
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.jump-menu li { 
    margin: 0; 
    padding: 0; 
    border-bottom: 1px solid #f0f0f0; 
    padding-bottom: 10px;
}
.jump-menu li:last-child { border-bottom: none; }
.jump-menu a { 
    color: #333 !important; 
    text-decoration: none !important; 
    font-weight: bold; 
    font-size: 1.1em;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}
.jump-menu a:hover { 
    color: #cc0000 !important;
}
.jump-menu a::before { 
    content: '➧'; 
    margin-right: 15px; 
    color: #cc0000; 
    font-size: 1.4em;
}

/* --- Hardver Oldalak Stilusai --- */
.hardware-body { 
    background: #fff; 
    padding: 40px; 
    border-radius: 12px; 
    color: #000; 
    line-height: 1.6; 
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    border: 1px solid #bbb;
    margin-top: 10px;
}
.hardware-body .szoveg { margin-bottom: 20px; display: block; font-size: 15px; }
.hardware-body .szovegvastag { font-weight: bold; margin-bottom: 10px; display: block; }
.hardware-body .szovegdolt { font-style: italic; color: #666; margin-bottom: 15px; font-size: 14px; }
.hardware-body img { display: block; margin: 20px auto; max-width: 100%; height: auto; }

#lightbox { 
    display: none; 
    position: fixed; 
    z-index: 10000; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh; 
    background: rgba(0,0,0,0.9); 
    justify-content: center; 
    align-items: center; 
    cursor: zoom-out; 
}

#lightbox img { max-width: 95%; max-height: 95%; border: 3px solid #48ff00; box-shadow: 0 0 30px rgba(0,0,0,0.8); }

.dl-link { 
    display: inline-block; 
    padding: 6px 15px; 
    background: #FF0000; 
    color: #fff !important; 
    text-decoration: none !important; 
    border-radius: 4px; 
    font-weight: bold; 
    font-size: 12px; 
}

.footer-sig { text-align: right; font-style: italic; margin-top: 20px; color: #777; font-size: 13px; }

/* TVC BASIC Kódblokk stílusok */
.code-header {
    background: #333;
    color: #fff;
    padding: 5px 12px;
    font-size: 12px;
    text-transform: uppercase;
    margin-top: 25px;
    display: inline-block;
    border-radius: 4px 4px 0 0;
    font-family: 'Inter', sans-serif;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 200px;
}

.copy-btn {
    background: #444;
    color: #fff;
    border: none;
    padding: 3px 8px;
    font-size: 10px;
    cursor: pointer;
    border-radius: 3px;
    margin-left: 15px;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #48ff00;
    color: #000;
}

.tvc-code-block {
    background: #000 !important;
    color: #48ff00 !important;
    padding: 20px;
    border: 2px solid #333;
    font-family: 'Courier New', Courier, monospace;
    font-size: 15px;
    line-height: 1.5;
    overflow-x: auto;
    margin: 0 0 25px 0;
    white-space: pre;
    border-radius: 0 4px 4px 4px;
    box-shadow: inset 0 0 15px rgba(72, 255, 0, 0.15);
}

/* Egységes letöltés gomb stílus */
.tvc-btn {
    display: inline-block;
    background: #262626;
    color: #48ff00 !important;
    padding: 8px 15px;
    text-decoration: none !important;
    font-size: 12px;
    font-weight: bold;
    border: 1px solid #48ff00;
    border-radius: 2px;
    text-transform: uppercase;
    transition: all 0.2s;
    margin: 4px 0;
    cursor: pointer;
}

.tvc-btn:hover {
    background: #48ff00;
    color: #000 !important;
    box-shadow: 0 0 10px rgba(72, 255, 0, 0.4);
}

/* Reszponzív Videó Konténer */
.video-responsive {
    overflow: hidden;
    padding-bottom: 56.25%; /* 16:9 arány */
    position: relative;
    height: 0;
    margin: 20px 0;
}

.video-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
    border: 0;
}


/* Reszponziv Tablazatok */
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 768px) {
    .table-responsive table, .table-responsive .tech-table {
        display: table !important;
        min-width: 500px; /* Ensure enough width for technical details */
    }
    .table-responsive table tr { display: table-row !important; }
    .table-responsive table td, .table-responsive table th { 
        display: table-cell !important; 
        width: auto !important;
        white-space: nowrap;
    }
}

.table-responsive { background: #fff; padding: 15px; border-radius: 8px; margin-bottom: 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-responsive table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table-responsive th { background: #333; color: #48ff00; text-align: left; padding: 10px; border-bottom: 2px solid #FF0000; }
.table-responsive td { padding: 8px; border-bottom: 1px solid #eee; color: #333; }
