:root {
    --primary: #69aab5;
    --primary-dark: #267481;
    --bg-dark: #0f172a;
    --bg-card: #111827;
    --text-main: #f9fafb;
    --muted: #9ca3af;
}

* {
    box-sizing: border-box;
}

body {
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, #1f2933 0, #020617 45%, #020617 100%);
    color: var(--text-main);
    min-height: 100vh;
}

/* Navbar */
.navbar {
    backdrop-filter: blur(18px);
    background: rgba(15, 23, 42, 0.85);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.navbar-nav .nav-link {
    font-weight: 500;
    position: relative;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #69aab5, #267481);
    transition: width 0.2s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
}
.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero section */
.hero {
    padding: 6rem 1rem 4rem;
}

.hero-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.badge-pill {
    border-radius: 999px;
    font-size: 0.8rem;
    padding: 0.45rem 0.9rem;
    background: rgba(148, 163, 184, 0.12);
    color: var(--muted);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.hero-title span {
    background: linear-gradient(90deg, #69aab5, #267481);
    -webkit-background-clip: text;
    color: transparent;
}

.hero-subtitle {
    color: var(--muted);
    max-width: 600px;
}

.btn-primary-custom {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border: none;
    font-weight: 600;
}

.btn-primary-custom:hover {
    filter: brightness(1.05);
}

.btn-outline-custom {
    border-color: var(--muted);
    color: var(--text-main);
}

.btn-outline-custom:hover {
    background: rgba(148, 163, 184, 0.18);
    border-color: var(--muted);
}

.hero-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    font-size: 0.85rem;
}

.hero-pill {
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.2);
}

/* Gallery / Carousel card */
.gallery-card {
    border-radius: 1.5rem;
    background: radial-gradient(circle at top, #111827 0, #020617 65%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.9);
    overflow: hidden;
}

.gallery-card-header {
    padding: 1.2rem 1.5rem 0.7rem;
}

.gallery-card-header small {
    color: var(--muted);
}

.carousel,
.carousel-inner,
.carousel-item,
.carousel-item img {
    border-radius: 1.5rem;
}

.carousel-item img {
    object-fit: cover;
    height: 260px;
    width: 100%;
}

.carousel-caption {
    background: linear-gradient(
            to top,
            rgba(15, 23, 42, 0.9),
            rgba(15, 23, 42, 0.1)
    );
    border-radius: 1rem;
    padding: 1rem;
}

/* About teaser section */
.about-teaser {
    padding: 3rem 1rem 4rem;
}

.about-card {
    max-width: 900px;
    margin: 0 auto;
    border-radius: 1.5rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(148, 163, 184, 0.25);
    padding: 2rem;
}

/* Footer */
footer {
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    padding: 1.5rem 0;
    margin-top: 2rem;
    background: rgba(2, 6, 23, 0.95);
}

.footer-icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.footer-icon:hover {
    transform: translateY(-2px);
    opacity: 0.8;
}

.footer-email a {
    color: var(--text-main);
    text-decoration: none;
}

.footer-email a:hover {
    text-decoration: underline;
}

/* Breakpoints */
@media (max-width: 767.98px) {
    .hero {
        padding-top: 5rem;
    }
    .gallery-card {
        margin-top: 2rem;
    }
}

/* clanek */
.article-wrapper {
    max-width: 850px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2rem;
}

.article-meta {
    font-size: 0.9rem;
    color: var(--muted, #9ca3af);
}

.article-body p {
    line-height: 1.8;
    margin-bottom: 1.1rem;
}

.article-body h2 {
    margin-top: 2rem;
    margin-bottom: 0.7rem;
    font-size: 1.4rem;
}

.article-body blockquote {
    border-left: 3px solid rgba(148, 163, 184, 0.6);
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: var(--muted, #9ca3af);
}

/* Galerie */
.article-gallery {
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.85);
    overflow: hidden;
}

.article-gallery-inner {
    position: relative;
}

.article-slide {
    display: none;
}

.article-slide.active {
    display: block;
}

.article-slide img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
}

.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: rgba(15, 23, 42, 0.6);
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.gallery-nav-btn i {
    font-size: 1.1rem;
}

.gallery-prev {
    left: 0.75rem;
}

.gallery-next {
    right: 0.75rem;
}

.gallery-dots {
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.5rem 0.8rem;
}

.gallery-dots button {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    border: none;
    background: rgba(148, 163, 184, 0.5);
    padding: 0;
    cursor: pointer;
}

.gallery-dots button.active {
    width: 18px;
    background: linear-gradient(90deg, #69aab5, #267481);
}

/* Extra sekce – odkazy, stažení */
#extra-content {
    margin-top: 2.5rem;
}

.extra-card {
    border-radius: 1.5rem;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(15, 23, 42, 0.8);
    padding: 1.5rem;
}

.extra-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.9rem;
}

.extra-links ul {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.extra-links a {
    text-decoration: none;
}

.extra-links a:hover {
    text-decoration: underline;
}
/* Lokální drobnosti pro about */
.about-hero {
    padding: 6rem 1rem 3rem;
}
.profile-card {
    border-radius: 1.25rem;
    overflow: hidden;
    background: rgba(15,23,42,0.85);
    border: 1px solid rgba(148,163,184,0.18);
}
.profile-photo {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 12px;
    border: 4px solid rgba(255,255,255,0.03);
    box-shadow: 0 8px 30px rgba(2,6,23,0.6);
}
.fact-pill {
    background: rgba(148,163,184,0.06);
    border: 1px solid rgba(148,163,184,0.08);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.9rem;
}
.timeline {
    border-left: 2px solid rgba(148,163,184,0.08);
    padding-left: 1rem;
    margin-left: 0.6rem;
}
.timeline-item {
    position: relative;
    margin-bottom: 1.5rem;
}
.timeline-item::before {
    content: "";
    position: absolute;
    left: -1.125rem;
    top: 0.25rem;
    width: 14px;
    height: 14px;
    background: linear-gradient(90deg,#69aab5,#267481);
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(249,115,22,0.12);
}
.skills-badges .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(148,163,184,0.06);
    color: var(--text-main);
}
.contact-cta {
    border-radius: 1rem;
    padding: 1.25rem;
    background: rgba(15,23,42,0.88);
    border: 1px solid rgba(148,163,184,0.12);
}
@media (max-width: 767.98px) {
    .about-hero { padding-top: 5.2rem; }
}
.text-mute {
    color: rgb(170,171,175);
}

/* Jen nezbytné úpravy pro odkazy a seznam souborů */
.link-reset {
    color: inherit;
    text-decoration: none;
    font-weight: 500;
}
.link-reset:hover,
.link-reset:focus {
    text-decoration: underline;
    color: inherit;
}

.link-list, .file-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.file-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.file-list i {
    font-size: 1.05rem;
    color: var(--muted, #9ca3af);
}
.plain-text {
    color: black;
}

/* drobné lokální úpravy */
.admin-panel { padding: 4rem 0; }
.card-admin { border-radius: 0.8rem; }
.small-muted { font-size: .9rem; color: var(--muted, #9ca3af); }
.table-actions button { margin-right: .35rem; }

/* upravit odsazení u hlavního obsahu, protože navbar už není fixed */
main { padding-top: 1.5rem; }

/* aby se tlačítka v nav pekně rozprostřela k okrajům: */
.navbar .container-fluid { padding-left: 1.25rem; padding-right: 1.25rem; }
/* drobné vylepšení pro mobil */
@media (max-width: 767.98px) {
    .admin-grid { gap: 1rem; }
}
.modal {
    color: #000;
}
.modal .btn {
    color: #000;
}

