/*
Theme Name: Dr. Szabó Attila Praxis
Author: nograDex
Description: Egyedi WordPress sablon orvosi praxis számára.
Version: 1.0
*/

/* --- Változók és Alapbeállítások --- */
:root {
    --primary: #1A365D;
    --secondary: #2B6CB0;
    --accent: #38B2AC;
    --bg-main: #F7FAFC;
    --surface: #FFFFFF;
    --text-dark: #2D3748;
    --text-light: #718096;
    --danger: #E53E3E;
    
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Merriweather', serif;
    
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body { 
    font-family: var(--font-body); 
    color: var(--text-dark); 
    line-height: 1.7; 
    background-color: var(--bg-main); 
    transition: background-color 0.4s ease, color 0.4s ease; 
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 800; color: var(--primary); }
a { text-decoration: none; transition: var(--transition); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid var(--danger); outline-offset: 3px; border-radius: 4px; }
.container { width: 90%; max-width: 1280px; margin: 0 auto; }
.section-padding { padding: 100px 0; }
.bg-light { background-color: var(--surface); }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; position: relative; color: var(--primary); }
.section-title::after { content: ''; display: block; width: 80px; height: 4px; background: linear-gradient(90deg, var(--secondary), var(--accent)); margin: 20px auto 0; border-radius: 2px; }

/* --- Topbar Intelligens Dizájn --- */
.topbar { background-color: var(--primary); color: #E2E8F0; font-family: var(--font-heading); padding: 12px 0; font-size: 0.95rem; }
.topbar-content { display: flex; justify-content: center; align-items: center; gap: 15px; }
.topbar-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; }
.topbar-row .badge { background: var(--secondary); color: #fff; padding: 4px 10px; border-radius: 4px; font-weight: 700; font-size: 0.85rem; white-space: nowrap; }
.topbar-row .address { text-align: center; }
.topbar-row .phone { font-weight: 800; color: #fff; transition: var(--transition); white-space: nowrap; }
.topbar-row .phone:hover { color: var(--accent); }
.topbar-divider { width: 1px; height: 20px; background: rgba(255,255,255,0.3); }

@media (max-width: 1250px) {
    .topbar-divider { display: none; }
    .topbar-content { flex-direction: column; gap: 10px; }
}

/* --- Header & Nav --- */
.main-header { background: var(--surface); box-shadow: var(--shadow-sm); position: sticky; top: 0; z-index: 900; padding: 20px 0; }
.header-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; }
.logo h1 { font-size: 1.8rem; line-height: 1.1; letter-spacing: -0.5px; }
.logo span { font-family: var(--font-heading); font-size: 0.85rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.main-nav ul { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
.main-nav a { font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; color: var(--text-dark); position: relative; }
.main-nav a:hover { color: var(--secondary); }
.main-nav a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--secondary); transition: var(--transition); }
.main-nav a:hover::after { width: 100%; }

/* --- Hero --- */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); padding: 120px 0; color: var(--surface); text-align: center; }
.hero-text { max-width: 800px; margin: 0 auto; }
.hero h2 { color: var(--surface); font-size: 3.5rem; margin-bottom: 25px; line-height: 1.2; }
.hero p { font-size: 1.2rem; margin-bottom: 40px; color: #E2E8F0; font-family: var(--font-heading); }
.btn-primary { display: inline-block; background-color: var(--accent); color: var(--surface); padding: 15px 35px; border-radius: 50px; font-family: var(--font-heading); font-weight: 700; font-size: 1.1rem; box-shadow: 0 10px 20px rgba(56, 178, 172, 0.3); }
.btn-primary:hover { background-color: #2c9792; transform: translateY(-3px); color: var(--surface); }

/* --- Kártyák és Grid --- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.premium-card { background: var(--surface); padding: 40px 30px; border-radius: 16px; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid #E2E8F0; text-align: center; }
.premium-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--accent); }
.card-icon { width: 70px; height: 70px; background: var(--bg-main); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 25px; font-size: 1.8rem; color: var(--secondary); }
.premium-card h3 { font-size: 1.4rem; margin-bottom: 15px; }
.highlight-card { border-top: 4px solid var(--danger); }
.highlight-card .card-icon { color: var(--danger); background: #FFF5F5; }

/* --- Hírek --- */
.news-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 40px; align-items: stretch; }
.news-card { flex: 1 1 350px; max-width: 650px; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.news-thumbnail { width: 100%; height: 220px; overflow: hidden; }
.news-thumbnail img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.news-card:hover .news-thumbnail img { transform: scale(1.05); }
.placeholder-thumbnail { background: linear-gradient(135deg, var(--bg-main) 0%, #E2E8F0 100%); display: flex; align-items: center; justify-content: center; font-size: 4rem; color: var(--secondary); opacity: 0.8; }
.news-content-wrapper { padding: 30px; display: flex; flex-direction: column; flex-grow: 1; }
.news-date { font-family: var(--font-heading); color: var(--accent); font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; text-transform: uppercase; }
.news-card h3 { font-size: 1.4rem; margin-bottom: 20px; text-align: left; }
.news-body { font-size: 1.05rem; line-height: 1.8; color: var(--text-dark); text-align: left; }

/* --- Fogadási Idő --- */
.timetable-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: 1000px; margin: 0 auto; }
.premium-box { background: var(--surface); padding: 35px; border-radius: 16px; box-shadow: var(--shadow-lg); border: 1px solid #E2E8F0; }
.timetable h3 { margin-bottom: 20px; color: var(--secondary); border-bottom: 2px solid var(--bg-main); padding-bottom: 15px; }
.timetable ul { list-style: none; }
.timetable li { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid #EDF2F7; }
.timetable li:last-child { border-bottom: none; }
.timetable li span { font-weight: 700; font-family: var(--font-heading); color: var(--primary); }

/* --- Ügyelet Kihúzható Fül --- */
.emergency-panel { position: fixed; top: 50%; right: -320px; width: 320px; background: var(--surface); box-shadow: -5px 0 25px rgba(0,0,0,0.15); transform: translateY(-50%); transition: right 0.4s ease; z-index: 9990; border-radius: 12px 0 0 12px; padding: 30px; }
.emergency-panel:hover { right: 0; }
.emergency-tab { position: absolute; left: -45px; top: 50%; transform: translateY(-50%) rotate(180deg); background: var(--danger); color: white; padding: 20px 10px; font-family: var(--font-heading); font-weight: 700; border-radius: 8px 0 0 8px; cursor: pointer; writing-mode: vertical-rl; text-orientation: mixed; letter-spacing: 2px; box-shadow: -3px 0 10px rgba(0,0,0,0.15); }

/* --- Munkatársak --- */
.staff-grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; align-items: end; }
.staff-card { background: var(--surface); padding: 30px 15px; border-radius: 16px; text-align: center; box-shadow: var(--shadow-sm); transition: var(--transition); border: 1px solid transparent; }
.staff-card:hover { box-shadow: var(--shadow-lg); border-color: var(--accent); }
.staff-avatar { width: 100px; height: 100px; background-color: #E2E8F0; border-radius: 50%; margin: 0 auto 20px; border: 3px solid var(--surface); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.doctor-card { background: linear-gradient(to bottom, #FFFFFF, #F7FAFC); border: 1px solid var(--secondary); transform: scale(1.05); z-index: 2; padding: 40px 15px; }
.doctor-avatar { width: 130px; height: 130px; border-color: var(--secondary); }
.staff-card h4 { font-size: 1.1rem; margin-bottom: 5px; }
.doctor-card h4 { font-size: 1.3rem; color: var(--secondary); }
.staff-card p { font-size: 0.85rem; color: var(--text-light); font-family: var(--font-heading); font-weight: 600; text-transform: uppercase; }

/* --- Szolgáltatások --- */
.services-wrapper { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 900px; margin: 0 auto; }
.service-item { background: var(--surface); padding: 20px 25px; border-radius: 12px; display: flex; align-items: center; gap: 15px; box-shadow: var(--shadow-sm); font-weight: 600; font-family: var(--font-heading); }
.service-item i { color: var(--accent); font-size: 1.5rem; }

/* --- Dokumentumok --- */
.document-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.document-item { display: flex; align-items: center; justify-content: space-between; padding: 25px; border-radius: 12px; color: var(--text-dark); border-left: 5px solid var(--secondary); }
.document-item:hover { transform: translateY(-5px); border-color: var(--accent); }
.doc-icon { font-size: 2.5rem; color: #E53E3E; margin-right: 20px; }
.doc-info { flex: 1; }
.doc-info h4 { font-size: 1.1rem; margin-bottom: 5px; color: var(--primary); text-align: left;}
.doc-info p { font-size: 0.9rem; color: var(--text-light); margin: 0; text-align: left;}
.doc-download { font-family: var(--font-heading); font-weight: 700; color: var(--secondary); font-size: 0.95rem; white-space: nowrap; margin-left: 20px; }

/* --- Elérhetőség --- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; }
.contact-cards { display: flex; flex-direction: column; gap: 20px; }
.contact-box { display: flex; gap: 20px; align-items: flex-start; }
.contact-icon { font-size: 2rem; color: var(--secondary); background: var(--bg-main); padding: 15px; border-radius: 12px; }
.contact-link { display: inline-block; margin-top: 10px; font-weight: 700; color: var(--accent); font-family: var(--font-heading); }
.map-container { border-radius: 16px; overflow: hidden; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.maps-wrapper iframe { flex: 1; min-height: 250px; }

/* --- Footer --- */
.main-footer { background: var(--primary); color: #A0AEC0; padding-top: 80px; font-family: var(--font-heading); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.5fr; gap: 50px; margin-bottom: 60px; }
.footer-logo { color: var(--surface); font-size: 1.8rem; margin-bottom: 20px; }
.footer-col h3 { color: var(--surface); margin-bottom: 25px; font-size: 1.2rem; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { color: #A0AEC0; }
.footer-col a:hover { color: var(--accent); }
.emergency-links li { background: rgba(255,255,255,0.1); padding: 10px 15px; border-radius: 8px; color: var(--surface); margin-bottom: 10px; }
.emergency-links strong { color: var(--accent); font-size: 1.1rem; }
.footer-bottom { background-color: #0d1e36; padding: 25px 0; text-align: center; font-size: 0.9rem; }

/* ==========================================================================
   AKADÁLYMENTESÍTÉS (HŰHA FAKTOR CSS)
   ========================================================================== */
.a11y-fab { position: fixed; bottom: 30px; right: 30px; width: 60px; height: 60px; background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%); color: white; border: none; border-radius: 50%; font-size: 1.8rem; cursor: pointer; box-shadow: 0 10px 25px rgba(26, 54, 93, 0.4); z-index: 9999; display: flex; align-items: center; justify-content: center; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); animation: pulseGlow 2s infinite; }
.a11y-fab:hover { transform: scale(1.1) rotate(10deg); animation: none; }
@keyframes pulseGlow { 0% { box-shadow: 0 0 0 0 rgba(43, 108, 176, 0.6); } 70% { box-shadow: 0 0 0 15px rgba(43, 108, 176, 0); } 100% { box-shadow: 0 0 0 0 rgba(43, 108, 176, 0); } }
.a11y-panel { position: fixed; top: 0; right: -380px; width: 350px; height: 100vh; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); box-shadow: -5px 0 30px rgba(0,0,0,0.1); z-index: 10001; transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1); padding: 30px; border-left: 1px solid rgba(255,255,255,0.5); }
.a11y-panel.active { right: 0; }
.a11y-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; border-bottom: 2px solid #EDF2F7; padding-bottom: 15px; }
.a11y-header h3 { font-size: 1.3rem; margin: 0; }
.a11y-close { background: none; border: none; font-size: 1.5rem; color: var(--text-light); cursor: pointer; transition: color 0.3s; }
.a11y-close:hover { color: var(--danger); transform: scale(1.1); }
.a11y-options { display: flex; flex-direction: column; gap: 25px; }
.a11y-option { display: flex; justify-content: space-between; align-items: center; font-family: var(--font-heading); font-weight: 600; font-size: 1.05rem; }
.a11y-option-text i { color: var(--secondary); margin-right: 10px; font-size: 1.2rem; }
.a11y-switch { position: relative; display: inline-block; width: 54px; height: 30px; }
.a11y-switch input { opacity: 0; width: 0; height: 0; }
.a11y-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #CBD5E0; transition: .4s; border-radius: 30px; }
.a11y-slider:before { position: absolute; content: ""; height: 22px; width: 22px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
input:checked + .a11y-slider { background-color: var(--accent); }
input:checked + .a11y-slider:before { transform: translateX(24px); }
.a11y-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.4); z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.a11y-overlay.active { opacity: 1; pointer-events: all; }

/* Akadálymentesített osztályok */
body.large-text { font-size: 115%; }
body.large-text .section-title { font-size: 2.8rem; }
body.large-text .hero p { font-size: 1.4rem; }
body.high-contrast { --primary: #FFFF00; --secondary: #FFFF00; --accent: #FFFFFF; --bg-main: #000000; --surface: #111111; --text-dark: #FFFFFF; --text-light: #CCCCCC; --danger: #FF3333; }
body.high-contrast .premium-card, body.high-contrast .premium-box, body.high-contrast .main-header, body.high-contrast .staff-card { border: 2px solid #FFFF00; background: #000; color: #FFF; box-shadow: none; }
body.high-contrast .alert-box { background: #220000; border-color: #FF3333; }
body.high-contrast a { color: #FFFF00; }
body.high-contrast .main-nav a { color: #FFF; }
body.high-contrast .main-nav a:hover { color: #FFFF00; text-decoration: underline; }
body.high-contrast .btn-primary { background: #FFFF00; color: #000; border: 2px solid #FFFF00; }
body.high-contrast .a11y-panel { background: #000; border-left: 2px solid #FFFF00; }
body.high-contrast .a11y-switch input:checked + .a11y-slider { background-color: #FFFF00; }
body.highlight-links a:not(.btn-primary):not(.a11y-fab) { background-color: #FFFF00; color: #000 !important; text-decoration: underline !important; font-weight: 900; padding: 0 4px; border-radius: 3px; }

/* --- Reszponzivitás --- */
@media (max-width: 1100px) {
    .grid-3, .timetable-grid { grid-template-columns: repeat(2, 1fr); }
    .staff-card { padding: 20px 10px; }
    .staff-avatar { width: 70px; height: 70px; }
    .doctor-avatar { width: 90px; height: 90px; }
}
@media (max-width: 768px) {
    .header-content { flex-direction: column; text-align: center; gap: 15px; }
    .main-nav ul { margin-top: 15px; justify-content: center; }
    .grid-3, .timetable-grid, .services-wrapper, .contact-grid, .footer-grid, .document-grid { grid-template-columns: 1fr; }
    .staff-grid-5 { grid-template-columns: repeat(2, 1fr); align-items: stretch; }
    .doctor-card { grid-column: 1 / -1; transform: scale(1); order: -1; }
    .hero h2 { font-size: 2.2rem; }
    .a11y-panel { width: 300px; right: -320px; }
    .emergency-panel { width: 280px; right: -280px; }
}