:root {
    /* Color Palette */
    --primary-color: #7B1113;
    /* Deep Red/Burgundy - matching typical folklore attire */
    --secondary-color: #1A1A1A;
    /* Dark Grey/Black */
    --accent-color: #D4AF37;
    /* Gold - for instruments/details */
    --background-light: #F9F9F9;
    --background-dark: #f0f0f0;
    --text-main: #333333;
    --text-light: #666666;
    --white: #ffffff;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --container-width: 1200px;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    /* Elegant, traditional feel */
    --font-body: 'Inter', sans-serif;
    /* Modern, readable */

    /* Transitions */
    --transition-fast: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--background-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--secondary-color);
    margin-bottom: var(--spacing-sm);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 2rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-top: 3rem;
    color: var(--primary-color);
}

h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 2px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

/* Header & Nav */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm) 0;
}

.logo {
    display: block;
    max-width: 250px;
}

.logo img {
    height: auto;
    width: 100%;
    display: block;
}

.nav-links {
    display: flex;
    gap: var(--spacing-md);
    list-style: none;
}


.nav-links a {
    font-weight: 500;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}

.nav-links a[target="_blank"]::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-left: 3px;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
    vertical-align: middle;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
    margin-bottom: 8px;
}

.nav-links a:hover[target="_blank"]::after {
    opacity: 1;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 2.1rem;
}

/* Hero Section */
.hero {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: var(--spacing-lg) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://www.istvanci.cz/fotky/titulni-fotka.jpg');
    background-size: cover;
    background-position: center 28%;
}

.hero h1 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.hero-home {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: var(--spacing-lg) 0;
}

.hero-home .container {
    width: 100%;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto var(--spacing-md);
    opacity: 0.9;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background-color var(--transition-fast);
    margin: 5px;
}

.btn:hover {
    background-color: #5a0c0e;
}

/* Sections */
.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0.5rem auto 0;
}

/* Footer */
/* Footer */
footer {
    background-color: #f9f7f2;
    color: var(--text-main);
    padding: var(--spacing-lg) 0 0;
    text-align: center;
    position: relative;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.03);
}


.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    text-align: left;
}

.footer-column h4 {
    color: var(--primary-color);
    margin-bottom: var(--spacing-md);
    font-size: 1.2rem;
    position: relative;
    display: inline-block;
}

.footer-column h4::after {
    content: '';
    display: block;
    width: 30px;
    height: 2px;
    background-color: var(--accent-color);
    margin-top: 5px;
}

.footer-logo img {
    max-height: 60px;
    width: auto;
    filter: none;
    transition: transform var(--transition-fast);
}

.footer-logo:hover img {
    opacity: 1;
    transform: scale(1.05);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    font-size: 1rem;
}

.social-links a {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    background-color: var(--white);
    border-radius: 50px;
    color: var(--text-main);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all var(--transition-fast);
}

.social-links a span {
    font-size: 1.2rem;
}

.social-links a:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    color: var(--white) !important;
}

footer .social-links a.facebook:hover {
    background-color: #1877F2;
    border-color: #1877F2;
}

footer .social-links a.instagram:hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    border-color: #d6249f;
}

footer .social-links a.youtube:hover {
    background-color: #FF0000;
    border-color: #FF0000;
}

footer .social-links a.spotify:hover {
    background-color: #1DB954;
    border-color: #1DB954;
}

.copyright {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--spacing-md) 0;
    margin-top: var(--spacing-md);
    font-size: 0.9rem;
    color: var(--text-light);
    background-color: rgba(0, 0, 0, 0.02);
}

.copyright a {
    color: var(--primary-color);
    font-weight: 500;
}


/* Responsive */
@media (max-width: 768px) {
    .navbar {
        position: relative;
    }

    .mobile-menu-btn {
        display: block;
        padding-right: 10px;
    }

    .nav-links {
        display: none;
        /* JS will toggle this */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-sm);
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    h1 {
        font-size: 2.2rem;
    }
}

/* Album Details Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-fast);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-light);
    line-height: 1;
}

.modal-close:hover {
    color: var(--primary-color);
}

.tracklist {
    margin-top: var(--spacing-sm);
}

.track-item {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.95rem;
}

.track-item:last-child {
    border-bottom: none;
}

/* Make album cards look clickable */
.album-card {
    cursor: pointer;
}

/* Timeline History */
.timeline {
    position: relative;
    padding: var(--spacing-md) 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, transparent, var(--primary-color), var(--primary-color), transparent);
    opacity: 0.3;
}

.timeline-item {
    position: relative;
    padding-left: 60px;
    margin-bottom: var(--spacing-lg);
}

.timeline-dot {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    border: 4px solid var(--white);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.1);
    z-index: 1;
}

.timeline-year {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.2rem 0.8rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
}

.timeline-content {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-left: 4px solid var(--primary-color);
    transition: transform var(--transition-fast);
}

.timeline-content p {
    margin-bottom: 0.8rem;
    text-align: left;
    font-size: 1.1em;
}

.timeline-content p:last-child {
    margin-bottom: 0;
}

.timeline-content a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.timeline-content a:hover {
    text-decoration: underline;
}

.timeline-content:hover {
    transform: translateX(5px);
}

@media (max-width: 768px) {
    .timeline::before {
        left: 15px;
    }

    .timeline-dot {
        left: 6px;
    }

    .timeline-item {
        padding-left: 45px;
    }
}

/* Article Elements */
blockquote {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-style: italic;
    color: var(--primary-color);
    margin: var(--spacing-md) 0;
    padding: var(--spacing-sm) var(--spacing-md);
    border-left: 5px solid var(--accent-color);
    background-color: rgba(212, 175, 55, 0.05);
    position: relative;
    line-height: 1.6;
}

blockquote::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 10px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.2;
    font-family: serif;
}

.article-highlight {
    background-color: var(--white);
    padding: var(--spacing-md);
    border-radius: 8px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    margin: var(--spacing-md) 0;
    position: relative;
    overflow: hidden;
}

.article-highlight::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--primary-color);
}

.article-highlight p {
    margin-bottom: 0 !important;
    font-style: italic;
    color: var(--secondary-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    blockquote {
        font-size: 1.2rem;
        line-height: 1.6;
    }
}

/* Advanced Article Styling */
.article-wrapper {
    max-width: 900px;
    margin: -100px auto 4rem;
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

.article-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-main);
}

.article-text p {
    margin-bottom: 2rem;
    text-align: justify;
}

.article-text p.drop-cap::first-letter {
    font-family: var(--font-heading);
    font-size: 4rem;
    float: left;
    margin-right: 15px;
    line-height: 1;
    color: var(--primary-color);
    font-weight: 700;
}

.article-section {
    margin-bottom: 4rem;
}

.article-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.1), transparent);
    margin: 3rem 0;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeInUp 1s ease forwards;
}

@media (max-width: 800px) {
    .article-wrapper {
        margin: -50px 0.5rem 2rem;
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }

    .article-text p {
        text-align: left;
    }
}

/* Article Links Styling */
/* Article Links Styling */
.article-text a:not(.btn) {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all var(--transition-fast);
}

.article-text a:not(.btn):hover {
    border-bottom-color: var(--primary-color);
}

.article-text a[target="_blank"]:not(.btn)::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 5px;
    background-color: currentColor;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'%3E%3C/path%3E%3Cpolyline points='15 3 21 3 21 9'%3E%3C/polyline%3E%3Cline x1='10' y1='14' x2='21' y2='3'%3E%3C/line%3E%3C/svg%3E") no-repeat center;
    mask-size: contain;
    -webkit-mask-size: contain;
    vertical-align: middle;
    opacity: 0.8;
}

.article-image {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.article-image-caption {
    font-size: 0.9rem;
    color: var(--text-light);
    text-align: center;
    margin-bottom: 2rem;
    font-style: italic;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 2rem 0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container-fb {
    position: relative;
    padding-bottom: 130%;
    /* Approximate for 500x650 ratio */
    height: 0;
    overflow: hidden;
    max-width: 500px;
    margin: 2rem auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Use aspect-ratio where supported */
@supports (aspect-ratio: 16/9) {
    .video-container {
        padding-bottom: 0;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .video-container-fb {
        padding-bottom: 0;
        height: auto;
        aspect-ratio: 500 / 650;
    }

    .video-container iframe,
    .video-container-fb iframe {
        position: static;
        width: 100%;
        height: 100%;
    }
}

.video-container iframe,
.video-container object,
.video-container embed,
.video-container-fb iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}