body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(300deg, #f5f3ff, #eef2ff, #fde2e4);
    background-size: 180% 180%;
    animation: dreamy-gradient-animation 18s ease infinite;
    color: #334155;
    margin: 0;
    padding: 6rem 2rem 2rem 2rem;
}
@keyframes dreamy-gradient-animation {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.search-container {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}
.search-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}
.search-icon {
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    pointer-events: none;
}
.search-bar {
    width: 100%;
    max-width: 600px;
    padding: 1rem 1.5rem 1rem 3rem;
    border: 2px solid #7c3aed;
    border-radius: 25px;
    font-size: 1.125rem;
    outline: none;
    transition: border-color 0.3s ease;
}
.search-bar:focus {
    border-color: #6d28d9;
}
.clubs-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
@media (max-width: 1023px) {
    .clubs-container {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 639px) {
    .clubs-container {
        grid-template-columns: repeat(1, 1fr);
    }
}
.club-card {
    background-color: white;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(124, 58, 237, 0.15);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    height: 300px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.club-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
    z-index: 1;
}
.club-card:hover {
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.3);
    transform: translateY(-5px);
}
.club-card * {
    position: relative;
    z-index: 10;
}
.club-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}
.club-info {
    font-size: 1rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}
.club-members {
    font-size: 1rem;
    color: #fbbf24;
    font-weight: 600;
    margin-bottom: 1rem;
}
.favorite-star {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.75rem;
    color: #cbd5e1;
    cursor: pointer;
    transition: color 0.3s ease;
    user-select: none;
}
.favorite-star.favorited {
    color: #facc15;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.active {
    display: flex;
    opacity: 1;
}
.modal-content {
    background-color: white;
    border-radius: 1.5rem;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
    text-align: center;
    position: relative;
}
.modal-close-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #9ca3af;
    line-height: 1;
    transition: color 0.2s;
}
.modal-close-btn:hover {
    color: #4b5563;
}
.modal-message {
    font-size: 1.125rem;
    color: #334155;
    margin-top: 1.5rem;
}
