﻿/* --- ZĂKLADNĂŤ NASTAVENĂŤ A PROMÄšNNĂ‰ --- */
:root {
    --bg-color: #0d0d0d;
    --bg-secondary: #1a1a1a;
    --primary-green: #52c41a;
    --text-color: #e0e0e0;
    --text-muted: #a0a0a0;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll; /* ZabrĂˇnĂ­ poskakovĂˇnĂ­ strĂˇnky pĹ™i absenci scrollbaru */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hidden {
    display: none !important;
}

/* --- HLAVIÄŚKA A MENU (HEADER) --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(82, 196, 26, 0.2);
}

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

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

.logo {
    height: 70px;
    width: auto;
}

.project-name {
    color: var(--text-color);
    font-size: 1.8rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 5px 0;
    border-bottom: 2px solid transparent;
}

.nav-link:hover, .nav-link.active {
    color: var(--primary-green);
}

.nav-link.active {
    border-bottom: 2px solid var(--primary-green);
}

/* --- LANDING PAGE: BANNER (HERO) --- */
.hero-section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    background-color: var(--bg-color);
    position: relative;
    overflow: hidden;
}

/* VybledlĂ© logo v pozadĂ­ */
.hero-section::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70vh; /* Velikost loga na pozadĂ­ */
    height: 70vh;
    background-image: url('../img/logo.png'); /* PĹ™edpoklĂˇdĂˇ umĂ­stÄ›nĂ­ CSS ve sloĹľce css/ */
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.04; /* Velmi jemnĂˇ prĹŻhlednost */
    z-index: 0;
    pointer-events: none; /* KliknutĂ­ projdou skrz pozadĂ­ */
}

.glow-ring {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(82, 196, 26, 0.05) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    pointer-events: none;
}

.hero-content {
    z-index: 1;
    position: relative; /* ZajiĹˇĹĄuje, Ĺľe obsah bude nad vybledlĂ˝m logem */
}

.hero-content h1 {
    font-size: 4rem;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary-green);
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-btn {
    color: var(--primary-green);
    text-decoration: none;
    border: 2px solid var(--primary-green);
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.scroll-btn:hover {
    background-color: var(--primary-green);
    color: var(--bg-color);
}

/* --- LANDING PAGE: O PROJEKTU --- */
.info-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.info-section h2 {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

/* ÄŚistĂ˝ textovĂ˝ wrapper mĂ­sto rĂˇmeÄŤkĹŻ */
.info-text-wrapper {
    max-width: 900px;
    margin: 0 auto;
}

.info-text-wrapper p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 25px;
    text-align: left; /* Text zĹŻstĂˇvĂˇ zarovnanĂ˝ doleva pro pohodlnĂ© ÄŤtenĂ­ */
    line-height: 1.8;
}

.info-text-wrapper p:last-child {
    margin-bottom: 0;
}

/* --- LANDING PAGE: TĂťM --- */
.team-section {
    padding: 100px 0;
    text-align: center;
}

.team-section h2 {
    color: var(--primary-green);
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
}

.team-member {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    width: 250px;
    border: 1px solid rgba(82, 196, 26, 0.1);
    transition: transform 0.3s ease;
}

.team-member:hover {
    transform: translateY(-10px);
    border-color: var(--primary-green);
}

.member-avatar { width: 150px; height: 150px; background-color: #333; border-radius: 50%; margin: 0 auto 20px auto; border: 3px solid var(--primary-green); background-size: cover; background-position: center; }

/* --- DEV BLOG STRUKTURA --- */
.blog-container {
    padding-top: 140px; 
    padding-bottom: 100px;
    min-height: 85vh;
}

.blog-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 10px;
}

.blog-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
}

.blog-card {
    background-color: var(--bg-secondary);
    padding: 30px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-green);
    border-top: 1px solid rgba(255,255,255,0.05);
    border-right: 1px solid rgba(255,255,255,0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--primary-green);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.blog-card h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.blog-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
}

.read-more {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: bold;
    font-size: 0.95rem;
    cursor: pointer;
}

.read-more:hover {
    text-decoration: underline;
}

/* --- DETAIL ÄŚLĂNKU --- */
.article-container {
    padding-top: 140px; 
    padding-bottom: 100px;
    min-height: 85vh;
    max-width: 800px;
    margin: 0 auto;
}

.back-btn {
    display: inline-block;
    color: var(--text-muted);
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 500;
    transition: color 0.3s;
}

.back-btn:hover {
    color: var(--primary-green);
}

.article-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #ffffff;
}

.article-content {
    margin-top: 40px;
    font-size: 1.15rem;
    color: #cccccc;
}

.article-content p {
    margin-bottom: 20px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-green);
    padding-left: 20px;
    margin: 30px 0;
    font-style: italic;
    color: #ffffff;
    background-color: rgba(82, 196, 26, 0.05);
    padding: 20px;
    border-radius: 0 8px 8px 0;
}

/* --- PATIÄŚKA --- */
.main-footer {
    background-color: #050505;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* --- RESPONZIVITA --- */
@media (max-width: 768px) {
    
    .team-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .team-member { width: 100%; max-width: 300px; margin: 0 auto; }

    .blog-title {
        font-size: 2.2rem;
    }

    .article-title {
        font-size: 2rem;
    }
    
    .info-text-wrapper {
        padding: 0 10px;
    }
}/* OVERRIDES PRO OPRAVY ROZLOĹ˝ENĂŤ */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.page-section {
    flex: 1; /* ZatlaÄŤĂ­ footer vĹľdy ĂşplnÄ› dolĹŻ */
}
.team-member, .blog-card, .article-content {
    word-break: break-word;      /* ZabrĂˇnĂ­ pĹ™eteÄŤenĂ­ u dlouhĂ˝ch textĹŻ bez mezer */
    overflow-wrap: break-word;
}
/* Ăšprava gridu, aby se kratĹˇĂ­ karty nesnaĹľily roztahovat nehezky dolĹŻ */
.team-grid {
    align-items: start; 
}

/* STRUCTURED EVENT CARDS */
#events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px; /* Karty blĂ­Ĺľe k sobÄ› */
    align-items: stretch;
    justify-content: start;
    margin-top: 40px; /* DĂˇle od nadpisu */
}

.event-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-card, #111);
    padding: 0 !important; /* Reset paddingu, padding dĂˇme obsahu */
    border: 1px solid rgba(255,255,255,0.05) !important;
    border-radius: 12px;
    overflow: hidden;
    height: 100%;
}

.event-poster-container {
    width: 100%;
    height: 180px; /* PevnĂˇ vĂ˝Ĺˇka pro obrĂˇzek u vĹˇech karet */
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.event-poster-container img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Nenatahuje se, neusekĂˇvĂˇ se */
    background: rgba(0,0,0,0.3);
}

.placeholder-poster {
    background: #1a1a1a;
}

.event-card-content {
    display: flex;
    flex-direction: column;
    padding: 20px;
    flex: 1; /* RoztĂˇhne se a vyplnĂ­ zbylĂ© mĂ­sto */
}

.event-title {
    color: var(--highlight-color, #00db93);
    margin-bottom: 15px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.event-meta {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.event-meta p {
    margin-bottom: 5px;
    color: #eee;
    font-size: 0.9rem;
}

.event-meta i {
    color: var(--highlight-color);
    margin-right: 5px;
}

.event-description {
    color: #aaa;
    font-size: 0.9rem;
    line-height: 1.5;
    flex: 1; /* Aby pĹ™Ă­padnĂˇ tlaÄŤĂ­tka mohla bĂ˝t dole (kdyby byla) */
}
@media (max-width: 992px) {
    #events-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    #events-grid { grid-template-columns: 1fr; }
}




/* Hamburger Menu CSS */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}
.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(9px) rotate(45deg); background-color: var(--primary-green); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); background-color: var(--primary-green); }

@media (max-width: 768px) {
    .hamburger { display: flex; }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--bg-secondary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.5);
        z-index: 1000;
    }
    .nav-menu.show { right: 0; }
    .nav-menu .nav-link { font-size: 1.5rem; }
}



/* Responzivní Tým - flex úpravy */
@media (max-width: 992px) {
    .team-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    .team-member { width: 100%; max-width: none; margin: 0; }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
    .team-member { max-width: 350px; margin: 0 auto; }
}
