/**
 * GamesFinest Events Integration - Styles
 */

/* ===========================
   Events List Grid
   =========================== */
.gf-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.gf-event-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gf-event-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.gf-event-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

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

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

.gf-event-content {
    padding: 20px;
}

.gf-event-header {
    margin-bottom: 16px;
}

.gf-event-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
}

.gf-event-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.gf-event-title a:hover {
    color: #e74c3c;
}

.gf-event-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gf-event-meta {
    margin-bottom: 12px;
    font-size: 14px;
    color: #666;
}

.gf-event-meta > div {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.gf-icon {
    font-size: 16px;
    line-height: 1;
}

.gf-event-description {
    margin-bottom: 16px;
    color: #444;
    font-size: 14px;
    line-height: 1.6;
}

.gf-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #e5e5e5;
}

.gf-event-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    font-size: 14px;
    transition: background 0.2s ease;
}

.gf-event-link:hover {
    background: #c0392b;
    color: #fff;
}

.gf-event-applications {
    font-size: 12px;
    color: #27ae60;
    font-weight: 600;
}

/* ===========================
   Featured Event
   =========================== */
.gf-event-featured {
    margin: 32px 0;
}

.gf-event-featured-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gf-event-featured-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background: #f5f5f5;
}

.gf-event-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gf-event-badge-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gf-event-featured-content {
    padding: 32px;
}

.gf-event-featured-title {
    margin: 0 0 24px 0;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}

.gf-event-featured-title a {
    color: #1a1a1a;
    text-decoration: none;
}

.gf-event-featured-title a:hover {
    color: #e74c3c;
}

.gf-event-featured-meta {
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.gf-event-featured-meta > div {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.gf-event-featured-description {
    margin-bottom: 24px;
    color: #444;
    font-size: 16px;
    line-height: 1.7;
}

.gf-event-featured-footer {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
    padding-top: 24px;
    border-top: 2px solid #e5e5e5;
}

.gf-event-featured-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s ease;
}

.gf-event-featured-button:hover {
    background: #c0392b;
    color: #fff;
}

.gf-event-featured-applications {
    flex: 1;
    padding: 16px;
    background: #d5f4e6;
    border-radius: 6px;
    color: #27ae60;
}

.gf-event-featured-stream {
    padding: 8px 16px;
    background: #e8f4fd;
    border-radius: 6px;
    color: #3498db;
    font-weight: 600;
}

/* ===========================
   Single Event
   =========================== */
.gf-event-single {
    margin: 32px 0;
}

.gf-event-single-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.gf-event-single-header {
    padding: 32px;
    background: #f8f9fa;
    border-bottom: 2px solid #e5e5e5;
}

.gf-event-single-title {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
}

.gf-event-single-image {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    background: #f5f5f5;
}

.gf-event-single-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gf-event-single-meta {
    padding: 32px;
    background: #f8f9fa;
}

.gf-event-single-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.gf-event-meta-item {
    display: flex;
    gap: 12px;
}

.gf-event-single-description,
.gf-event-single-program,
.gf-event-single-organizer,
.gf-event-single-applications {
    padding: 32px;
}

.gf-event-single-description h3,
.gf-event-single-program h3,
.gf-event-single-organizer h3,
.gf-event-single-applications h3 {
    margin: 0 0 16px 0;
    font-size: 24px;
    font-weight: 700;
}

.gf-event-description-content,
.gf-event-program-content,
.gf-event-organizer-content {
    line-height: 1.7;
    color: #444;
}

.gf-event-applications-box {
    padding: 24px;
    background: #d5f4e6;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
}

.gf-event-single-footer {
    padding: 32px;
    text-align: center;
    background: #f8f9fa;
    border-top: 2px solid #e5e5e5;
}

.gf-event-single-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: #e74c3c;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 18px;
    transition: background 0.2s ease;
}

.gf-event-single-button:hover {
    background: #c0392b;
    color: #fff;
}

/* ===========================
   Error & Empty States
   =========================== */
.gf-events-error,
.gf-events-no-events {
    padding: 24px;
    margin: 24px 0;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.gf-events-error p,
.gf-events-no-events p {
    margin: 0;
    color: #856404;
}

/* ===========================
   Pagination
   =========================== */
.gf-events-pagination {
    margin-top: 24px;
    text-align: center;
}

.gf-events-total {
    color: #666;
    font-size: 14px;
}

/* ===========================
   Responsive Design
   =========================== */
@media (max-width: 768px) {
    .gf-events-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .gf-event-featured-image {
        height: 250px;
    }

    .gf-event-featured-content {
        padding: 20px;
    }

    .gf-event-featured-title {
        font-size: 24px;
    }

    .gf-event-featured-meta {
        grid-template-columns: 1fr;
    }

    .gf-event-single-title {
        font-size: 28px;
    }

    .gf-event-single-meta-grid {
        grid-template-columns: 1fr;
    }
}
