/*
Theme Name: MK Ban Zapresic
Description: Custom theme for Moto Klub Ban Zapresic.
Version: 1.0
Author: AI Sova
*/

:root {
    --gold: #D4AF37;
    --gold-light: #F8E5A5;
    --gold-dark: #AA8B2B;
    --black-bg: #0A0A0A;
    --black-card: #141414;
    --gray-text: #B0B0B0;
    --red-accent: #C8102E;
    --white: #F0F0F0;
}

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

body {
    background-color: var(--black-bg);
    color: var(--white);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Cinzel', serif;
    color: var(--gold);
}

.hero {
    position: relative;
    width: 100%;
    height: 60vh;
    background-color: #222;
    background-size: cover;
    background-position: center bottom;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border-bottom: 2px solid var(--gold-dark);
}

.hero h1 {
    font-size: 5rem;
    color: var(--white);
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 0 0 20px var(--red-accent);
    margin-bottom: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.hero h1 span.red {
    color: var(--red-accent);
}

.hero p {
    font-size: 1.5rem;
    color: var(--gold-light);
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
    letter-spacing: 2px;
}

.main-wrapper {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    gap: 40px;
    width: 100%;
}

.sidebar {
    flex: 0 0 240px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sidebar-title {
    text-align: center;
    font-size: 1.2rem;
    border-bottom: 1px solid var(--gold-dark);
    padding-bottom: 15px;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.sponsor-card,
.sidebar img {
    background-color: var(--black-card);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-weight: 600;
    text-transform: uppercase;
    transition: all 0.4s ease;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.sponsor-card {
    height: 120px;
}

.sponsor-card:hover,
.sidebar img:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 175, 55, 0.1);
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo-container {
    margin-top: clamp(-200px, -15vw, -60px);
    margin-bottom: 40px;
    z-index: 10;
    position: relative;
    max-width: 300px;
    text-align: center;
}

.logo-container img {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.8));
}

.text-section {
    background-color: var(--black-card);
    border-radius: 12px;
    padding: 50px 60px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-top: 4px solid var(--red-accent);
    width: 100%;
}

.text-section p {
    font-size: 1.15rem;
    color: var(--gray-text);
    margin-bottom: 25px;
}

.text-section h2,
.text-section h3 {
    margin-bottom: 25px;
}

footer {
    background-color: #050505;
    text-align: center;
    padding: 30px;
    border-top: 1px solid #222;
    color: #666;
    margin-top: auto;
}

footer span {
    color: var(--gold-dark);
    font-family: 'Cinzel', serif;
}

/* Navigation */
.site-header {
    background-color: rgba(10, 10, 10, 0.95);
    border-bottom: 2px solid var(--gold-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-logo-container img,
.custom-logo {
    height: 1.5rem;
    width: auto;
    object-fit: contain;
}

.dropdown-wrapper {
    position: relative;
    display: inline-block;
}

.site-title .arrow {
    font-size: 0.8rem;
    vertical-align: middle;
    margin-left: 5px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: var(--black-card);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.8);
    z-index: 1001;
    border: 1px solid var(--gold-dark);
    list-style: none;
    padding: 0;
    margin-top: 10px;
    border-radius: 4px;
}

.dropdown-wrapper:hover .dropdown-content {
    display: block;
}

.dropdown-content li {
    border-bottom: 1px solid #333;
}

.dropdown-content li:last-child {
    border-bottom: none;
}

.dropdown-content a {
    color: var(--gold);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    transition: background 0.3s ease;
}

.dropdown-content a:hover {
    background-color: #222;
    color: var(--white);
}

.site-branding .site-title {
    color: var(--gold);
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    text-decoration: none;
    font-weight: 700;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.main-navigation a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.1rem;
    text-transform: uppercase;
    transition: color 0.3s ease;
    font-weight: 600;
}

.main-navigation a:hover {
    color: var(--gold);
}

.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 6px;
    padding: 10px;
}

.menu-toggle .hamburger {
    display: block;
    width: 30px;
    height: 3px;
    background-color: var(--gold);
    transition: all 0.3s ease;
}

@media (max-width: 1100px) {
    .main-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .sidebar-title {
        width: 100%;
    }

    .content {
        order: -1;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(10, 10, 10, 0.98);
        border-bottom: 2px solid var(--gold-dark);
        padding: 20px;
    }

    .main-navigation.toggled {
        display: block;
    }

    .main-navigation ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .menu-toggle.toggled .hamburger:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }

    .menu-toggle.toggled .hamburger:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.toggled .hamburger:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}