/*
=====================================================
Project Name: Face to Face Guests & Stats
Version: 1.0
Author: Bashar Kherz
Copyright © 2025

Colors:
- #F7F7F7 → Light Gray Background
- #FFFFFF → Card / Section Background
- #222 / #444 / #666 / #777 → Text Shades
=====================================================

SECTION STRUCTURE
=====================================================
1. GLOBAL --------------------- Resets & base
2. BASE ----------------------- Body, titles, subtitles
3. STATS ---------------------- Stats bar & items
4. GUESTS --------------------- Guest grid & cards
5. BUTTONS -------------------- View button + pagination
6. ROLLING CREDITS ------------ Credits scroll effect
7. RESPONSIVE ----------------- Tablet & mobile tweaks
=====================================================
*/


/* ============================== */
/* 1. GLOBAL                      */
/* ============================== */
*, *::before, *::after {
    box-sizing: border-box;
}


/* ============================== */
/* 2. BASE                        */
/* ============================== */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background: #F7F7F7;
    color: #222;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin: 40px 0 10px;
    color: #222;
}

.subtitle {
    text-align: center;
    font-size: 1rem;
    margin-bottom: 30px;
    color: #666;
}


/* ============================== */
/* 3. STATS                       */
/* ============================== */
.stats-wrapper {
    padding: 40px 20px 20px;
    background: #F7F7F7;
}

.stats-bar {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

.stat {
    background: #ffffff;
    padding: 24px 16px;
    border-radius: 16px;
    width: 240px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
}
.stat:hover {
    transform: translateY(-4px);
}

.stat-icon {
    font-size: 2rem;
    margin-bottom: 12px;
    color: #444;
}
.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #222;
}
.stat-label {
    font-size: 0.95rem;
    margin-top: 5px;
    color: #666;
}


/* ============================== */
/* 4. GUESTS                      */
/* ============================== */
.guests-wrapper {
    padding: 30px 20px 40px;
    background: #F7F7F7;
}

.search-bar {
    text-align: center;
    margin-bottom: 20px;
}

.search-input {
    padding: 10px 16px;
    width: 320px;
    max-width: 90%;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #F5F5F5;
}

.guest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    align-items: stretch;
}

.guest-card {
    width: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    padding: 14px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 8px;
    position: relative;
    isolation: isolate;
}
.guest-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    z-index: 2;
}

/* Avatar */
.guest-card img {
    width: fit-content;
    height: 93px;
    border-radius: 50%;
    aspect-ratio: 1/1;
}

/* Guest text */
.guest-name {
    font-size: 1rem;
    font-weight: 600;
    color: #222;
}
.guest-work {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 10px;
}


/* ============================== */
/* 5. BUTTONS                     */
/* ============================== */
.view-button {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 999px;
    background-color: #E0E0E0;
    color: #000;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
}
.view-button:hover {
    background-color: #D0D0D0;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
    gap: 10px;
}
.pagination button {
    background: #ffffff;
    border: 1px solid #ccc;
    padding: 6px 16px;
    font-size: 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    margin-bottom: 60px;
    transition: background 0.3s;
}
.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.pagination button:hover:not(:disabled) {
    background: #ddd;
}


/* ============================== */
/* 6. ROLLING CREDITS             */
/* ============================== */
.rolling-credits-section {
    background: #f7f7f7;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.credits-scroll {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.credits-wrapper {
    position: absolute;
    width: 100%;
    animation: scrollCredits 70s linear infinite;
}
.credits-list {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.credit-name {
    font-size: 1.1rem;
    margin: 10px 0;
    color: #444;
    white-space: nowrap;
}

/* Fade edges */
.credits-scroll::before,
.credits-scroll::after {
    content: "";
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 2;
    pointer-events: none;
}
.credits-scroll::before {
    top: 0;
    background: linear-gradient(to bottom, #f7f7f7 0%, rgba(247,247,247,0) 100%);
}
.credits-scroll::after {
    bottom: 0;
    background: linear-gradient(to top, #f7f7f7 0%, rgba(247,247,247,0) 100%);
}

@keyframes scrollCredits {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}


/* ============================== */
/* 7. RESPONSIVE                  */
/* ============================== */
@media (max-width: 768px) {
    .section-title { font-size: 1.7rem; }
    .subtitle { font-size: 0.95rem; }

    .stat {
        width: 100%;
        max-width: 320px;
        padding: 20px 12px;
    }
    .stat-icon { font-size: 1.6rem; }
    .stat-number { font-size: 1.6rem; }
    .stat-label { font-size: 0.85rem; }

    .guest-grid {
        grid-template-columns: 1fr;
        padding: 0 10px;
    }
    .guest-card { padding: 12px; }

    /* force smaller avatars */
    .guest-photo { width: 70px; height: 70px; }
    .guests-wrapper .guest-grid .guest-card > img.guest-photo {
        width: 70px !important; height: 70px !important;
    }

    .guest-name { font-size: 0.95rem; }
    .guest-work { font-size: 0.85rem; }
    .view-button { padding: 6px 12px; font-size: 0.8rem; }

    .pagination button { padding: 5px 12px; font-size: 0.85rem; }

    .credits-scroll::before,
    .credits-scroll::after { height: 50px; }

    .credit-name { font-size: 1rem; }
    .rolling-credits-section { height: 300px; }
}

@media (max-width: 480px) {
    .search-input { width: 100%; font-size: 0.95rem; }
    .section-title { font-size: 1.4rem; }
    .subtitle { font-size: 0.9rem; }
    .credit-name { font-size: 0.9rem; }
}

