@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;800;900&display=swap');

/* 1. RESET & BASE */
* { 
    box-sizing: border-box; 
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body { 
    margin: 0; 
    font-family: 'Outfit', system-ui, sans-serif; 
    background-color: #000000; 
    color: #e0e0e0;
    line-height: 1.6;
}

section {
    scroll-margin-top: 100px; 
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #555; }

/* 2. STICKY HEADER & NAV */
.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #000000;
    border-bottom: 1px solid #1a1a1a;
    padding: 15px 0;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    max-width: 160px;
    height: auto;
    display: block;
}

.main-nav {
    display: flex;
    gap: 20px;
    align-items: center;
}

.main-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 900;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.main-nav a:hover {
    color: #888;
    border-bottom: 2px solid #fff;
    padding-bottom: 2px;
}

.lang-btn {
    background: transparent;
    border: 1px solid #555;
    color: #fff;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: 900;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s ease;
    margin: 0;
    max-width: auto;
    width: auto;
}

.lang-btn:hover {
    background: #fff;
    color: #000;
}

/* 3. LAYOUT & CONTAINERS */
.container { 
    max-width: 900px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

.section-title {
    margin: 80px 0 30px;
    font-size: 1rem;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 3px;
    border-bottom: 1px solid #111;
    padding-bottom: 10px;
}

/* 4. SOLID CARDS & SUBSCRIPTION */
.card { 
    padding: 30px; 
    background: #050505;
    border: 1px solid #1a1a1a; 
    border-radius: 0;
    margin-top: 40px;
}

h2 {
    font-weight: 900;
    font-size: 1.5rem;
    margin-top: 0;
    margin-bottom: 16px;
    color: #fff;
    text-transform: uppercase;
}

/* 5. BRUTALIST BUTTONS */
.hero-btn { 
    width: 100%;
    max-width: 400px;
    display: block;
    margin: 20px 0;
    padding: 18px 24px; 
    background: #fff;
    color: #000; 
    border: 2px solid #fff;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.hero-btn:hover {
    background: #000;
    color: #fff;
}

/* 6. EVENT CARDS & GRID */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.event-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    -webkit-tap-highlight-color: transparent; 
    user-select: none; 
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.event-card {
    background: #050505;
    border: 1px solid #1a1a1a;
    transition: 0.3s ease;
    height: 100%;
}

.event-card:hover,
.event-card.touch-active {
    border-color: #555;
    transform: translateY(-5px);
}

.event-image {
    position: relative;
    line-height: 0;
    border-bottom: 1px solid #1a1a1a;
    background-color: #000; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.event-image img {
    width: 100%;
    aspect-ratio: 4/5; 
    object-fit: contain !important; 
    filter: grayscale(15%);
}

.date-badge {
    position: absolute;
    top: 0;
    left: 0;
    background: #fff;
    color: #000;
    padding: 10px 15px;
    font-weight: 900;
    font-size: 0.9rem;
}

.event-info {
    padding: 20px;
}

.event-info h3 {
    margin: 0 0 10px 0;
    font-size: 1.3rem;
    letter-spacing: 0;
}

.bands {
    color: #ccc;
    font-size: 0.9rem;
    margin-bottom: 5px;
    margin-top: 0;
}

.venue {
    color: #777;
    font-size: 0.85rem;
    margin: 0;
}

.event-meta {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #1a1a1a;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
}

.view-tag {
    display: inline-block;
    margin-top: 20px;
    font-size: 0.75rem;
    font-weight: 900;
    border-bottom: 1px solid #333;
    padding-bottom: 2px;
}

/* 7. PAST EVENTS (ARCHIVE) */
.past-card {
    opacity: 0.7;
    transition: opacity 0.3s ease; 
}

.past-card img {
    filter: grayscale(100%);
    transition: filter 0.3s ease; 
}

.past-card:hover,
.past-card.touch-active {
    opacity: 1;
}

.past-card:hover img,
.past-card.touch-active img {
    filter: grayscale(0%);
}

/* 8. ABOUT US SECTION */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.about-text p {
    font-size: 1.1rem;
    color: #bbb;
    margin-top: 0;
}

.about-stats {
    display: flex;
    flex-direction: row; 
    gap: 50px; 
    justify-content: flex-start;
    align-items: center;
    border-left: 1px solid #1a1a1a;
    padding-left: 40px;
}

.stat-item {
    font-size: 0.8rem;
    font-weight: 900;
    color: #555;
    margin: 15px 0;
}

.stat-item span {
    font-size: 3rem;
    display: block;
    color: #fff;
    line-height: 1;
    margin-bottom: 5px;
}

/* 9. CONTACT FORM */
.shiny-form {
    background: #050505;
    padding: 40px;
    border: 1px solid #1a1a1a;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 900;
    margin-bottom: 8px;
    letter-spacing: 2px;
    color: #666;
}

.shiny-form input, .shiny-form textarea {
    width: 100%;
    background: #000;
    border: 1px solid #222;
    padding: 15px;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    transition: border-color 0.3s;
}

.shiny-form input:focus, .shiny-form textarea:focus {
    outline: none;
    border-color: #fff;
}

/* 10. FOOTER & SOCIALS */
footer { 
    padding: 60px 20px; 
    color: #444; 
    border-top: 1px solid #1a1a1a; 
    text-align: center; 
    margin-top: 80px;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 1.5rem;
}

.socials a {
    color: #666;
    font-weight: 900;
    text-decoration: none;
    transition: 0.2s;
}

.socials a:hover {
    color: #fff;
}

/* 11. MOBILE RESPONSIVE */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 170px;
    }

    section {
        scroll-margin-top: 120px; 
    }
    
    .header-inner {
        flex-direction: column;
        gap: 8px;
    }
    .main-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }
    .main-nav a { font-size: 0.75rem; }
    
    .event-grid { grid-template-columns: 1fr; }
    
    .about-content { grid-template-columns: 1fr; }
    .about-stats {
        border-left: none;
        border-top: 1px solid #1a1a1a;
        padding: 20px 0 0 0;
        flex-direction: row; 
        justify-content: space-around; 
        gap: 0;
    }
    .stat-item span { font-size: 2rem; }
    
    .shiny-form { padding: 20px; }
}

/* --- НОВИНИ (NEWS SECTION) --- */
.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.news-card {
    background: #050505;
    border: 1px solid #1a1a1a;
    padding: 25px;
    border-left: 4px solid #fff; 
}
.news-date {
    font-size: 0.8rem;
    color: #888;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: 1px;
}
.news-title {
    font-size: 1.4rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 10px 0;
    text-transform: uppercase;
}
.news-content {
    font-size: 1rem;
    color: #ccc;
    margin: 0;
}

/* --- THE VIBE (ИСТИНСКИ КАРУСЕЛ С БУТОНИ) --- */
.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
}

.vibe-carousel {
    display: flex;
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    gap: 15px;
    scroll-behavior: smooth; 
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
    -ms-overflow-style: none; 
}
.vibe-carousel::-webkit-scrollbar {
    display: none; 
}

.vibe-carousel img {
    flex: 0 0 85%; 
    max-width: 400px; 
    height: 250px; 
    object-fit: contain; 
    background-color: #000; 
    scroll-snap-align: center; 
    border: 1px solid #1a1a1a;
    filter: grayscale(100%);
    transition: all 0.3s ease;
    cursor: pointer;
}

.vibe-carousel img:hover {
    filter: grayscale(0%);
    border-color: #555;
}

.carousel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    color: #000;
    border: 2px solid #000;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    font-weight: 900;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    box-shadow: -2px 2px 0px rgba(0,0,0,1);
    transition: all 0.2s ease;
}

.carousel-nav-btn:hover {
    background: #000;
    color: #fff;
    border-color: #fff;
    box-shadow: -2px 2px 0px rgba(255,255,255,1);
}

.left-btn { left: -15px; }
.right-btn { right: -15px; }

@media (max-width: 768px) {
    .left-btn { left: 5px; }
    .right-btn { right: 5px; }
    .carousel-nav-btn { width: 35px; height: 35px; font-size: 1rem; }
}

/* --- SCROLL TO TOP BUTTON --- */
.scroll-top-btn {
    position: fixed;
    bottom: 40px; 
    right: 20px;  
    z-index: 999;
    background-color: #fff;
    color: #000;
    border: 2px solid #000; 
    cursor: pointer;
    padding: 6px 10px; 
    border-radius: 6px; 
    font-size: 0.8rem; 
    font-weight: 900;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    box-shadow: -2px 2px 0px rgba(0,0,0,1); 
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.5px;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background-color: #000;
    color: #fff;
    border-color: #fff;
    box-shadow: -2px 2px 0px rgba(255,255,255,1);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 30px; 
        right: 15px;
        padding: 7px 12px; 
        font-size: 0.85rem;
    }
}

/* --- LIGHTBOX (СНИМКИ НА ЦЯЛ ЕКРАН) --- */
.lightbox {
    display: none; 
    position: fixed;
    z-index: 10000; 
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95); 
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    animation: zoomIn 0.3s ease; 
    border: 1px solid #333;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 50px;
    font-weight: 900;
    transition: 0.2s;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: #888;
}

@keyframes zoomIn {
    from {transform: scale(0.9); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 40px;
    }
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: 900;
    font-size: 50px;
    transition: 0.3s ease;
    user-select: none;
    z-index: 10001; 
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #888;
}

@media (max-width: 768px) {
    .lightbox-prev, .lightbox-next {
        font-size: 35px;
        padding: 10px;
    }
    .lightbox-prev { left: 5px; }
    .lightbox-next { right: 5px; }
}

/* --- ХИБРИДЕН МОБИЛЕН ИЗГЛЕД (1 за предстоящи, 2 за архив) --- */
@media (max-width: 768px) {
    .archive-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px; 
    }
    
    .archive-grid .event-info {
        padding: 10px;
    }
    
    .archive-grid .event-info h3 {
        font-size: 1rem;
        margin-bottom: 5px;
    }
    
    .archive-grid .bands, 
    .archive-grid .venue {
        font-size: 0.75rem;
    }

    .archive-grid .view-tag {
        margin-top: 10px;
        font-size: 0.7rem;
    }
}

/* --- АКОРДЕОН ЗА ПАРТНЬОРИТЕ --- */
.partner-accordion {
    border-bottom: 1px solid #111;
}

.accordion-header {
    padding: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 900;
    font-size: 0.9rem;
    color: #fff;
    transition: color 0.3s;
}

.accordion-header:hover { 
    color: #888; 
}

.accordion-header .icon {
    font-size: 1.2rem;
    transition: transform 0.3s;
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    background: #000;
    padding: 0; 
}

.partner-accordion.active .accordion-content {
    max-height: 1500px; 
    padding: 20px 0;
}

.partner-accordion.active .icon {
    transform: rotate(45deg); 
}

/* --- СТИЛ ЗА ПАРТНЬОРИТЕ С ТЕКСТ (FIXED FIT) --- */
.logo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); 
    gap: 20px;
    padding: 10px 0;
}

.logo-wall a {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important; 
    color: #666 !important; 
    transition: transform 0.3s ease;
    width: 100%;
    
    -webkit-tap-highlight-color: transparent; 
    user-select: none; 
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.logo-wall a img {
    max-width: 100%; 
    width: auto;     
    height: 50px;    
    object-fit: contain; 
    filter: grayscale(100%) opacity(0.6);
    transition: 0.3s;
    margin-bottom: 8px;
}

.logo-wall a:hover img,
.logo-wall a.touch-active img {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-3px);
}

.logo-wall a:hover .partner-name,
.logo-wall a.touch-active .partner-name {
    color: #fff !important; 
}

.partner-name {
    color: #666 !important; 
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.5px;
    transition: 0.3s;
    line-height: 1.2;
}

@media (max-width: 768px) {
    .logo-wall {
        grid-template-columns: repeat(4, minmax(0, 1fr)); 
        gap: 8px;
    }
    
    .logo-wall a img {
        height: 32px; 
        max-width: 95%; 
        margin-bottom: 5px;
    }
    
    .partner-name {
        font-size: 0.55rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        width: 100%;
    }
}
