@import url("components/radio.css");
@import url("components/cards.css");
@import url("components/buttons.css");

@import url("components/radio.css");
@import url("components/cards.css");
@import url("components/buttons.css");

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:
        -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
        Cantarell, sans-serif;
    line-height: 1.6;
    color: #fff;
    background-color: #000;
}

/* Header and Navigation - Hidden on all pages (using hamburger menu instead) */
header {
    display: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-menu a:hover {
    color: #007bff;
}

/* Main content */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    min-height: calc(100vh - 200px);
    background-color: #000;
    color: #fff;
}

/* Link colors */

main a:not(.nav-menu a) {
    color: #ff9933;
}

/* Typography */
h1 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #fff;
}

h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #fff;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

p {
    margin-bottom: 3rem;
    line-height: 1.7;
    max-width: 600px;
}

ul {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

li {
    margin-bottom: 0.5rem;
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.featured-image {
    width: 90%;
    max-width: 600px;
    margin: 2rem auto;
    display: block;
}

/* Musik page - offset content to break grid */
body:has([title="Musik"]) .featured-image {
    margin-left: 15%;
    margin-bottom: 3rem;
}

/* Musik page - side by side layout */
.musik-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.musik-videos {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.video-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
}

.video-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.video-thumbnail:hover .play-overlay {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.musik-spotify {
    height: 500px;
}

.musik-spotify iframe {
    border-radius: 8px;
}

/* Video Modal */
.video-modal {
    display: none;
    position: fixed;
    z-index: 500;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.video-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    background: #000;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 50px rgba(255, 255, 255, 0.1);
}

.video-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    background: #fff;
    color: #000;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-modal-close:hover {
    background: #ff0000;
    color: #fff;
    transform: scale(1.1);
}

.video-modal-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 8px;
}

.video-modal-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

@media (max-width: 768px) {
    .musik-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 0.5rem;
    }

    body:has([title="Musik"]) .featured-image {
        margin-left: 0 !important;
    }

    .musik-spotify {
        height: 400px;
    }

    .video-modal-content {
        width: 95%;
        padding: 1rem;
    }
}

/* Video embeds */
iframe {
    max-width: 100%;
    margin: 1rem 0;
    border-radius: 8px;
}

/* YouTube video responsive wrapper */
.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    margin: 1rem auto;
    max-width: 700px;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Footer - Hidden */
footer {
    display: none;
}

/* Responsive design */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0 1rem;
    }

    .nav-menu {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    main {
        padding: 1rem;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

/* Concert list styling */
.concerts-list {
    line-height: 1.8;
}

.concerts-list li {
    margin-bottom: 0.8rem;
}

/* Spotify embed styling */
.spotify-embed {
    max-width: 500px;
    margin: 2rem auto;
}

.spotify-embed iframe {
    width: 100%;
    max-width: 500px;
    height: 400px;
}

/* Photo Scatter Background */
.photo-scatter-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 1;
    overflow: visible;
}

.scattered-photo {
    position: absolute;
    pointer-events: auto;
    cursor: grab;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    display: block;
    z-index: 10;
}

.scattered-photo:active {
    cursor: grabbing;
}

.scattered-photo img {
    width: 320px;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.2s ease;
    display: block;
}

.scattered-photo:hover img {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
}

/* Reshuffle Button - Top Right */
.reshuffle-button {
    position: fixed;
    top: 2rem;
    right: 2rem;
    background: rgba(139, 0, 0, 0.7);
    border: none;
    padding: 1rem 1.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    color: #fff;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.reshuffle-button:active {
    transform: scale(0.95);
}

/* Video Card */
.video-card {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    width: 90%;
    max-width: 1000px;
    background: white;
    border-radius: 15px;
    border: 6px solid #fff;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    padding: 2rem;
    z-index: 250;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.video-card.active {
    opacity: 1;
    visibility: visible;
}

.video-card .video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 0;
}

.video-card .video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.video-card-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #333;
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.video-card-close:hover {
    background: #000;
    transform: scale(1.1);
}

/* Main content adjustments for photo background */
main {
    position: relative;
    z-index: 1;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(255, 255, 255, 0.1);
}

/* About page specific styling */
.aboutpage main {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 6rem;
}

.aboutpage p {
    max-width: 600px;
    margin-bottom: 4.5rem;
}

@media (max-width: 768px) {
    .aboutpage main {
        padding: 3rem 2rem;
    }

    .aboutpage p,
    .aboutpage h1,
    .aboutpage h2 {
        margin-left: 0 !important;
        margin-right: auto !important;
        max-width: 100% !important;
    }
}

@media (max-width: 480px) {
    .aboutpage main {
        padding: 2rem 1rem;
    }

    .aboutpage p {
        max-width: 100% !important;
    }
}

/* Hide main content and footer on homepage for full-screen photo experience */
.homepage main,
.homepage footer {
    display: none;
}

/* Hamburger Menu - Works on all pages */
.hamburger-menu {
    position: fixed;
    top: 2rem;
    left: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #333;
    border-radius: 8px;
    cursor: pointer;
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: visible;
    pointer-events: auto;
}

/* Hamburger menu on homepage - ensure visibility on black background */
.homepage .hamburger-menu {
    background: rgba(255, 255, 255, 0.95);
}

.hamburger-menu:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.hamburger-menu span {
    display: block;
    width: 25px;
    height: 3px;
    background: #333;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 300;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-nav {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 15px;
    padding: 3rem 4rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav li {
    margin: 1.5rem 0;
}

.mobile-nav a {
    text-decoration: none;
    color: #333;
    font-size: 1.8rem;
    font-weight: bold;
    transition: color 0.2s ease;
    display: block;
    position: relative;
}

.mobile-nav a:hover {
    color: #007bff;
}

.mobile-nav a .rough-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
}

/* Rough.js canvas styling */
.rough-border,
.button-rough-canvas,
.video-card-rough-canvas,
.menu-rough-canvas,
.concert-rough-canvas {
    position: absolute;
    pointer-events: none;
}

.concert-card,
.video-card,
.mobile-nav {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.concert-card > *:not(.concert-rough-canvas),
.video-card > *:not(.video-card-rough-canvas),
.mobile-nav > *:not(.menu-rough-canvas) {
    position: relative;
    z-index: 1;
}

/* Concert List Redesign */
.concerts-page {
    position: relative;
    min-height: 100vh;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.concerts-list {
    line-height: 2.2;
    font-size: 1.1rem;
}

.concert-list-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 0.8rem 0;
    padding-right: 100px;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
}

.concert-date {
    font-weight: bold;
    color: #999;
    min-width: 140px;
    max-width: 140px;
    flex-shrink: 0;
    flex-grow: 0;
    box-sizing: border-box;
}

.concert-title {
    font-weight: bold;
    color: #f0f0f0;
    flex: 2;
    position: relative;
}

.concert-location {
    color: #999;
    font-style: italic;
}

.concert-status {
    position: absolute;
    right: -80px;
    top: 0;
    background: transparent;
    color: #ff9933;
    padding: 0.2rem 0.4rem;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    transform: rotate(8deg);
    transform-origin: right center;
}

.concert-list-item.upcoming .concert-date {
    color: #ff9933;
}

.concert-list-item.upcoming .concert-title {
    color: #fff;
}

.rough-underline {
    position: absolute !important;
    pointer-events: none;
}

/* Floating Flyers */
.floating-flyers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 50;
}

.flyer-card {
    position: absolute;
    pointer-events: all;
    cursor: grab;
    transition: transform 0.2s ease;
    max-width: 200px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.flyer-card:hover {
    transform: scale(1.05) !important;
}

.flyer-card:active {
    cursor: grabbing;
}

.flyer-card img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.flyer-rough-border {
    position: absolute;
    pointer-events: none;
    z-index: -1;
}

/* Scroll Arrow */
.scroll-arrow {
    animation: bounce 2s infinite;
    text-align: center;
}

@keyframes bounce {
    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-arrow:hover {
    opacity: 0.8;
}

/* Video Photo Cards */
.video-photo-card {
    position: absolute;
    pointer-events: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
    user-select: none;
    -webkit-user-select: none;
    display: block;
    width: 320px;
    height: 260px;
    z-index: 1;
}

.video-photo-card:active {
    cursor: grabbing;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
    transition: all 0.2s ease;
}

.video-photo-card:hover .video-thumbnail {
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.35);
    transform: scale(1.05);
}

.video-play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.video-photo-card:hover .video-play-button {
    background: rgba(255, 0, 0, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-photo-card iframe {
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}

.video-hint-text {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    pointer-events: none;
    opacity: 0.8;
    white-space: nowrap;
}

/* Hide hint text on mobile */
@media (max-width: 768px) {
    .video-hint-text {
        display: none;
    }
}

/* Page Transition Overlay */
.page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.page-transition-overlay.active {
    opacity: 1;
    visibility: visible;
}

.transition-lyrics {
    color: #fff;
    font-size: 1.5rem;
    line-height: 2;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
    animation: fadeInLyrics 0.5s ease-in;
}

.transition-lyrics p {
    margin-bottom: 0.5rem;
    opacity: 0;
    animation: fadeInLine 0.4s ease-in forwards;
}

.transition-lyrics p:nth-child(1) {
    animation-delay: 0.1s;
}

.transition-lyrics p:nth-child(2) {
    animation-delay: 0.2s;
}

.transition-lyrics p:nth-child(3) {
    animation-delay: 0.3s;
}

.transition-lyrics p:nth-child(4) {
    animation-delay: 0.4s;
}

@keyframes fadeInLyrics {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLine {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile adjustments for photo scatter */
@media (max-width: 768px) {
    .scattered-photo img {
        width: 220px;
        max-height: 180px;
    }

    .hamburger-menu {
        top: 1rem;
        left: 1rem;
        width: 45px;
        height: 45px;
        gap: 5px;
    }

    .hamburger-menu span {
        width: 22px;
        height: 2.5px;
    }

    .mobile-nav {
        padding: 2rem 3rem;
    }

    .mobile-nav a {
        font-size: 1.5rem;
    }

    .reshuffle-button {
        top: 1rem;
        right: 1rem;
        padding: 0.8rem 1.2rem;
        font-size: 1rem;
    }

    .video-card {
        width: 95%;
        padding: 1rem;
    }

    .concerts-page {
        padding: 1.5rem 0.8rem;
    }

    .concert-list-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.3rem;
    }

    .concert-date {
        min-width: auto;
        font-size: 0.9rem;
    }

    .concert-title {
        font-size: 1rem;
    }

    .concert-location {
        font-size: 0.9rem;
    }

    .flyer-card {
        max-width: 150px;
    }

    .concert-status {
        position: static;
        display: block;
        margin-bottom: 0.5rem;
        transform: none;
        text-align: left;
        font-size: 0.9rem;
    }

    .concert-list-item {
        padding-right: 0;
    }
}

/* Small devices - adjust photo scatter */
@media (max-width: 480px) {
    .scattered-photo img {
        width: 180px;
        max-height: 150px;
    }

    .hamburger-menu {
        width: 40px;
        height: 40px;
        gap: 4px;
    }

    .hamburger-menu span {
        width: 20px;
        height: 2px;
    }

    .mobile-nav {
        padding: 1.5rem 2rem;
    }

    .mobile-nav a {
        font-size: 1.3rem;
    }

    .reshuffle-button {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .concerts-page {
        padding: 1rem 0.5rem;
    }

    .concert-list-item {
        margin-bottom: 1rem;
        padding: 0.5rem 0;
    }

    .flyer-card {
        max-width: 120px;
    }

    .concert-status {
        font-size: 0.8rem;
    }
}
