/* ===================================
   HUBIONIS EVENTS MODULE - MODERN DESIGN 2026
   Profesjonalny moduł eventów z rozdzieleniem Basic/Pro
   ================================== */

/* Ensure navbar has proper z-index */
.navbar {
    z-index: 9999 !important;
}

/* Mobile overflow fix - global */
body {
    max-width: 100vw;
}

/* IMPORTANT: Don't block mobile menu with overflow hidden */
@media (min-width: 769px) {
    body {
        overflow-x: hidden;
    }
}

/* Ensure mobile menu can slide in */
@media (max-width: 768px) {
    .nav-menu {
        z-index: 9998 !important;
    }
    
    /* Ensure hamburger is visible and clickable */
    .mobile-menu-toggle {
        position: relative;
        z-index: 10000 !important;
        cursor: pointer;
        display: flex !important;
    }
    
    /* Hamburger animation when active */
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

.events-hero .container {
    max-width: 100%;
    overflow-x: hidden;
}

/* ===================================
   HERO SECTION
   ================================== */

.events-hero {
    padding: 3rem 0 3rem 0;
    background: linear-gradient(180deg,
        #0a1515 0%,
        #0d1f1f 20%,
        #0f2626 50%,
        #0d1f1f 80%,
        #0a1515 100%
    );
    position: relative;
    overflow: hidden;
    min-height: auto;
    display: flex;
    align-items: center;
    z-index: 1; /* Lower than navbar */
}

/* MOBILE: Compact hero */
@media (max-width: 768px) {
    .events-hero {
        padding: 2rem 0 !important;
    }
}

@media (max-width: 480px) {
    .events-hero {
        padding: 1.5rem 0 !important;
    }
}

.events-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 20% 10%, rgba(127, 255, 0, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 90%, rgba(0, 217, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

/* Main Layout: Sidebar + Content */
.hero-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* MOBILE: Single column layout */
@media (max-width: 1024px) {
    .hero-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    
    .interests-sidebar {
        display: none !important;
    }
}

/* Left Sidebar - User Interests */
.interests-sidebar {
    background: rgba(15, 47, 47, 0.45);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    height: fit-content;
    position: sticky;
    top: 100px;
    transition: all 0.35s ease;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.interests-sidebar:hover {
    border-color: rgba(127, 255, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(127, 255, 0, 0.1);
    margin-bottom: 1.25rem;
}

.sidebar-header svg {
    color: #7FFF00;
    flex-shrink: 0;
}

.sidebar-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #7FFF00;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Interests List */
.interests-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.interest-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: rgba(15, 47, 47, 0.4);
    border: 1px solid rgba(127, 255, 0, 0.06);
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    width: 100%;
}

.interest-item:hover {
    background: rgba(15, 47, 47, 0.6);
    border-color: rgba(127, 255, 0, 0.15);
    transform: translateX(5px);
}

.interest-item.active {
    background: rgba(127, 255, 0, 0.1);
    border-color: #7FFF00;
    box-shadow: 0 0 15px rgba(127, 255, 0, 0.2);
}

.interest-name {
    flex: 1;
    color: var(--text-light);
}

.interest-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 24px;
    padding: 0 0.5rem;
    background: rgba(127, 255, 0, 0.15);
    color: #7FFF00;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Manage Button */
.btn-manage-sidebar {
    width: 100%;
    padding: 0.875rem;
    background: transparent;
    border: 2px dashed rgba(127, 255, 0, 0.25);
    border-radius: 10px;
    color: #7FFF00;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-manage-sidebar:hover {
    background: rgba(127, 255, 0, 0.05);
    border-style: solid;
    border-color: #7FFF00;
}

.btn-manage-sidebar svg {
    width: 16px;
    height: 16px;
}

/* Right Content Area */
.hero-content {
    flex: 1;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(127, 255, 0, 0.15);
    border: 1px solid rgba(127, 255, 0, 0.3);
    border-radius: 50px;
    color: #7FFF00;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 10px rgba(127, 255, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(127, 255, 0, 0.5);
    }
}

.hero-title {
    font-size: 4rem;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.25rem !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.85rem !important;
        margin-bottom: 0.75rem;
    }
}

.hero-subtitle {
    font-size: 1.3rem;
    color: #C0C0C0;
    margin-bottom: 3rem;
    line-height: 1.6;
}

@media (max-width: 768px) {
    .hero-subtitle {
        font-size: 1.05rem !important;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-subtitle {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem;
    }
}

/* ===================================
   SEARCH CONTAINER
   ================================== */

.search-container {
    margin-bottom: 2rem;
    max-width: 100%;
}

@media (max-width: 768px) {
    .search-container {
        padding: 0 !important;
        max-width: 100vw;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
    }
}

.search-box {
    background: rgba(15, 47, 47, 0.45);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.35s ease;
    overflow: hidden;
    max-width: 100%;
    box-sizing: border-box;
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.search-box:hover {
    border-color: rgba(127, 255, 0, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* MOBILE RESPONSIVE SEARCH BOX */
@media (max-width: 768px) {
    .search-box {
        padding: 0.5rem !important;
        border-radius: 14px;
        gap: 0.6rem;
    }
    
    .search-container {
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .search-box {
        padding: 0.4rem !important;
        border-radius: 12px;
        gap: 0.5rem;
    }
}

/* Smart Search Wrapper */
.smart-search-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* MOBILE: Simplified search */
@media (max-width: 768px) {
    .smart-search-wrapper {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
    }
}

/* Search Icon Button (clickable magnifying glass) */
.search-icon-btn {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: #7FFF00;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.search-icon-btn:hover {
    background: rgba(127, 255, 0, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.search-icon-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-icon-btn .search-icon {
    position: static;
    transform: none;
}

/* Search Icon (magnifying glass) */
.search-icon {
    color: #7FFF00;
}

.search-input {
    width: 100%;
    padding: 1.2rem 180px 1.2rem 3.5rem;
    background: rgba(10, 30, 30, 0.6);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 1rem;
    transition: all 0.3s;
    box-sizing: border-box;
}

/* Mobile responsive search */
@media (max-width: 768px) {
    .search-input {
        padding: 0.75rem 0.75rem 0.75rem 2.2rem !important;
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .search-icon-btn {
        width: 36px;
        height: 36px;
        left: 0.3rem;
    }
    
    .search-actions {
        gap: 0.25rem !important;
    }
    
    .search-action-btn {
        width: 36px !important;
        height: 36px !important;
    }
}

@media (max-width: 480px) {
    .search-input {
        padding: 0.65rem 0.65rem 0.65rem 1.8rem !important;
        font-size: 0.85rem;
        border-radius: 10px;
    }
    
    .search-icon-btn {
        width: 34px;
        height: 34px;
        left: 0.25rem;
    }
    
    .search-action-btn {
        width: 34px !important;
        height: 34px !important;
    }
}

.search-input:focus {
    border-color: rgba(127, 255, 0, 0.3);
    background: rgba(10, 30, 30, 0.8);
    outline: none;
    box-shadow: 0 0 15px rgba(127, 255, 0, 0.1);
}

.search-input::placeholder {
    color: rgba(192, 192, 192, 0.6);
}

.search-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 0.5rem;
}

/* MOBILE: Move search actions outside input */
@media (max-width: 768px) {
    .search-actions {
        position: relative !important;
        right: auto !important;
        top: auto !important;
        transform: none !important;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.75rem;
        padding: 0;
    }
    
    .search-input {
        padding-right: 1rem !important;
    }
}

@media (max-width: 480px) {
    .search-actions {
        gap: 0.4rem;
        margin-top: 0.65rem;
    }
}

.search-action-btn {
    width: 40px;
    height: 40px;
    background: rgba(15, 47, 47, 0.5);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 8px;
    color: #7FFF00;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .search-action-btn {
        width: 44px !important;
        height: 44px !important;
        border-radius: 10px;
    }
}

@media (max-width: 480px) {
    .search-action-btn {
        width: 42px !important;
        height: 42px !important;
    }
    
    .search-action-btn svg {
        width: 18px;
        height: 18px;
    }
}

.search-action-btn:hover {
    background: rgba(127, 255, 0, 0.15);
    border-color: #7FFF00;
    transform: scale(1.05);
}

.search-action-btn.search-submit {
    background: linear-gradient(135deg, #7FFF00 0%, #6DE800 100%);
    border: none;
    color: #0F2A2A;
}

.search-action-btn.search-submit:hover {
    box-shadow: 0 5px 15px rgba(127, 255, 0, 0.4);
}

/* Voice Search Button (ID selector for specific button) */
#voice-search-btn {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(127, 255, 0, 0.15);
    border: 2px solid rgba(127, 255, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

@media (max-width: 768px) {
    #voice-search-btn {
        display: none; /* Ukryty na mobile bo jest w search-actions */
    }
}

#voice-search-btn:hover {
    background: rgba(127, 255, 0, 0.25);
    border-color: #7FFF00;
    transform: translateY(-50%) scale(1.05);
}

#voice-search-btn svg {
    color: #7FFF00;
}

/* Voice Search Animation */
.search-action-btn.recording {
    animation: pulse-recording 1.5s ease-in-out infinite;
    background: rgba(255, 0, 0, 0.2);
    border-color: #FF0000;
    color: #FF0000;
}

@keyframes pulse-recording {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.7);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0);
    }
}

/* Smart Features Bar */
.smart-features-bar {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid rgba(127, 255, 0, 0.05);
    max-width: 100%;
    box-sizing: border-box;
}

/* MOBILE: HORIZONTAL SCROLL zamiast grid */
@media (max-width: 768px) {
    .smart-features-bar {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        gap: 0.4rem;
        padding: 0.6rem 0;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        scrollbar-width: thin;
        scrollbar-color: #7FFF00 rgba(31, 85, 85, 0.4);
    }
    
    .smart-features-bar::-webkit-scrollbar {
        height: 5px;
    }
    
    .smart-features-bar::-webkit-scrollbar-track {
        background: rgba(31, 85, 85, 0.4);
        border-radius: 3px;
    }
    
    .smart-features-bar::-webkit-scrollbar-thumb {
        background: #7FFF00;
        border-radius: 3px;
    }
}

@media (max-width: 480px) {
    .smart-features-bar {
        gap: 0.35rem;
        padding: 0.5rem 0;
    }
}

.feature-btn {
    padding: 0.65rem 1.2rem;
    background: rgba(15, 47, 47, 0.4);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 8px;
    color: #C0C0C0;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    min-height: 44px;
}

/* MOBILE: Compact ROW layout dla scroll */
@media (max-width: 768px) {
    .feature-btn {
        padding: 0.6rem 0.75rem;
        font-size: 0.75rem;
        min-height: 40px;
        gap: 0.35rem;
        flex-direction: row;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 8px;
    }
    
    .feature-btn svg {
        width: 15px;
        height: 15px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .feature-btn {
        padding: 0.55rem 0.65rem;
        font-size: 0.7rem;
        min-height: 38px;
    }
    
    .feature-btn svg {
        width: 14px;
        height: 14px;
    }
}

.feature-btn:hover {
    background: rgba(127, 255, 0, 0.1);
    border-color: #7FFF00;
    color: #7FFF00;
    transform: translateY(-2px);
}

.feature-btn.active {
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.2), rgba(127, 255, 0, 0.1));
    border-color: #7FFF00;
    color: #7FFF00;
}

.feature-btn svg {
    flex-shrink: 0;
}

.pro-badge-mini {
    padding: 0.2rem 0.5rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 700;
    color: #0F2A2A;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 0.25rem;
}

@media (max-width: 768px) {
    .pro-badge-mini {
        padding: 0.12rem 0.3rem;
        font-size: 0.5rem;
        margin-left: 0.15rem;
    }
}

@media (max-width: 480px) {
    .pro-badge-mini {
        font-size: 0.45rem;
        padding: 0.1rem 0.25rem;
    }
}

/* ===================================
   ADVANCED FILTERS SECTION
   ================================== */

.advanced-filters-section {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(15, 42, 42, 0.4);
    border: 2px solid rgba(127, 255, 0, 0.15);
    border-radius: 16px;
    backdrop-filter: blur(10px);
    animation: slideDown 0.3s ease-out;
}

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

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

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-label {
    color: #7FFF00;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 0.75rem 1rem;
    background: rgba(26, 58, 58, 0.6);
    border: 2px solid rgba(127, 255, 0, 0.2);
    border-radius: 10px;
    color: #FFFFFF;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover {
    border-color: rgba(127, 255, 0, 0.4);
    background: rgba(26, 58, 58, 0.8);
}

.filter-select:focus {
    outline: none;
    border-color: #7FFF00;
    box-shadow: 0 0 0 3px rgba(127, 255, 0, 0.1);
}

.filter-select option {
    background: #0F2A2A;
    color: #FFFFFF;
    padding: 0.5rem;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(127, 255, 0, 0.1);
}

.btn-filter-apply,
.btn-filter-reset {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: 2px solid transparent;
}

.btn-filter-apply {
    flex: 1;
    background: linear-gradient(135deg, #7FFF00 0%, #6DE800 100%);
    color: #0F2A2A;
    border: none;
}

.btn-filter-apply:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(127, 255, 0, 0.4);
}

.btn-filter-reset {
    background: rgba(31, 85, 85, 0.4);
    border-color: rgba(127, 255, 0, 0.2);
    color: #C0C0C0;
}

.btn-filter-reset:hover {
    background: rgba(31, 85, 85, 0.6);
    border-color: #7FFF00;
    color: #7FFF00;
}

/* ===================================
   OLD SEARCH FILTERS (Legacy - to remove)
   ================================== */

.search-filters {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: center;
}

.filter-select {
    padding: 1rem 1.5rem;
    background: rgba(15, 42, 42, 0.6);
    border: 2px solid rgba(127, 255, 0, 0.15);
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237FFF00' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #7FFF00;
    background-color: rgba(15, 42, 42, 0.8);
    outline: none;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(127, 255, 0, 0.3);
}

.filter-select option {
    background: #0F2A2A;
    color: #FFFFFF;
}

/* Collapsible Filters */
.filters-collapsible {
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 1rem;
}

.filters-collapsible.open {
    animation: slideDown 0.4s ease-out;
}

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

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

/* Filter Dropdown Arrow Rotation */
.feature-btn .dropdown-arrow {
    transition: transform 0.3s ease;
    margin-left: 0.25rem;
}

.feature-btn.active .dropdown-arrow {
    transform: rotate(180deg);
}

.btn-search {
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #7FFF00 0%, #6DE800 100%);
    border: none;
    border-radius: 12px;
    color: #0F2A2A;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    white-space: nowrap;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(127, 255, 0, 0.4);
}

.btn-search:active {
    transform: translateY(0);
}

/* Nowy mały przycisk wyszukiwania */
.btn-search-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #7FFF00 0%, #6DE800 100%);
    border: none;
    border-radius: 12px;
    color: #0F2A2A;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.btn-search-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-search-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(127, 255, 0, 0.5);
}

.btn-search-icon:hover::before {
    opacity: 1;
}

.btn-search-icon:active {
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 20px rgba(127, 255, 0, 0.4);
}

.btn-search-icon svg {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* ===================================
   QUICK FILTERS
   ================================== */

.quick-filters {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    padding: 0.5rem 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .quick-filters {
        justify-content: flex-start !important;
        flex-wrap: nowrap !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 0.75rem;
        gap: 0.5rem;
        width: 100%;
        scrollbar-width: thin;
        scrollbar-color: #7FFF00 rgba(31, 85, 85, 0.4);
    }
    
    .quick-filters::-webkit-scrollbar {
        height: 6px;
    }
    
    .quick-filters::-webkit-scrollbar-track {
        background: rgba(31, 85, 85, 0.4);
        border-radius: 3px;
    }
    
    .quick-filters::-webkit-scrollbar-thumb {
        background: #7FFF00;
        border-radius: 3px;
    }
}

.filter-chip {
    padding: 0.75rem 1.5rem;
    background: rgba(15, 47, 47, 0.4);
    border: 1px solid rgba(127, 255, 0, 0.08);
    border-radius: 50px;
    color: #C0C0C0;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .filter-chip {
        padding: 0.55rem 0.9rem !important;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .filter-chip {
        padding: 0.5rem 0.8rem !important;
        font-size: 0.75rem;
    }
}

.filter-chip:hover {
    border-color: rgba(127, 255, 0, 0.2);
    background: rgba(15, 47, 47, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.filter-chip.active {
    background: linear-gradient(135deg, rgba(127, 255, 0, 0.2), rgba(127, 255, 0, 0.1));
    border-color: #7FFF00;
    color: #7FFF00;
}

.chip-count {
    padding: 0.25rem 0.75rem;
    background: rgba(127, 255, 0, 0.2);
    border-radius: 20px;
    font-size: 0.85rem;
}

.filter-chip.active .chip-count {
    background: rgba(127, 255, 0, 0.3);
}

/* ===================================
   FILTERS LAYOUT WITH SIDEBAR (OLD - TO BE REMOVED)
   ================================== */

.filters-layout {
    display: none !important;
}

/* Remove old duplicate styles */
.filters-layout .interests-sidebar,
.filters-layout .sidebar-header,
.filters-layout .interests-list,
.filters-layout .interest-item,
.filters-layout .btn-manage-sidebar,
.filters-main {
    display: none !important;
}

/* Quick Filters - now in right column */
.quick-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    align-items: center;
}

/* Remove old user interests section styles */
.user-interests-section {
    display: none;
}

/* ===================================
   TIER BANNER
   ================================== */

.tier-banner {
    padding: 2rem 0;
    background: linear-gradient(90deg, rgba(15, 42, 42, 0.8) 0%, rgba(31, 85, 85, 0.4) 100%);
    border-top: 1px solid rgba(127, 255, 0, 0.1);
    border-bottom: 1px solid rgba(127, 255, 0, 0.1);
}

.tier-banner .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tier-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(15, 42, 42, 0.6);
    padding: 0.5rem;
    border-radius: 50px;
    border: 2px solid rgba(127, 255, 0, 0.15);
}

.tier-btn {
    padding: 0.75rem 2rem;
    background: transparent;
    border: none;
    border-radius: 50px;
    color: #C0C0C0;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.tier-btn:hover {
    color: #7FFF00;
}

.tier-btn.active {
    background: linear-gradient(135deg, #7FFF00 0%, #6DE800 100%);
    color: #0F2A2A;
    box-shadow: 0 5px 15px rgba(127, 255, 0, 0.3);
}

.tier-icon {
    font-size: 1.2rem;
}

.tier-badge {
    padding: 0.25rem 0.75rem;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #0F2A2A;
    text-transform: uppercase;
}

.tier-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.tier-info p {
    color: #C0C0C0;
    margin: 0;
}

.tier-info strong {
    color: #7FFF00;
}

.link-upgrade {
    color: #7FFF00;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
}

.link-upgrade:hover {
    text-decoration: underline;
    color: #6DE800;
}

/* ===================================
   EVENTS GRID SECTION
   ================================== */

.events-grid-section {
    padding: 4rem 0;
    background: #0F2A2A;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1.5rem;
    overflow-x: hidden;
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: flex-start;
    }
}

.header-left h2 {
    font-size: 2.5rem;
    color: #FFFFFF;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    .header-left h2 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .header-left h2 {
        font-size: 1.75rem;
    }
}

.section-subtitle {
    color: #C0C0C0;
    font-size: 1rem;
}

.header-right {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
    background: rgba(31, 85, 85, 0.4);
    padding: 0.5rem;
    border-radius: 12px;
}

.view-btn {
    padding: 0.75rem;
    background: transparent;
    border: none;
    color: #C0C0C0;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.view-btn:hover {
    color: #7FFF00;
    background: rgba(127, 255, 0, 0.1);
}

.view-btn.active {
    background: rgba(127, 255, 0, 0.2);
    color: #7FFF00;
}

/* Mobile responsive view toggle */
@media (max-width: 768px) {
    .header-right {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .header-right::-webkit-scrollbar {
        display: none;
    }
    
    .view-toggle {
        flex-shrink: 0;
    }
    
    .view-btn {
        min-width: 48px;
        min-height: 48px;
    }
    
    .sort-select {
        min-width: 140px;
        flex-shrink: 0;
    }
}

@media (max-width: 480px) {
    .view-btn svg {
        width: 18px;
        height: 18px;
    }
    
    .sort-select {
        padding: 0.65rem 1.2rem;
        font-size: 0.85rem;
        padding-right: 2.5rem;
        min-width: 120px;
    }
}

.sort-select {
    padding: 0.75rem 1.5rem;
    background: rgba(31, 85, 85, 0.4);
    border: 2px solid rgba(127, 255, 0, 0.15);
    border-radius: 12px;
    color: #FFFFFF;
    cursor: pointer;
    font-size: 0.9rem;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%237FFF00' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.sort-select:hover,
.sort-select:focus {
    border-color: #7FFF00;
    outline: none;
}

/* ===================================
   EVENTS GRID
   ================================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 2.5rem;
    margin-bottom: 3rem;
}

/* ===================================
   EVENT CARD
   ================================== */

.event-card {
    background: linear-gradient(135deg, rgba(31, 85, 85, 0.4), rgba(15, 42, 42, 0.6));
    border: 2px solid rgba(127, 255, 0, 0.15);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-8px);
    border-color: #7FFF00;
    box-shadow: 0 20px 60px rgba(127, 255, 0, 0.2);
}

/* Event Image */
.event-image {
    width: 100%;
    height: 180px;
    position: relative;
    overflow: hidden;
    background: #1A3A3A;
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.placeholder-gradient {
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.event-card:hover .placeholder-gradient {
    transform: scale(1.05);
}

/* Event Badges */
.event-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    z-index: 2;
}

.badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.badge-category,
.tag-category {
    background: rgba(127, 255, 0, 0.9);
    color: #0F2A2A;
}

.badge-tier {
    background: rgba(31, 85, 85, 0.9);
    color: #7FFF00;
    border: 1px solid #7FFF00;
}

.badge-free,
.tag-free {
    background: rgba(127, 255, 0, 0.9);
    color: #0F2A2A;
}

.badge-pro,
.tag-pro {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #0F2A2A;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.tag-online {
    background: rgba(59, 130, 246, 0.9);
    color: #FFFFFF;
}

/* Favorite Button */
.btn-favorite {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 44px;
    height: 44px;
    background: rgba(15, 42, 42, 0.8);
    border: 2px solid rgba(127, 255, 0, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.btn-favorite:hover {
    background: rgba(127, 255, 0, 0.2);
    border-color: #7FFF00;
    transform: scale(1.1);
}

.btn-favorite.active {
    background: rgba(127, 255, 0, 0.2);
    border-color: #7FFF00;
}

.btn-favorite svg {
    color: #7FFF00;
}

/* Pro Overlay */
.pro-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 42, 42, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-card.pro .pro-overlay {
    opacity: 0;
}

.event-card.pro:hover .pro-overlay {
    opacity: 1;
}

.pro-overlay svg {
    color: #FFD700;
}

/* ===================================
   EVENT CONTENT
   ================================== */

.event-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Event Organizer */
.event-organizer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(127, 255, 0, 0.1);
}

.organizer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7FFF00 0%, #0D4F4F 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #0F2A2A;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.organizer-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.organizer-info {
    flex: 1;
    min-width: 0;
}

.organizer-name {
    font-weight: 600;
    color: #FFFFFF;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}

.organizer-role {
    font-size: 0.8rem;
    color: #C0C0C0;
}

/* Event Rating */
.event-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.rating-stars {
    display: flex;
    gap: 0.15rem;
    color: #FFD700;
    font-size: 0.9rem;
}

.rating-score {
    font-weight: 600;
    color: #FFFFFF;
    font-size: 0.9rem;
}

.rating-count {
    color: #C0C0C0;
    font-size: 0.85rem;
}

.event-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #C0C0C0;
    font-size: 0.9rem;
}

.meta-item svg {
    color: #7FFF00;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
}

.event-title {
    font-size: 1.25rem;
    color: #FFFFFF;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 700;
    /* Ograniczenie do 2 linii */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-description {
    color: #C0C0C0;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    /* Ograniczenie do 2 linii z ellipsis */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Event Highlights */
.event-highlights {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.highlight-badge {
    padding: 0.4rem 0.9rem;
    background: rgba(127, 255, 0, 0.1);
    border: 1px solid rgba(127, 255, 0, 0.3);
    border-radius: 20px;
    color: #7FFF00;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

/* Event Status */
.event-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.9rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.event-status.few-spots {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
}

.event-status.almost-full {
    background: rgba(251, 146, 60, 0.15);
    border: 1px solid rgba(251, 146, 60, 0.3);
    color: #FB923C;
}

.event-status.selling-fast {
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #22C55E;
}

/* Event Price Standalone - bez attendees */
.event-price-standalone {
    margin-bottom: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(127, 255, 0, 0.1);
    text-align: left;
}

.event-price-standalone .price-label {
    display: block;
    color: #C0C0C0;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.event-price-standalone .price-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #7FFF00;
}

.event-price-standalone .price-value.free {
    color: #7FFF00;
    font-size: 1.5rem;
}

/* Event Actions */
.event-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.action-btn {
    padding: 0.6rem 0.5rem;
    background: rgba(31, 85, 85, 0.4);
    border: 1px solid rgba(127, 255, 0, 0.2);
    border-radius: 10px;
    color: #C0C0C0;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
}

.action-btn svg {
    width: 18px;
    height: 18px;
    color: #7FFF00;
}

.action-btn:hover {
    background: rgba(127, 255, 0, 0.1);
    border-color: #7FFF00;
    color: #FFFFFF;
    transform: translateY(-2px);
}

.action-btn.active {
    background: rgba(127, 255, 0, 0.2);
    border-color: #7FFF00;
    color: #7FFF00;
}

.action-btn.active svg {
    fill: #7FFF00;
}

/* Event Action Button */
.btn-event-action {
    width: 100%;
    padding: 0.875rem 1.5rem;
    background: linear-gradient(135deg, #7FFF00 0%, #6DE800 100%);
    border: none;
    border-radius: 12px;
    color: #0F2A2A;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-event-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(127, 255, 0, 0.4);
}

.btn-event-action:active {
    transform: translateY(0);
}

/* ===================================
   LOAD MORE
   ================================== */

.load-more-section {
    text-align: center;
    margin-top: 4rem;
}

.btn-load-more {
    padding: 1.25rem 3rem;
    background: rgba(31, 85, 85, 0.4);
    border: 2px solid rgba(127, 255, 0, 0.3);
    border-radius: 50px;
    color: #7FFF00;
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.btn-load-more:hover {
    background: rgba(127, 255, 0, 0.1);
    border-color: #7FFF00;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(127, 255, 0, 0.2);
}

.btn-load-more:active {
    transform: translateY(0);
}

/* ===================================
   FOOTER ENHANCEMENTS
   ================================== */

.footer {
    background: #0F2A2A;
    border-top: 1px solid rgba(127, 255, 0, 0.1);
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    color: #7FFF00;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-section p,
.footer-section ul {
    color: #C0C0C0;
    line-height: 1.8;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #C0C0C0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #7FFF00;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(127, 255, 0, 0.1);
}

.footer-bottom p {
    color: #C0C0C0;
    margin: 0;
}

/* ===================================
   RESPONSIVE DESIGN
   ================================== */

@media (max-width: 1200px) {
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .events-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .events-hero {
        padding: 2.5rem 0 2.5rem 0;
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .search-filters {
        grid-template-columns: 1fr;
    }
    
    /* HIDE SIDEBAR on mobile */
    .hero-layout {
        grid-template-columns: 1fr !important;
    }
    
    .interests-sidebar {
        display: none !important;
    }
    
    /* Remove container padding on mobile to prevent overflow */
    .events-hero .container {
        padding: 0 1rem !important;
        max-width: 100%;
        overflow-x: hidden;
    }
    
    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    /* FIX: Map popup dla mobile */
    .maplibregl-popup-content {
        max-width: 280px !important;
        padding: 1rem !important;
    }
    
    .popup-btn {
        min-height: 48px !important;
        padding: 12px 20px !important;
    }
    
    /* FIX: Touch targets (wszystkie buttony) */
    .view-btn, 
    .btn-filter,
    .filter-chip {
        min-height: 48px !important;
        padding: 12px 16px !important;
    }
    
    /* FIX: Event card titles (lepsza czytelność) */
    .event-title {
        font-size: 1.25rem !important;
        line-height: 1.4 !important;
    }
    
    .tier-banner .container {
        flex-direction: column;
        text-align: center;
    }
    
    .tier-toggle {
        width: 100%;
        justify-content: center;
    }
    
    .tier-info {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .header-right {
        width: 100%;
        justify-content: space-between;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    /* List View na tablet - zachowaj horizontal layout ale mniejszy */
    .events-grid.list-view .event-card {
        min-height: 180px;
        grid-template-columns: 200px 1fr;
    }
    
    .events-grid.list-view .event-image {
        width: 200px;
        min-height: 180px;
    }
    
    .events-grid.list-view .event-content {
        padding: 1.25rem 1.5rem;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 1rem;
    }
    
    .pro-header h3,
    .cta-content h3 {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .events-hero {
        padding: 2rem 0 2rem 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.4rem 1.2rem;
    }
    
    .search-box {
        padding: 1rem;
    }
    
    /* Prevent horizontal overflow */
    .container {
        padding: 0 0.5rem !important;
        max-width: 100%;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }
    
    .events-hero .container {
        padding: 0 0.5rem !important;
    }
    
    .events-hero {
        overflow-x: hidden;
    }
    
    .quick-filters {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scrollbar-width: thin;
        scrollbar-color: #7FFF00 rgba(31, 85, 85, 0.4);
    }
    
    .quick-filters::-webkit-scrollbar {
        height: 6px;
    }
    
    .quick-filters::-webkit-scrollbar-track {
        background: rgba(31, 85, 85, 0.4);
        border-radius: 3px;
    }
    
    .quick-filters::-webkit-scrollbar-thumb {
        background: #7FFF00;
        border-radius: 3px;
    }
    
    .filter-chip {
        white-space: nowrap;
    }
    
    .tier-btn {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .event-card {
        border-radius: 15px;
    }
    
    .event-content {
        padding: 1.5rem;
    }
    
    .event-title {
        font-size: 1.3rem;
    }
    
    /* FIX: Better spacing dla event cards */
    .event-card {
        margin-bottom: 1.5rem;
    }
    
    /* FIX: Overflow handling */
    .event-card * {
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    
    /* List View na mobile - zmień na vertical layout */
    .events-grid.list-view .event-card {
        grid-template-columns: 1fr;
        min-height: auto;
        height: auto;
    }
    
    .events-grid.list-view .event-image {
        width: 100%;
        height: 160px;
        min-height: 160px;
        border-radius: 15px 15px 0 0;
    }
    
    .events-grid.list-view .event-content {
        padding: 1.25rem;
    }
    
    .events-grid.list-view .event-rating {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }
    
    .events-grid.list-view .action-btn span {
        display: inline;
    }
    
    .upgrade-cta {
        padding: 2rem 1.5rem;
    }
    
    .btn-upgrade-pro {
        padding: 1.2rem 2.5rem;
        font-size: 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* ===================================
   ANIMATIONS
   ================================== */

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.event-card {
    animation: fadeInUp 0.5s ease-out;
}

.event-card:nth-child(1) { animation-delay: 0.1s; }
.event-card:nth-child(2) { animation-delay: 0.2s; }
.event-card:nth-child(3) { animation-delay: 0.3s; }
.event-card:nth-child(4) { animation-delay: 0.4s; }
.event-card:nth-child(5) { animation-delay: 0.5s; }
.event-card:nth-child(6) { animation-delay: 0.6s; }

/* ===================================
   ACCESSIBILITY
   ================================== */

.btn-favorite:focus,
.btn-search:focus,
.btn-event-action:focus,
.tier-btn:focus,
.filter-chip:focus,
.btn-load-more:focus,
.btn-upgrade-pro:focus {
    outline: 2px solid #7FFF00;
    outline-offset: 2px;
}

/* ===================================
   LIST VIEW STYLES
   ================================== */

/* List View Grid - zmienia layout na single column */
.events-grid.list-view {
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

/* List View Card - horizontal layout */
.events-grid.list-view .event-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 0;
    min-height: 200px;
    height: auto;
}

/* List View Image - mniejszy, po lewej */
.events-grid.list-view .event-image {
    height: 100%;
    min-height: 200px;
    width: 240px;
    border-radius: 20px 0 0 20px;
}

/* List View Content - dwukolumnowy layout */
.events-grid.list-view .event-content {
    padding: 1.5rem 2rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2rem;
}

/* List View Left Column */
.events-grid.list-view .event-left-column {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* List View Right Column */
.events-grid.list-view .event-right-column {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
    min-width: 200px;
}

/* List View Organizer - po lewej */
.events-grid.list-view .event-organizer {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    order: 1;
}

/* List View Rating - nad datą po lewej */
.events-grid.list-view .event-rating {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    order: 2;
}

/* List View Title */
.events-grid.list-view .event-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.4;
    order: 4;
}

/* List View Description */
.events-grid.list-view .event-description {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    line-height: 1.5;
    order: 5;
}

/* List View Meta - pod ratingiem */
.events-grid.list-view .event-meta {
    margin-bottom: 0.5rem;
    gap: 1.5rem;
    flex-wrap: nowrap;
    order: 3;
}

/* List View Highlights - po lewej na końcu */
.events-grid.list-view .event-highlights {
    display: flex;
    margin-bottom: 0;
    order: 6;
}

.events-grid.list-view .highlight-badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
}

.events-grid.list-view .event-status {
    display: none;
}

/* List View Price - po prawej u góry */
.events-grid.list-view .event-price-standalone {
    margin-bottom: 0;
    padding-top: 0;
    border-top: none;
    text-align: right;
    order: 1;
}

.events-grid.list-view .event-price-standalone .price-value {
    font-size: 1.75rem;
}

.events-grid.list-view .event-price-standalone .price-label {
    font-size: 0.8rem;
}

/* List View Actions - pod ceną po prawej */
.events-grid.list-view .event-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0;
    order: 2;
}

.events-grid.list-view .action-btn {
    flex: 0 0 auto;
    padding: 0.6rem 1rem;
    flex-direction: row;
    gap: 0.5rem;
    font-size: 0.85rem;
    border-radius: 10px;
    justify-content: flex-start;
    min-width: 120px;
}

.events-grid.list-view .action-btn span {
    display: inline;
}

/* List View Main CTA - wyraźny */
.events-grid.list-view .btn-event-action {
    padding: 0.875rem 1.75rem;
    font-size: 0.95rem;
    gap: 0.5rem;
    white-space: nowrap;
}

/* List View Avatar - mniejszy */
.events-grid.list-view .organizer-avatar {
    width: 36px;
    height: 36px;
    font-size: 0.85rem;
}

/* List View Badges - mniejsze */
.events-grid.list-view .event-badges {
    top: 0.75rem;
    left: 0.75rem;
}

.events-grid.list-view .badge {
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
