body {
    font-family: 'Montserrat', Arial, sans-serif;
    background: #181d23;
    margin: 0;
    padding: 0;
}

html {
    scroll-padding-top: 100px; /* kvůli fixnímu menu a kotvám */
}

.fixed-navbar {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    z-index: 1055;
}

body {
    padding-top: 76px;
}

.hero-section {
    min-height: 65vh;
    background: linear-gradient(180deg, #181d23 75%, #232b33 100%);
    position: relative;
    z-index: 1;
}

.hero-section h1 {
    text-shadow: 0 2px 18px #0005;
    font-size: 2.7rem;
}

.hero-section:after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(18,20,30,0.62);
    z-index: 1;
    pointer-events: none;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.section-dark {
    background: #1b2026;
    color: #fff;
}

/* ----------- TÁBORY KARTY ------------ */

.card.camp-flip {
    background: transparent;
    perspective: 1100px;
    border-radius: 2rem;
    min-height: 440px;
    box-shadow: none;
}

.camp-flip-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(.8, .01, .18, 1.04);
    transform-style: preserve-3d;
}

.camp-flip.flipped .camp-flip-inner {
    transform: rotateY(180deg);
}

.camp-flip-front,
.camp-flip-back {
    backface-visibility: hidden;
    position: absolute;
    width: 100%;
    min-height: 410px;
    left: 0;
    top: 0;
    border-radius: 2rem;
    color: #fff !important;
}

.camp-flip-front {
    z-index: 2;
    color: #fff !important;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.camp-flip-front p,
.camp-flip-front .main-camp-desc {
    color: #fff !important;
    opacity: 1 !important;
    font-size: 1.11rem;
    line-height: 1.5;
}

.camp-flip-back {
    transform: rotateY(180deg);
    z-index: 3;
    overflow-y: auto;
    max-height: 410px;
    padding: 2.1rem 1.4rem 1.4rem 1.4rem;
    font-size: 1.09rem;
    color: #fff !important;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.camp-flip-back .camp-back-text {
    color: #fff;
    font-size: 1.03rem;
    word-break: break-word;
}

.camp-flip-back p {
    color: #fff !important;
    margin-bottom: 0.7rem;
    font-size: 1.04rem;
}

.camp-flip-back .btn-back {
    margin-top: 1.1rem;
}

.camp-glass {
    background: rgba(34,38,49,0.97);
    border-radius: 2rem;
    box-shadow: 0 4px 32px #0002;
    border: 1px solid #232a35;
    transition: box-shadow 0.3s;
}

.camp-flip:hover .camp-glass,
.camp-flip.flipped .camp-glass {
    box-shadow: 0 8px 36px #FFD02B88, 0 4px 32px #0004;
}

.btn-detail, .btn-back {
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-detail:hover, .btn-back:hover {
    background: #FFD02B;
    color: #1b2026;
    border-color: #FFD02B;
}

.timer-box {
    gap: 2.5rem !important;
}

.timer-item {
    min-width: 72px;
    font-weight: bold;
    font-size: 1.2rem;
}

.timer-glass {
    background: rgba(38,44,59,0.82);
    border-radius: 1rem;
    color: #fff;
    box-shadow: 0 2px 16px #0004;
    border: 1px solid #232a35;
    transition: background 0.3s;
}

.timer-item span {
    letter-spacing: 1px;
}

/* Větší mezera mezi kartami a timerem */
.timer-row {
    margin-top: 5.5rem !important;
}

/* ---- NAV ---- */
.nav-link.active, .navbar-nav .nav-link.active {
    color: #fff !important;
    font-weight: bold;
    text-decoration: none !important;
    background: none !important;
}
.navbar .btn-warning {
    border-radius: 2em;
    font-weight: bold;
    background: #FFD02B;
    color: #181d23;
    border: none;
    box-shadow: 0 2px 12px #FFD02B33;
    transition: background 0.2s, color 0.2s;
}
.navbar .btn-warning:hover, .navbar .btn-warning:focus {
    background: #f7ba00;
    color: #181d23;
}

/* ---- SCROLLBAR ---- */
::-webkit-scrollbar {
    width: 9px;
    background: #23272e;
}
::-webkit-scrollbar-thumb {
    background: #232b33;
    border-radius: 6px;
}

/* -------- RESPONSIVITA -------- */
@media (max-width: 991px) {
    .fixed-navbar { padding-left: 0; }
    body { padding-top: 68px; }
    .camp-flip-front, .camp-flip-back { min-height: 480px; max-height: 480px; }
    .timer-row { margin-top: 2.5rem !important; }
}

@media (max-width: 767px) {
    .hero-section h1 { font-size: 2.1rem; }
    .camp-flip-front, .camp-flip-back { min-height: 460px; max-height: 460px; }
    .timer-box { gap: 1rem !important; }
}
