body, html {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
    background-color: #f0f2f5;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background-color: #4a148c;
    color: white;
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    background-color: #6a1b9a;
    padding: 8px 15px;
    border-radius: 5px;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-bar input {
    background-color: #6a1b9a;
    border: none;
    padding: 8px 12px;
    border-radius: 15px 0 0 15px;
    color: white;
    outline: none;
}

.search-bar input::placeholder {
    color: #e0e0e0;
}

.search-bar button {
    background-color: #6a1b9a;
    border: none;
    padding: 8px 12px;
    border-radius: 0 15px 15px 0;
    color: white;
    cursor: pointer;
}

.hero {
    display: flex;
    height: 400px;
    background-color: #0c0a1a;
    position: relative;
}

.hero-left {
    width: 20%;
    background: url('images/stadium-left.png') no-repeat center center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.league-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 20px;
}

.league-logos img {
    width: 60px;
    height: 60px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 5px;
    object-fit: contain;
}

.hero-center {
    width: 60%;
    background: url('images/stadium-center.png') no-repeat center bottom;
    background-size: cover;
}

.hero-right {
    width: 20%;
    background: url('images/players.png') no-repeat center center;
    background-size: cover;
}

.centered-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 80%; /* Adjust size as needed */
    max-height: 80%; /* Adjust size as needed */
    z-index: 10; /* Make sure it's on top of the background */
}

.sticky-coin {
    position: fixed;
    right: 20px;
    bottom: 100px;
    background-color: #ffc107;
    color: #d9534f;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #d9534f;
}

.sticky-coin .coin-icon {
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
}


.rankings, .events {
    background-color: white;
    padding: 20px;
    margin-top: 20px;
    border-radius: 8px;
}

.tabs {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.tabs h2 {
    margin: 0;
    font-size: 20px;
    margin-right: 20px;
}

.tabs a {
    text-decoration: none;
    color: #555;
    padding: 8px 15px;
    border-radius: 20px;
    margin-right: 10px;
    font-size: 14px;
}

.tabs a.active {
    background-color: #4a148c;
    color: white;
}

.events-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.events-header h2 {
    margin: 0;
    font-size: 20px;
}

.events-header a {
    text-decoration: none;
    color: #888;
    font-size: 14px;
}

.events-body {
    padding: 40px 0;
    text-align: center;
}

.no-events {
    display: inline-block;
    background-color: #f8f8f8;
    padding: 30px;
    border-radius: 8px;
}

.no-events p {
    margin: 0;
    color: #aaa;
    font-size: 18px;
    background: linear-gradient(to right, #8e2de2, #4a00e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: bold;
}

footer {
    background-color: #333;
    color: #aaa;
    padding: 20px 0;
    text-align: center;
    font-size: 12px;
    margin-top: 20px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    margin: 0 10px;
}

footer p {
    margin: 5px 0;
}

/* Gallery styles for events images */
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    align-items: start;
    justify-items: center;
}

.gallery-item {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(16,24,40,0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    text-align: center;
    cursor: pointer;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.gallery-item figcaption {
    padding: 10px 12px;
    font-size: 14px;
    color: #444;
    background: linear-gradient(90deg, rgba(255,255,255,0.9), rgba(250,250,250,0.9));
}

.gallery-item:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: 0 12px 30px rgba(16,24,40,0.12);
}

/* Responsive adjustments */
@media (max-width: 1000px) {
    .gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 700px) {
    .gallery { grid-template-columns: repeat(2, 1fr); }
    .gallery-item img { height: 140px; }
}

@media (max-width: 420px) {
    .gallery { grid-template-columns: 1fr; }
    .gallery-item img { height: 220px; }
}
