/*
Theme Name: MTK Baráti Kör
Theme URI: https://www.mtkcsalad.hu/
Author: AIT
Description: Az mtkcsalad.hu eredeti (honlapom.hu-s) megjelenését újraalkotó egyedi WordPress sablon. Teszt migrációhoz készült, az eredeti design tokenek (színek, tipográfia, elrendezés) alapján újraírva.
Version: 0.1.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mtk-barati-kor
*/

/* ==========================================================================
   Design tokens (extracted from the original site):
   page bg        #233148  (dark navy)
   headtext bg    #213148
   left column    #3A68B3  (medium blue, also submenu flyout bg)
   link/accent    #5393fa  (light blue)
   button         #2d5494, hover #244479
   text           #fff, Verdana/Arial, base 12px, content 13px, menu 14px
   layout         960px fixed, 224px blue left strip, header photo 934x208
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0 auto;
    padding: 0;
    font-family: Verdana, Arial, sans-serif;
    font-size: 12px;
    color: #fff;
    background: #233148;
}

img { border: 0 none; max-width: 100%; height: auto; }
.clr { clear: both; }

a { color: #5393fa; text-decoration: none; }
a:hover { color: #fff; }

h1 { margin: 15px 0 10px 0; font-size: 24px; font-weight: normal; }
h1 a { color: #5393fa; }
h1 a:hover { color: #fff; }
h2 { font-size: 16px; }
h3 { font-size: 14px; }
h4, h5 { font-size: 12px; }

/* ---- Page frame: 960px wrapper with 224px blue strip on the left ---- */
#main {
    width: 960px;
    margin: 0;
    background: linear-gradient(90deg, #3A68B3 0, #3A68B3 224px, rgba(0,0,0,0) 224px);
    overflow: hidden;
}

/* ---- Site title + slogan above the header photo ---- */
#headtext {
    margin: 0 0 0 224px;
    padding: 10px 0 10px 15px;
    background: #213148;
}
#headtext h1 { margin: 15px 0 10px 0; }
#headtext p#slogen {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 16px;
    font-weight: normal;
}

/* ---- Header photo band ---- */
#header {
    position: relative;
    height: 238px;
}
#pic {
    position: absolute;
    top: 8px;
    left: 23px;
    width: 914px;
    height: 208px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.45);
}

/* ---- Left column ---- */
#left {
    float: left;
    width: 224px;
    padding: 0 14px 30px 20px;
}

/* Sidebar menu: white links on the blue strip, flyout submenus */
#menuside {
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}
#menuside li {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0;
}
#menuside li a {
    display: block;
    margin: 0;
    padding: 8px 0 8px 15px;
    font-size: 14px;
    color: #fff;
    border-bottom: 1px solid #fff;
    position: relative;
}
#menuside li a::before {
    content: "";
    position: absolute;
    left: 2px;
    top: 15px;
    border-left: 6px solid currentColor;
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
}
#menuside li a:hover,
#menuside .current-menu-item > a,
#menuside .current-menu-ancestor > a { color: #aaa; }

#menuside ul.sub-menu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    width: 240px;
    margin: 0;
    padding: 0;
    background: #3A68B3;
    z-index: 9;
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.4);
}
#menuside ul.sub-menu li { width: 240px; }
#menuside ul.sub-menu a {
    padding: 8px 8px 8px 20px;
    border-bottom: 1px solid #fff;
}
#menuside ul.sub-menu a::before { left: 8px; }
#menuside li:hover > ul.sub-menu { display: block; }
#menuside ul.sub-menu ul.sub-menu { left: 100%; top: 0; }

/* Sidebar boxes (Kapcsolat etc.) */
#left .box {
    font-size: 11px;
    margin: 30px 0 0;
    padding: 0 0 30px 0;
}
#left .box h3 {
    font-size: 16px;
    font-weight: normal;
    margin: 0 0 10px;
    padding: 0 0 8px;
    border-bottom: 1px solid #fff;
}
#left .box p { margin: 0 0 8px; }
#left .box li { color: #fff; }

/* ---- Content column ---- */
#center {
    float: left;
    width: 715px;
    padding: 0 0 30px 15px;
    font-size: 13px;
}
#center h2 {
    margin: 0 0 10px;
    padding: 0 0 8px;
    font-weight: normal;
    font-size: 16px;
    border-bottom: 1px solid #fff;
}
#center h2 a { color: #fff; }
#center h2 a:hover { color: #5393fa; }
#center h3 { color: #5393fa; font-size: 14px; }
#center .content table {
    border-collapse: collapse;
    margin-bottom: 10px;
    width: 100%;
}
#center .content p { margin: 0 0 10px; }

/* Athlete / reference rows (MTK-sok pages) */
.content .row {
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    padding: 10px 0;
    overflow: hidden;
}
.content .row.first { border-top: none; }
.content .row h3 { margin: 0 0 4px; }
.content .row p { margin: 0 0 6px; }
.content a.piccont {
    float: right;
    display: block;
    margin: 3px 0 6px 12px;
    padding: 2px;
    background: #3A68B3;
}
.content a.piccont:hover { background: #fff; }
.content a.piccont img { display: block; }

/* Buttons (forms, later) */
.button, button, input[type="submit"] {
    background: #2d5494;
    color: #fff;
    border: none;
    font-size: 12px;
    font-weight: bold;
    padding: 3px 12px;
    cursor: pointer;
}
.button:hover, button:hover, input[type="submit"]:hover { background: #244479; }

/* ---- Footer ---- */
#footer {
    clear: both;
    padding: 15px 0 15px 239px;
    font-size: 11px;
    color: #92a6c5;
}
#footer a { color: #5393fa; }

/* ---- Responsive (the original only had a separate ?mobile=1 view) ---- */
@media (max-width: 1000px) {
    #main { width: 100%; background: none; }
    #headtext { margin: 0; padding: 10px 15px; }
    #header { height: auto; }
    #pic {
        position: static;
        width: auto;
        height: 170px;
        margin: 8px 15px;
    }
    #left {
        float: none;
        width: auto;
        background: #3A68B3;
        padding: 10px 15px 20px;
    }
    #menuside ul.sub-menu {
        position: static;
        width: auto;
        max-height: none;
        box-shadow: none;
        display: none;
    }
    #menuside ul.sub-menu li { width: auto; }
    #menuside ul.sub-menu a { padding-left: 30px; }
    #menuside .current-menu-ancestor > ul.sub-menu,
    #menuside .current-menu-item > ul.sub-menu { display: block; }
    #center { float: none; width: auto; padding: 15px; }
    #footer { padding: 15px; }
}
