/* =====================================================
   GlamRap Wydarzenia - Frontend Styles
   Matches zox-news theme conventions
   ===================================================== */

/* === Archive Header & Filter === */
.grp-archive-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.grp-archive-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.grp-genre-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.grp-filter-btn {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 3px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.grp-filter-btn:hover {
    background: #e0e0e0;
    color: #333;
}

.grp-filter-btn.active {
    background: #000;
    color: #fff;
}

/* === Event location in listing === */
.grp-event-location {
    color: #888;
    font-size: 13px;
    margin-bottom: 5px !important;
}

/* Cancelled badge on listing thumbnail */
.grp-listing-cancelled-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #d63638;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.grp-no-events {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 16px;
}

/* === Load More button === */
.grp-load-more-wrap {
    text-align: center;
    padding: 20px 0;
}

.grp-load-more-btn {
    display: inline-block;
    padding: 12px 40px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.grp-load-more-btn:hover {
    background: #333;
}

.grp-load-more-btn.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* === Single Event: Cancelled badge === */
.grp-cancelled-badge {
    display: inline-block;
    padding: 6px 16px;
    background: #d63638;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    border-radius: 3px;
}

/* === Single Event: Details list (text-based, icons inline) === */
.grp-single-details {
    margin: 20px 0 25px;
    padding: 15px 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.grp-details-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.grp-details-list li {
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}

.grp-details-list li i {
    width: 20px;
    text-align: center;
    margin-right: 8px;
    color: #888;
}

.grp-details-list li strong {
    margin-right: 4px;
}

/* === Additional info === */
.grp-additional-info {
    padding: 20px;
    background: #fafafa;
    border-left: 3px solid #000;
    margin: 20px 0;
}

.grp-additional-info h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

/* === Ticket Box === */
.grp-ticket-box {
    margin: 30px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #1a1a1a;
}

.grp-ticket-box-inner {
    padding: 25px 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.grp-ticket-info {
    flex: 1;
    min-width: 200px;
}

.grp-ticket-info h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 20px;
}

.grp-ticket-info p {
    margin: 0;
    color: #ccc;
    font-size: 14px;
    line-height: 1.5;
}

.grp-ticket-info strong {
    color: #0be6af;
    font-size: 18px;
}

.grp-ticket-info small {
    color: #999;
}

.grp-ticket-action {
    flex-shrink: 0;
}

.grp-ticket-btn {
    display: inline-block;
    padding: 14px 32px;
    background: #0be6af;
    color: #000 !important;
    font-weight: 700;
    font-size: 16px;
    text-decoration: none !important;
    border-radius: 5px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.grp-ticket-btn:hover {
    background: #09c99a;
    transform: translateY(-1px);
}

.grp-ticket-brand {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.grp-ticket-brand img {
    height: 28px;
    width: auto;
    opacity: 0.6;
}

/* === Related Events Carousel === */
.grp-related-events {
    margin: 30px 0 0;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.grp-carousel-wrap {
    position: relative;
    overflow: hidden;
}

.grp-carousel-track {
    overflow: hidden;
}

.grp-carousel-inner {
    display: flex;
    transition: transform 0.4s ease;
    gap: 15px;
}

.grp-carousel-item {
    flex: 0 0 calc(25% - 12px);
    min-width: 200px;
}

.grp-carousel-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.grp-carousel-img {
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
    aspect-ratio: 16/10;
}

.grp-carousel-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grp-carousel-item a:hover .grp-carousel-img img {
    transform: scale(1.05);
}

.grp-carousel-text h5 {
    margin: 4px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.grp-carousel-location {
    font-size: 12px;
    color: #888;
}

.grp-carousel-location i {
    margin-right: 3px;
}

.grp-carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s ease;
}

.grp-carousel-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.grp-carousel-prev {
    left: 5px;
}

.grp-carousel-next {
    right: 5px;
}

/* === Featured Events Block/Shortcode === */
.grp-featured-events {
    margin: 20px 0;
}

.grp-featured-grid {
    display: flex;
    gap: 20px;
}

.grp-featured-col {
    flex: 1;
}

.grp-featured-item {
    display: flex;
    gap: 15px;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s ease;
}

.grp-featured-item:hover {
    background: #fafafa;
}

.grp-featured-item:first-child {
    padding-top: 0;
}

.grp-featured-item-img {
    flex-shrink: 0;
    width: 120px;
    height: 75px;
    border-radius: 4px;
    overflow: hidden;
}

.grp-featured-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grp-featured-item-text {
    flex: 1;
    min-width: 0;
}

.grp-featured-item-text h4 {
    margin: 4px 0 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.grp-featured-more {
    text-align: center;
    padding: 20px 0 0;
}

.grp-more-link {
    display: inline-block;
    padding: 10px 24px;
    background: #000;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600;
    font-size: 13px;
    border-radius: 3px;
    transition: background 0.2s ease;
}

.grp-more-link:hover {
    background: #333;
}

.grp-more-link i {
    margin-left: 6px;
}

/* === News Events Box === */
.grp-news-events-box {
    margin: 30px 0;
    border: 2px solid #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
}

.grp-news-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #1a1a1a;
    color: #fff;
    flex-wrap: wrap;
    gap: 10px;
}

.grp-news-events-title {
    font-weight: 700;
    font-size: 16px;
}

.grp-news-events-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: #0be6af;
    color: #000 !important;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 12px;
    border-radius: 3px;
    white-space: nowrap;
}

.grp-biletomat-logo-inline {
    height: 16px;
    width: auto;
}

.grp-news-events-list {
    padding: 0;
}

.grp-news-event-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 10px;
    border-bottom: 1px solid #eee;
}

.grp-news-event-item:last-child {
    border-bottom: none;
}

.grp-news-event-link {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    min-width: 0;
    text-decoration: none !important;
    color: inherit;
    padding: 4px 0;
    transition: opacity 0.15s ease;
}

.grp-news-event-link:hover {
    opacity: 0.7;
}

.grp-news-event-item .grp-news-events-badge {
    flex-shrink: 0;
    margin-left: auto;
}

/* Fallback box */
.grp-news-events-fallback {
    border: none;
}

.grp-fallback-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 24px;
    background: #1a1a1a;
    text-decoration: none !important;
    border-radius: 8px;
    transition: background 0.2s ease;
    flex-wrap: wrap;
}

.grp-fallback-link:hover {
    background: #333;
}

.grp-fallback-text {
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
}

.grp-biletomat-logo-fallback {
    height: 24px;
    width: auto;
}

.grp-news-event-date {
    flex-shrink: 0;
    font-size: 13px;
    color: #888;
    min-width: 120px;
}

.grp-news-event-info {
    flex: 1;
    min-width: 0;
}

.grp-news-event-info strong {
    display: block;
    font-size: 14px;
    color: #333;
}

.grp-news-event-info span {
    display: block;
    font-size: 12px;
    color: #888;
}

.grp-news-event-price {
    flex-shrink: 0;
    font-weight: 700;
    color: #0be6af;
    font-size: 14px;
    white-space: nowrap;
}

/* === Responsive === */
@media (max-width: 768px) {
    .grp-ticket-box-inner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .grp-ticket-brand {
        justify-content: center;
    }

    .grp-featured-grid {
        flex-direction: column;
    }

    .grp-carousel-item {
        flex: 0 0 calc(50% - 8px);
        min-width: 150px;
    }

    .grp-news-event-item {
        flex-wrap: wrap;
    }

    .grp-news-event-date {
        min-width: auto;
        width: 100%;
    }

    .grp-featured-item-img {
        width: 80px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .grp-carousel-item {
        flex: 0 0 calc(80% - 8px);
    }

    .grp-genre-filter {
        gap: 4px;
    }

    .grp-filter-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
}
