/*
Theme Name: ZSP Rojewo Theme
Theme URI: https://sprojewo.pl
Author: Zespół Szkolno-Przedszkolny w Rojewie
Description: Dedykowany, dostępny (WCAG 2.1) motyw WordPress dla Zespołu Szkolno-Przedszkolnego w Rojewie.
Version: 1.0.0
Text Domain: zsp-rojewo
*/

:root {
    --primary: #1e3a8a;
    --primary-hover: #1c3d5a;
    --secondary: #0284c7;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --light: #f8fafc;
    --dark: #0f172a;
    --gray-light: #e2e8f0;
    --gray-text: #475569;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background-color: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Ułatwienia dostępności WCAG */
.accessibility-bar {
    background-color: var(--dark);
    color: white;
    padding: 6px 5%;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.acc-btn-group button {
    background: transparent;
    border: 1px solid #94a3b8;
    color: white;
    padding: 2px 8px;
    margin-left: 5px;
    cursor: pointer;
    border-radius: 4px;
}

body.high-contrast {
    background-color: #000000 !important;
    color: #ffff00 !important;
}
body.high-contrast * {
    background-color: #000000 !important;
    color: #ffff00 !important;
    border-color: #ffff00 !important;
}

/* Top Bar & Header */
.top-bar {
    background-color: var(--primary);
    color: white;
    padding: 8px 5%;
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a { color: #7dd3fc; text-decoration: none; font-weight: 600; }

header {
    background: white;
    padding: 15px 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
}

.logo-icon {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: 800;
}

.school-title h1 { font-size: 1.35rem; color: var(--primary); font-weight: 700; }
.school-title p { font-size: 0.9rem; color: var(--gray-text); }

/* Navigation */
nav {
    background-color: var(--primary);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container { padding: 0 5%; }
.nav-links { list-style: none; display: flex; flex-wrap: wrap; }
.nav-links li a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 16px 18px;
    font-weight: 600;
}
.nav-links li a:hover, .nav-links li.current-menu-item a {
    background-color: rgba(255,255,255,0.1);
    border-bottom: 3px solid var(--accent);
}

/* Container */
.main-container {
    max-width: 1250px;
    margin: 40px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 35px;
    flex-grow: 1;
}

.single-column { grid-template-columns: 1fr; }

/* Cards & Content */
.section-header {
    font-size: 1.75rem;
    color: var(--primary);
    margin-bottom: 25px;
    border-bottom: 3px solid var(--gray-light);
    position: relative;
    padding-bottom: 8px;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
}

.news-card {
    background: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid var(--gray-light);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.news-badge {
    background-color: #dbeafe;
    color: var(--secondary);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
}

.news-title a { color: var(--primary); text-decoration: none; }
.news-title a:hover { text-decoration: underline; }

.content-box {
    background: white;
    padding: 35px;
    border-radius: 10px;
    border: 1px solid var(--gray-light);
}

/* Sidebar */
.sidebar-card {
    background: white;
    padding: 25px;
    border-radius: 10px;
    border: 1px solid var(--gray-light);
    margin-bottom: 30px;
}

/* Footer */
footer {
    background-color: var(--primary);
    color: white;
    padding: 50px 5% 20px 5%;
    margin-top: auto;
}
.footer-grid {
    max-width: 1250px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}
.footer-bottom {
    text-align: center;
    padding-top: 25px;
    margin-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: #94a3b8;
}