/* style2.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800;900&display=swap');

:root {
    --background-color: #000;
    --blur-effect: blur(1.2rem);
    --border-radius: 0.5rem;
    --primary-color: #FF69B4;
    --secondary-color: #ddd;
    --shadow-effect: 0 0 5rem #ff7ade6b;
    --transition: all .3s ease-in-out;
    --card-bg: rgba(0, 0, 0, 0.5);
    --header-gradient: linear-gradient(-180deg, #e64997, #7f00a5);
    --inner-glow: inset 0 0 100px rgba(0, 0, 0, 0.7);
    --liquid-glass: linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    --page-transition: 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

* {
    font-family: "Poppins", sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--background-color);
    color: var(--secondary-color);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    opacity: 0;
    animation: pageIn var(--page-transition) forwards;
}

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

/* Animacja przejścia przy ładowaniu podstrony */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--header-gradient);
    z-index: 10000;
    pointer-events: none;
    animation: pageTransitionOut var(--page-transition) forwards;
}

@keyframes pageTransitionOut {
    0% {
        transform: translateX(0);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateX(100%);
        opacity: 0;
    }
}
/* Loader */
.loader {
    align-items: center;
    animation: fadeOut 1s forwards;
    background-color: #000;
    display: flex;
    height: 100vh;
    justify-content: center;
    left: 0;
    position: fixed;
    top: 0;
    width: 100vw;
    will-change: opacity;
    z-index: 9999;
    pointer-events: none;
}

.loader::after {
    animation: spin 1s linear infinite;
    border: 5px solid #fff;
    border-radius: 50%;
    border-top: 5px solid var(--primary-color);
    content: '';
    height: 50px;
    width: 50px;
    will-change: transform;
}

@keyframes fadeOut {
    to {
        opacity: 0;
    }
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Overlay */
.overlay {
    backdrop-filter: var(--blur-effect);
    background-color: rgba(0, 0, 0, 0.8);
    display: none;
    height: 100%;
    left: 0;
    pointer-events: none;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9998;
}

@media (max-width: 1024px) {
    #ageModal {
        font-size: 1.2rem;
        max-width: 95vw;
        padding: 1rem;
        width: 90vw;
    }

    #ageModal h1 {
        font-size: 1.1rem;
        margin: 0;
    }

    #ageModal p {
        font-size: 1rem;
    }

    #ageModal .button-container button {
        font-size: 1rem;
        padding: 10px 20px;
        width: 100%;
    }

    .button-container {
        display: flex;
        flex-direction: row;
        gap: 10px;
        width: 100%;
    }
}

@media (max-width: 768px) {
    #ageModal {
        font-size: 0.9rem;
    }

    #ageModal h1 {
        font-size: 0.9rem;
    }

    #ageModal p {
        font-size: 0.9rem;
    }

    #ageModal .button-container button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    #ageModal {
        font-size: 1rem;
        height: auto;
    }

    #ageModal h1 {
        font-size: 1rem;
    }

    #ageModal p {
        font-size: 0.8rem;
    }

    #ageModal .button-container button {
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .button-container {
        gap: 2px;
    }
}
header {
    align-items: center;
    backdrop-filter: var(--blur-effect);
    box-shadow: 0 0.1rem 1rem rgba(0, 0, 0, 0.1);
    display: flex;
    height: 100px;
    justify-content: center;
    left: 0;
    padding: 0 5vw;
    position: sticky; /* Kluczowa właściwość dla sticky header */
    top: 0;
    width: 100%;
    z-index: 1000; /* Wysoki z-index aby był ponad innymi elementami */
    transition: all 0.3s ease;
}

/* Główna treść - padding-top równy wysokości headera */
main {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

header img {
    height: 60px; /* Można zmienić na 60px jeśli wolisz większe logo */
    margin: 0;
    object-fit: contain;
    padding: 5px;
}


.container {
    margin: 0 auto;
    max-width: 1200px;
    padding: 0 20px;
    width: 100%;
}

.header-dashboard {
    height: 40vh;
    min-height: 300px;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0;
    padding: 0;
    margin-bottom: 6rem;
    background: #000; /* Backup dla wideo */
}

.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.3);
    z-index: 2;
}
.vignette-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    
    /* MOCNE PRZYCIEMNIENIE GÓRY I DOŁU */
    background: 
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.3) 15%,
            rgba(0, 0, 0, 0) 30%,
            rgba(0, 0, 0, 0) 70%,
            rgba(0, 0, 0, 0.3) 85%,
            rgba(0, 0, 0, 0.95) 100%
        );
    
    /* DODATKOWE WZMOCNIENIE */
    box-shadow: 
        inset 0  80px 100px -50px rgba(0, 0, 0, 0.9),
        inset 0 -80px 100px -50px rgba(0, 0, 0, 0.9);
}
.header-content {
    position: relative;
    text-align: center;
    z-index: 4;
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}


.header-content h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: 1px;
    animation: fadeInUp 1s ease-out;
    position: relative;
}

.header-content h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--header-gradient);
    border-radius: 3px;
}

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

.header-content p {
    font-size: 1.3rem;
    margin: 0 auto;
    max-width: 600px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
/* Location Grid - spójny z music */
.location-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    height: auto;
    margin: 0 auto 3rem;
    overflow: hidden;
    position: relative;
    max-width: 1200px;
    width: 100%;
}

.location-card {
    position: relative;
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: cardAppear 0.8s var(--page-transition) forwards;
}

@keyframes cardAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.location-card:nth-child(1) { animation-delay: 0.1s; }
.location-card:nth-child(2) { animation-delay: 0.2s; }
.location-card:nth-child(3) { animation-delay: 0.3s; }

.location-card:hover {
    transform: translateY(-10px);
}

.location-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8);
}

.location-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
}

.location-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
}

.location-date {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.location-button {
	transition: var(--transition);
	white-space: nowrap;
	text-align: center;
	display: inline-block; 
	margin: 0 auto;
	background-color: #00000000;
	border: 2px solid #ccc;
	color: var(--secondary-color);
	padding: 0.6rem 0.6rem;
	font-size: 0.9rem;
	border-radius: 0.5rem;
	cursor: pointer;
	margin-top: 1.2rem;
      font-weight: 600;
}

/* Music Section - spójna z location */
.music {
    background-color: #42424238;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-effect);
    height: auto;
    margin: 0 auto 3rem;
    overflow: hidden;
    padding: 1.5rem;
    position: relative;
    max-width: 1200px;
    width: 100%;
}

.music::before {
    background: var(--header-gradient);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    content: "";
    height: 5rem;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
    z-index: -1;
    pointer-events: none;
}

.music p {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    padding-bottom: 3rem;
    position: relative;
    text-align: center;
    z-index: 2;
}

.music iframe {
	background-color: #00000046;
	width: auto;
	border: none;
	min-height: 30rem;
	box-sizing: border-box;
}

#playlista {
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Stopka - dokładnie jak w style.css */

footer {
	color: var(--secondary-color);
	text-align: center;
	padding: 20px;
}

footer a {
	transition: var(--transition);
	text-decoration: none;
	color: var(--secondary-color);
}

footer a:hover {
	color: hsl(330, 79%, 68%);
}
.socialmedia img {
	transition: var(--transition);
	width: 3rem;
	padding: 10px;
}


.socialmedia img:hover {
	transform: scale(1.15);
}

main a {
    position: relative;
    color: var(--secondary-color);
    text-decoration: none;
    transition: var(--transition);
}


.location-button:hover {
      transform: scale(1.05);
      box-shadow: 0 0 20px rgba(230, 73, 151, 0.5);
}

.ticket-container {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	width: 100%;
	gap: 20px;
	margin-bottom: 1rem;
}

main a:hover::after {
    width: 100%;
}

.location-button:hover::before {
    left: 100%;
}

.referral-notice {
  background-color: #ffe0e0;
  color: #d40000;
  padding: 0.5rem;
  margin: 10px;
  border-radius: 0.5rem;
  font-size: 1rem;
  display: none;
  text-align: center;
  font-weight: 700;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Klasa aktywująca wyłanianie */
.referral-notice.show {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* Responsywność */
@media (max-width: 1080px) {
    .header-content h1 {
        font-size: 3rem;
    }
    
    .header-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .header-dashboard {
        height: 40vh;
        min-height: 250px;
    }
    
    .location-grid {
        grid-template-columns: 1fr;
    }

    .header-content h1 {
        font-size: 2.5rem;
    }

    .header-content p {
        font-size: 1.1rem;
    }

    .music p {
        font-size: 1.3rem;
        padding-bottom: 2rem;
    }

    .music iframe {
        height: 500px;
    }

    #playlista {
        height: 500px;
    }
    
    .location-card {
        height: 350px;
    }
}

@media (max-width: 480px) {
    .header-content h1 {
        font-size: 2rem;
    }

    .header-content p {
        font-size: 1rem;
    }

    .location-title {
        font-size: 1.8rem;
    }

    .location-date {
        font-size: 1rem;
    }

    .location-button {
        padding: 0.6rem 1.5rem;
    }

    #playlista {
        height: 350px;
    }
    
    header img {
        height: 50px;
    }
    
    .header-dashboard {
        height: 35vh;
        min-height: 200px;
    }
}

.ticket-bar {
    width: 100%;
    height: 1.2rem;
    background-color: #000000af;
    border-radius: 10px;
    overflow: hidden;
    margin: 10px 0;
    border: var(--secondary-color) solid 2px;
    padding: 0.2rem;
}

.ticket-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease, background 0.5s ease;
}

