/*
Theme Name: FK Darkovičky
Theme URI: https://fkdarkovicky.cz
Author: FK Darkovičky
Description: Oficiální šablona fotbalového klubu FK Darkovičky
Version: 1.0.0
Text Domain: fk-darkovicky
*/

/* ==========================================================================
   Fonts - Athletic / Sports
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Oswald:wght@400;500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap');

/* ==========================================================================
   Design Tokens
   ========================================================================== */
:root {
    /* Club Colors */
    --club-blue: #0066B3;
    --club-blue-dark: #004785;
    --club-blue-light: #0080DC;

    /* Neutrals - Dark theme base */
    --dark-900: #0a0a0a;
    --dark-800: #141414;
    --dark-700: #1f1f1f;
    --dark-600: #2a2a2a;
    --dark-500: #3d3d3d;
    --gray-400: #6b6b6b;
    --gray-300: #999999;
    --gray-200: #cccccc;
    --gray-100: #f0f0f0;
    --white: #ffffff;

    /* Accent */
    --accent-yellow: #FFD700;
    --accent-red: #DC0000;
    --success: #00B341;

    /* Typography */
    --font-display: 'Oswald', 'Impact', sans-serif;
    --font-body: 'Source Sans 3', 'Arial', sans-serif;

    /* Spacing */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;
    --sp-12: 48px;
    --sp-16: 64px;

    /* Layout */
    --max-width: 1200px;
    --sidebar-width: 320px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--dark-800);
    background: var(--gray-100);
}

a {
    color: var(--club-blue);
    text-decoration: none;
}

a:hover {
    color: var(--club-blue-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   Typography
   ========================================================================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--dark-900);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.25rem;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.site-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.content-area {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--sp-8);
    padding: var(--sp-10) 0 var(--sp-16);
}

.main-content {
    min-width: 0;
}

.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

/* ==========================================================================
   Header - Bold Sports Style
   ========================================================================== */
.site-header {
    background: var(--dark-900);
    border-bottom: 4px solid var(--club-blue);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--sp-6);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
}

.site-logo img {
    height: 60px;
    width: auto;
}

.site-logo-text {
    display: flex;
    flex-direction: column;
}

.site-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.1;
}

.site-tagline {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--club-blue-light);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

/* Navigation */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    display: block;
    padding: var(--sp-4) var(--sp-5);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item a {
    color: var(--white);
    background: var(--dark-700);
    border-bottom-color: var(--club-blue);
}

/* ==========================================================================
   Section Header
   ========================================================================== */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--sp-6);
    padding-bottom: var(--sp-3);
    border-bottom: 3px solid var(--dark-900);
}

.section-title {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: 1.125rem;
    margin: 0;
}

.section-title::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--club-blue);
}

/* ==========================================================================
   Article Cards
   ========================================================================== */
.article-list {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

.article-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--club-blue);
    transition: all 0.2s ease;
}

.article-card:hover {
    border-left-color: var(--club-blue-dark);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/*.article-thumbnail {
    display: block;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--dark-700);
}*/

.article-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.article-card:hover .article-thumbnail img {
    transform: scale(1.03);
}

.article-card-content {
    padding: var(--sp-6);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: var(--sp-4);
    margin-bottom: var(--sp-3);
    font-size: 0.8125rem;
}

.article-date {
    display: inline-flex;
    align-items: center;
    padding: var(--sp-1) var(--sp-3);
    background: var(--dark-900);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-category {
    font-weight: 700;
    color: var(--club-blue);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.article-title {
    margin-bottom: var(--sp-3);
    font-size: 1.375rem;
}

.article-title a {
    color: var(--dark-900);
}

.article-title a:hover {
    color: var(--club-blue);
}

.article-excerpt {
    color: var(--gray-400);
    margin-bottom: var(--sp-5);
    line-height: 1.7;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-2);
    padding: var(--sp-3) var(--sp-5);
    background: var(--club-blue);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border: none;
    transition: all 0.2s ease;
}

.read-more:hover {
    background: var(--club-blue-dark);
    color: var(--white);
}

.read-more::after {
    content: '→';
    font-size: 1rem;
}

/* ==========================================================================
   Single Article
   ========================================================================== */
.single-article {
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.single-article .article-header {
    background: var(--dark-900);
    padding: var(--sp-10) var(--sp-8);
    border-bottom: 4px solid var(--club-blue);
}

.single-article .article-title {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: var(--sp-4);
}

.single-article .article-meta {
    color: var(--gray-300);
    font-size: 0.875rem;
    margin-bottom: 0;
}

.single-article .article-meta time,
.single-article .article-meta .article-author {
    color: var(--gray-200);
}

.single-article .article-content {
    padding: var(--sp-8);
    font-size: 1.0625rem;
    line-height: 1.8;
}

.single-article .article-content p {
    margin-bottom: var(--sp-5);
}

.single-article .article-content h2,
.single-article .article-content h3 {
    margin-top: var(--sp-8);
    margin-bottom: var(--sp-4);
    padding-left: var(--sp-4);
    border-left: 4px solid var(--club-blue);
}

.single-article .article-content img {
    margin: var(--sp-6) 0;
}

.single-article .article-content a {
    font-weight: 600;
    border-bottom: 2px solid var(--club-blue);
}

.single-article .article-content blockquote {
    margin: var(--sp-6) 0;
    padding: var(--sp-5) var(--sp-6);
    background: var(--gray-100);
    border-left: 4px solid var(--club-blue);
    font-size: 1.125rem;
    font-style: italic;
    color: var(--dark-600);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination {
    margin-top: var(--sp-10);
}

.pagination .nav-links {
    display: flex;
    justify-content: center;
    gap: var(--sp-2);
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--sp-4);
    background: var(--white);
    border: 2px solid var(--gray-200);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--dark-800);
    transition: all 0.2s ease;
}

.pagination .page-numbers:hover {
    border-color: var(--club-blue);
    color: var(--club-blue);
}

.pagination .page-numbers.current {
    background: var(--club-blue);
    border-color: var(--club-blue);
    color: var(--white);
}

/* ==========================================================================
   Sidebar
   ========================================================================== */
.widget {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-top: 4px solid var(--club-blue);
    margin-bottom: var(--sp-6);
}

.widget-title {
    background: var(--dark-900);
    padding: var(--sp-4) var(--sp-5);
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.widget>*:not(.widget-title) {
    padding: var(--sp-5);
}

.widget ul {
    list-style: none;
    padding: var(--sp-4) var(--sp-5);
}

.widget li {
    padding: var(--sp-3) 0;
    border-bottom: 1px solid var(--gray-200);
}

.widget li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.widget li:first-child {
    padding-top: 0;
}

.widget li a {
    display: block;
    color: var(--dark-800);
    font-weight: 500;
    transition: color 0.2s ease;
}

.widget li a:hover {
    color: var(--club-blue);
}

/* Search Widget */
.widget_search .search-form {
    display: flex;
    padding: var(--sp-5);
}

.widget_search .search-field {
    flex: 1;
    padding: var(--sp-3) var(--sp-4);
    border: 2px solid var(--gray-200);
    border-right: none;
    font-family: var(--font-body);
    font-size: 0.9375rem;
}

.widget_search .search-field:focus {
    outline: none;
    border-color: var(--club-blue);
}

.widget_search .search-submit {
    padding: var(--sp-3) var(--sp-5);
    background: var(--club-blue);
    border: 2px solid var(--club-blue);
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.widget_search .search-submit:hover {
    background: var(--club-blue-dark);
    border-color: var(--club-blue-dark);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    background: var(--dark-900);
    border-top: 4px solid var(--club-blue);
    padding: var(--sp-8) 0;
    margin-top: auto;
}

.footer-inner {
    text-align: center;
}

.footer-inner p {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin: 0;
}

.footer-inner a {
    color: var(--white);
    font-weight: 600;
}

.footer-inner a:hover {
    color: var(--club-blue-light);
}

/* ==========================================================================
   No Posts
   ========================================================================== */
.no-posts {
    text-align: center;
    padding: var(--sp-16) var(--sp-8);
    background: var(--white);
    border: 1px solid var(--gray-200);
}

.no-posts h2 {
    color: var(--gray-400);
    margin-bottom: var(--sp-4);
}

.no-posts p {
    color: var(--gray-400);
    margin: 0;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .content-area {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--sp-6);
    }

    .widget {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        height: auto;
        padding: var(--sp-4);
        gap: var(--sp-4);
    }

    .site-logo img {
        height: 50px;
    }

    .site-title {
        font-size: 1.25rem;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-navigation a {
        padding: var(--sp-3) var(--sp-4);
        font-size: 0.8125rem;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .article-title {
        font-size: 1.125rem;
    }

    .single-article .article-header {
        padding: var(--sp-6);
    }

    .single-article .article-title {
        font-size: 1.5rem;
    }

    .single-article .article-content {
        padding: var(--sp-5);
    }

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

@media (max-width: 480px) {
    .container {
        padding: 0 var(--sp-4);
    }

    .article-card-content {
        padding: var(--sp-4);
    }

    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--sp-2);
    }
}