/* Milan Nejedlý - Portfolio Website */
:root {
    --bg-dark: #1a1a1a;
    --bg-card: #2a2a2a;
    --text-primary: #f0f0f0;
    --text-secondary: #a0a0a0;
    --accent: #c9a227;
    --accent-hover: #e0b830;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
    padding: 60px 20px;
    text-align: center;
    border-bottom: 3px solid var(--accent);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

header .subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-style: italic;
}

header .years {
    font-size: 1rem;
    color: var(--accent);
    margin-top: 10px;
}

/* Profile Badge Links */
.profile-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.profile-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.profile-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}

.badge-wiki {
    background: #fff;
    color: #000;
}

.badge-imdb {
    background: #f5c518;
    color: #000;
}

.badge-nfa {
    background: #8b0000;
    color: #fff;
}

.badge-ct {
    background: #e30613;
    color: #fff;
}

.badge-csfd {
    background: #ba0305;
    color: #fff;
}

/* Navigation */
nav {
    background: #0a0a0a;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #333;
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--accent);
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Biography Section */
.bio {
    background: var(--bg-card);
    padding: 40px;
    border-radius: 8px;
    margin-bottom: 50px;
    border-left: 4px solid var(--accent);
}

.bio h2 {
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 400;
}

.bio p {
    color: var(--text-secondary);
    margin-bottom: 15px;
    text-align: justify;
}

/* Decade Sections */
.decade-section {
    margin-bottom: 60px;
}

.decade-section h2 {
    font-size: 1.8rem;
    font-weight: 300;
    color: var(--accent);
    margin-bottom: 30px;
    padding-bottom: 10px;
    border-bottom: 1px solid #333;
}

/* Film Cards Grid */
.films-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.film-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.film-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.film-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.film-card .thumbnail {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: #1a1a1a;
}

.film-card .info {
    padding: 20px;
}

.film-card h3 {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.film-card .year {
    font-size: 0.9rem;
    color: var(--accent);
}

.film-card .count {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 5px;
}

/* Film Detail Page */
.film-header {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #0a0a0a 0%, #2a2a2a 100%);
    border-bottom: 3px solid var(--accent);
}

.film-header h1 {
    font-size: 2.2rem;
    font-weight: 300;
    margin-bottom: 10px;
}

.film-header .year {
    font-size: 1.2rem;
    color: var(--accent);
}

.back-link {
    display: inline-block;
    margin: 30px 0;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Gallery Grid */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border-radius: 4px;
    background: var(--bg-card);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 50px;
    color: white;
    cursor: pointer;
    padding: 20px;
    user-select: none;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-nav:hover {
    color: var(--accent);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    background: #0a0a0a;
    color: var(--text-secondary);
    border-top: 1px solid #333;
    margin-top: 60px;
}

footer p {
    font-size: 0.9rem;
}

/* Bio Gallery */
.bio-intro {
    margin-bottom: 30px;
}

.bio-lead {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-style: italic;
    border-left: 3px solid var(--accent);
    padding-left: 20px;
    margin-bottom: 30px;
}

.bio h3 {
    color: var(--accent);
    font-size: 1.3rem;
    font-weight: 400;
    margin-top: 35px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #444;
}

.bio-gallery {
    margin: 30px 0;
}

.bio-gallery.two-photos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.bio-photo {
    margin: 0;
}

.bio-photo img {
    width: 100%;
    max-width: 800px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.bio-photo.main-photo img {
    max-width: 400px;
}

.bio-photo figcaption {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 10px;
    font-style: italic;
}

.awards {
    background: rgba(201, 162, 39, 0.1);
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
}

.awards ul {
    margin-left: 20px;
    margin-top: 10px;
}

.awards li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.bio-credit {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Film Description */
.film-description {
    background: var(--bg-card);
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 30px;
    border-left: 4px solid var(--accent);
}

.film-description p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ČSFD Link */
.csfd-link {
    display: inline-block;
    background: var(--accent);
    color: #000;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    margin-left: 10px;
    transition: background 0.3s;
}

.csfd-link:hover {
    background: var(--accent-hover);
}

/* Section Navigation */
.section-nav {
    background: var(--bg-card);
    padding: 15px 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 52px;
    z-index: 99;
}

.section-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.3s;
}

.section-nav a:hover {
    color: var(--accent);
    background: rgba(201, 162, 39, 0.1);
}

/* Filmografie Page */
.filmografie {
    max-width: 900px;
}

.filmografie-section {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    scroll-margin-top: 120px;
}

.filmografie-section h2 {
    color: var(--accent);
    font-weight: 400;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #444;
}

.filmografie-list {
    list-style: none;
}

.filmografie-list li {
    padding: 10px 0;
    border-bottom: 1px solid #333;
    display: flex;
    align-items: baseline;
    gap: 15px;
}

.filmografie-list li:last-child {
    border-bottom: none;
}

.filmografie-list .year {
    color: var(--accent);
    font-weight: 600;
    min-width: 50px;
}

.filmografie-list a {
    color: #e8d5a3;
    text-decoration: none;
    transition: color 0.3s;
}

.filmografie-list a:visited {
    color: #c4b896;
}

.filmografie-list a:hover {
    color: var(--accent);
    text-decoration: underline;
}

.filmografie-list .country {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    nav ul {
        gap: 15px;
    }

    .section-nav {
        gap: 10px;
        padding: 10px 15px;
        top: 48px;
    }

    .section-nav a {
        font-size: 0.8rem;
        padding: 5px 8px;
    }

    .bio {
        padding: 25px;
    }

    .films-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }

    .lightbox-nav {
        font-size: 30px;
    }
}
