/* CSS */
:root {
    --primary-bg: #111;
    --text-color: #eee;
    --accent-color: #d32f2f;
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1001;
    background: var(--accent-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    font-size: 1.5em;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.3s,
        background 0.2s;
}
#back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}
#back-to-top:hover {
    background: #fff;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
}
body {
    font-family: "Arial", sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    scroll-behavior: smooth;
    transition:
        background 0.3s,
        color 0.3s;
}

body.light-mode {
    --primary-bg: #f7f7f7;
    --text-color: #222;
    --accent-color: #1976d2;
    background-color: var(--primary-bg);
    color: var(--text-color);
}
body.light-mode h1,
body.light-mode h2,
body.light-mode h3 {
    color: var(--accent-color);
}
body.light-mode section,
body.light-mode .member,
body.light-mode .gigs table,
body.light-mode .gallery img {
    color: #222;
}
body.light-mode .gigs th {
    color: var(--accent-color);
}
body.light-mode .gigs td {
    color: #222;
}
body.light-mode .gallery img {
    color: #222;
}

body.light-mode header {
    background: #fff;
    border-bottom: 2px solid var(--accent-color);
}
body.light-mode nav a {
    color: var(--text-color);
}
body.light-mode nav a:hover {
    color: var(--accent-color);
}
body.light-mode .member {
    background: #fff;
    border: 1px solid #ddd;
}
body.light-mode .contact-info {
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    padding: 24px 12px;
    max-width: 500px;
    margin: 32px auto 0 auto;
}
body.light-mode .contact-info a,
body.light-mode .contact-info strong {
    color: #1976d2;
}
body.light-mode .contact-info p {
    color: #222;
}
body.light-mode .gigs table {
    background: #fff;
}
body.light-mode .gigs tr:hover {
    background: #f0f0f0;
}
body.light-mode .gallery img {
    border: 1px solid #ddd;
}
body.light-mode footer {
    background: #fff;
    color: #222;
    border-top: 1px solid #ddd;
}
body.light-mode footer a {
    color: #1976d2;
}
header {
    background: #000;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--accent-color);
}
nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 0;
    margin: 0;
    align-items: center;
    transition: right 0.3s;
}

#hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
    margin-left: 10px;
}
#hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    margin: 5px 0;
    background: var(--accent-color);
    border-radius: 2px;
    transition: all 0.3s;
}

@media (max-width: 800px) {
    #hamburger {
        display: flex;
    }
    nav ul#main-menu {
        flex-direction: column;
        align-items: flex-start;
        position: fixed;
        top: 0;
        right: -100vw;
        width: 70vw;
        max-width: 320px;
        height: 100vh;
        background: var(--primary-bg);
        box-shadow: -2px 0 16px rgba(0, 0, 0, 0.15);
        padding: 80px 24px 24px 24px;
        gap: 18px;
        z-index: 1050;
        transition: right 0.3s;
    }
    nav ul#main-menu.open {
        right: 0;
    }
    nav ul#main-menu li {
        width: 100%;
        text-align: left;
    }
    header {
        padding: 0.5rem 0;
    }
}

/* Hamburger animace při otevření */
#hamburger.open span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
#hamburger.open span:nth-child(2) {
    opacity: 0;
}
#hamburger.open span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}
nav a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

nav button {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.3em;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 50%;
    transition:
        background 0.2s,
        color 0.2s;
}
nav button:hover {
    background: var(--accent-color);
    color: #fff;
}
nav a:hover {
    color: var(--accent-color);
}
section {
    padding: 100px 20px 60px;
    max-width: 1000px;
    margin: auto;
}
h1,
h2,
h3 {
    color: var(--accent-color);
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 2px;
}
.hero {
    text-align: center;
    margin-top: 60px;
    padding-bottom: 20px;
    border-bottom: 1px solid #333;
}
.hero p {
    font-size: 1.2rem;
    color: #aaa;
}
.members {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 30px;
}
.member {
    text-align: center;
    background: #1a1a1a;
    padding: 20px;
    border: 1px solid #333;
    width: 40%;
    min-width: 250px;
}
.member img {
    width: 100%;
    height: auto;
    border-bottom: 3px solid var(--accent-color);
    filter: grayscale(80%);
    transition: filter 0.3s ease;
}
.member img:hover {
    filter: grayscale(0%);
}
.gigs table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 30px;
    background: #1a1a1a;
}
.gigs th,
.gigs td {
    padding: 15px;
    border-bottom: 1px solid #333;
    text-align: left;
}
.gigs th {
    color: var(--accent-color);
}
.gigs tr:hover {
    background: #222;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.gallery img {
    width: 100%;
    height: auto;
    border: 1px solid #333;
    filter: contrast(120%);
}
.contact-info {
    text-align: center;
    background: #1a1a1a;
    padding: 30px;
    border: 1px solid #333;
    margin-top: 30px;
}
.socials {
    margin-top: 20px;
}
.socials a {
    color: var(--text-color);
    margin: 0 15px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    transition: color 0.3s;
}
.socials a:hover {
    color: var(--accent-color);
}
footer {
    text-align: center;
    padding: 25px;
    background: #000;
    color: #777;
    border-top: 2px solid var(--accent-color);
}
