/* Import fontů */
@import url('https://fonts.googleapis.com/css2?family=Metamorphous&family=Roboto:wght@400;700&display=swap');

html {
    scroll-behavior: smooth;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    background-color: #14281D;
    overflow-x: hidden;
}

.font-metamorphous {
    font-family: 'Metamorphous', serif;
    letter-spacing: 4px;
}

/* Navbar Styly */
.custom-navbar {
    background: rgba(20, 40, 29, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 0;
    transition: all 0.3s ease;
    z-index: 1050;
}

.navbar-brand {
    padding: 0;
}

.navbar-logo {
    height: 60px;
    width: auto;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.3));
    transition: transform 0.3s ease;
}

.navbar-logo:hover {
    transform: scale(1.1);
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1px;
    margin: 0 10px;
    color: rgba(255, 255, 255, 0.75) !important;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.4)), url('img/Background_3.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 100vh;
    width: 100%;
}

.white-strip {
    background-color: white;
    width: 100vw;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.main-title, .sub-title {
    background-image: url('img/Background_3.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1.2;
    margin: 0;
}

.main-title {
    font-size: clamp(3rem, 10vw, 8rem);
    text-transform: uppercase;
}

.sub-title {
    font-size: clamp(0.7rem, 1.1vw, 1.1rem);
    font-weight: 400;
    letter-spacing: 2px;
    margin-top: 15px;
    text-transform: uppercase;
    max-width: 80%;
    text-align: center;
}

/* Obsahové sekce */
.content-section {
    padding: 120px 50px;
    min-height: 100vh;
    color: white;
}

.bg-dark-forest {
    background-color: #0d1a13;
}

/* Animace šipky */
#scrollArrow {
    text-decoration: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    display: inline-block;
}

.arrow-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

/* Mobilní menu */
@media (max-width: 991px) {
    .navbar-collapse {
        background: rgba(20, 40, 29, 0.95);
        margin-top: 10px;
        padding: 20px;
        border-radius: 8px;
    }
}

/* Styly pro sekci O nás */
.about-section {
    position: relative;
    background-image: url('img/Background_3.png'); /* Použijeme stejné pozadí jako hero pro konzistenci */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Přidáme tmavý překryv, aby text lépe vynikl */
    background-blend-mode: multiply;
    background-color: rgba(20, 40, 29, 0.9);
}

.about-text-block {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

/* Kontejner pro mapu s "lesním" efektem */
.map-container {
    position: relative;
    border: 2px solid rgba(255, 255, 255, 0.1);
    background: rgba(13, 26, 19, 0.6); /* Tmavo-zelené pozadí */
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.map-container:hover {
    transform: scale(1.02);
}

.map-image {
    max-height: 450px;
    object-fit: contain;
}

/* Lore blok */
.lore-block {
    background: rgba(0, 0, 0, 0.4); /* Tmavší, mírně průhledné pozadí */
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.6);
}

.lore-block h3 {
    font-size: 2rem;
    color: #fff;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.lore-text {
    font-family: 'Metamorphous', serif;
    font-size: 1.2rem;
    line-height: 2;
    color: #e0e0e0; /* Jemně šedá pro čitelnost na tmavém */
    text-align: center;
    letter-spacing: 1px;
}

/* Kontejner pro mapu */
.map-wrapper {
    position: relative;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.1);
}

.map-img {
    width: 100%;
    height: auto;
    display: block;
    filter: sepia(20%) contrast(110%);
}

/* Styl popisků na mapě */
.map-label {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translate(-50%, -50%);
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: #ffcc00;
    border-radius: 50%;
    box-shadow: 0 0 15px #ffcc00;
    margin-bottom: 5px;
    animation: pulse 2s infinite;
}

.label-text {
    background: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: 'Metamorphous', serif;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Titulek mapy */
.map-title {
    position: absolute;
    bottom: 20px;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    color: rgba(0,0,0,0.7); /* Tmavší, aby vypadal jako nápis na papíře */
    letter-spacing: 3px;
    pointer-events: none;
}

/* Dekorace pro textový blok */
.border-forest {
    border-left: 4px solid #2e5a40;
    background: rgba(255, 255, 255, 0.05);
}

.text-light-green {
    color: #a8d5ba;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

/* Responzivita - menší text na mobilu */
@media (max-width: 576px) {
    .label-text { font-size: 0.6rem; padding: 2px 6px; }
    .dot { width: 8px; height: 8px; }
}

/* Specifické styly pro kartu Lesapána */
.lesapan-card {
    background: rgba(255, 255, 255, 0.03); /* Velmi jemné pozadí */
    border: 1px solid rgba(168, 213, 186, 0.15); /* Barva tvé mapy/textu */
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
}

.lesapan-card:hover {
    transform: scale(1.01);
    border-color: rgba(168, 213, 186, 0.4);
}

.lesapan-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.lead-text {
    font-size: 1.4rem;
    color: #a8d5ba; /* Tvá světle zelená */
    font-style: italic;
}

.forest-divider {
    border: 0;
    height: 1px;
    background-image: linear-gradient(to right, transparent, #2e5a40, transparent);
    margin: 30px 0;
}

.warning-box {
    background: rgba(220, 53, 69, 0.1); /* Jemně červený nádech pro nebezpečné těstoviny */
    border-left: 4px solid #dc3545;
    padding: 15px 20px;
    border-radius: 0 8px 8px 0;
}

.warning-box strong {
    color: #ff4d5e;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-img {
    width: 300px;
    height: 500px;
    object-fit: cover;
    border: 4px solid #a8d5ba;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.btn-forest {
    border: 1px solid #a8d5ba;
    color: #a8d5ba;
    padding: 8px 25px;
    margin: 5px;
    transition: 0.3s;
}

.btn-forest.active, .btn-forest:hover {
    background-color: #a8d5ba;
    color: #14281D;
}

/* Úprava šipek Bootstrapu, aby byly lépe vidět */
.carousel-control-prev-icon, .carousel-control-next-icon {
    filter: invert(1) sepia(100%) saturate(200%) hue-rotate(90deg); /* Obarví šipky do zelena */
}

/* Změna barvy ikon šipek */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    /* Vytvoříme si vlastní ikonu pomocí SVG, abychom mohli měnit barvu přímo */
    background-image: none; 
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a8d5ba; /* Tvá světle zelená */
    font-size: 2.5rem; /* Zvětšení šipky */
    transition: color 0.3s ease, transform 0.2s ease;
}

/* Nahrazení Bootstrap ikon za BI (Bootstrap Icons), které už v projektu máš */
.carousel-control-prev-icon::after {
    content: "\F284"; /* Kód pro bi-chevron-left */
    font-family: "bootstrap-icons";
}

.carousel-control-next-icon::after {
    content: "\F285"; /* Kód pro bi-chevron-right */
    font-family: "bootstrap-icons";
}

/* Efekt při najetí myší na šipku */
.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
    color: #ffffff; /* Při najetí zbělá */
    transform: scale(1.2);
}

/* Pozadí pod šipkami (volitelné - pokud je chceš víc zvýraznit) */
.carousel-control-prev,
.carousel-control-next {
    width: 10%; /* Zvětší plochu, na kterou se dá kliknout */
    opacity: 0.8;
}

.pet-section {
    background: rgba(168, 213, 186, 0.05);
    border: 1px dashed rgba(168, 213, 186, 0.3);
    border-radius: 15px;
}

.pet-img {
    max-height: 150px;
    filter: drop-shadow(0 0 15px rgba(0, 255, 127, 0.5)); /* Zelená záře kolem Archibalda */
    transition: transform 0.3s ease;
}

.pet-img:hover {
    transform: scale(1.1) rotate(5deg);
}

/* Styly pro karty schopností */
.ability-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(168, 213, 186, 0.2);
    border-radius: 15px;
    height: 100%;
    transition: all 0.3s ease;
}

.ability-card:hover {
    background: rgba(168, 213, 186, 0.1);
    transform: translateY(-10px);
    border-color: #a8d5ba;
}

.ability-icon {
    width: 80px;
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(168, 213, 186, 0.4));
}

/* Speciální efekt pro Ultimátku */
.ultimate-ability {
    border: 1px solid rgba(255, 204, 0, 0.3);
    background: rgba(255, 204, 0, 0.03);
}

.ultimate-ability:hover {
    border-color: #ffcc00;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.2);
}

.ultimate-ability .ability-icon {
    filter: drop-shadow(0 0 15px rgba(255, 204, 0, 0.6));
}

/* Sekce platformy se svitkem */
.scroll-container {
    position: relative;
    display: inline-block;
}

.scroll-img {
    width: 100%;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.5));
}

.scroll-text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%; /* Aby text nepřesahoval okraje svitku */
    color: #4a3427; /* Tmavě hnědá barva pro efekt inkoustu na papíře */
}

.scroll-title {
    font-size: clamp(1.2rem, 2.5vw, 2.5rem);
    color: #4a3427;
    letter-spacing: 2px;
}

.platform-list {
    font-size: clamp(1rem, 2vw, 2rem);
    font-weight: bold;
    color: #5d4037;
    margin-top: 10px;
}

/* Úprava sekce, aby nebyla prázdná */
#platformy {
    min-height: 80vh; 
}

/* Specifické styly pro sekci Sponzoři */
.maturity-warning {
    background: rgba(0, 0, 0, 0.3);
    position: relative;
    transition: all 0.4s ease;
}

.maturity-warning:hover {
    box-shadow: 0 0 25px rgba(255, 193, 7, 0.2); /* Jemná oranžová záře jako varování */
    transform: translateY(-5px);
}

.text-warning {
    color: #ffc107 !important; /* Výraznější barva pro tu maturitu */
    text-shadow: 0 0 10px rgba(255, 193, 7, 0.5);
}

/* Úprava info-boxu, pokud ho ještě nemáš definovaný pro obecné použití */
.info-box {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
}

/* Styly pro kontakty */
.contact-list li {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: rgba(168, 213, 186, 0.1);
    border: 1px solid rgba(168, 213, 186, 0.3);
    border-radius: 50%;
    color: #a8d5ba;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #a8d5ba;
    color: #14281D;
    transform: translateY(-5px);
    box-shadow: 0 0 15px rgba(168, 213, 186, 0.5);
}

/* Úprava mapy, aby nebyla moc jasná */
.map-wrapper iframe {
    border-radius: 13px;
}

footer {
    background-color: #0d1a13; /* Stejná tmavá barva jako u sekce Povolání */
    color: rgba(255, 255, 255, 0.6); /* Jemně šedobílá barva */
    font-size: 0.9rem;
}

footer .container {
    border-top: 1px solid rgba(168, 213, 186, 0.1); /* Velmi jemná zelená linka navrchu */
    padding-top: 20px;
}