﻿:root {
    --primary-teal: #005f69;
    --secondary-teal: #005f69;
    --accent-orange: #f26f33;
    --light-gray: #f8f9fa;
    --dark-gray: rgb(51,51,51);
    --hover-teal: #0f5555;
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 0 1rem;
}

.club-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    text-align: left;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .club-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-teal), var(--accent-orange));
        transform: scaleX(0);
        transition: transform 0.3s ease;
    }

    .club-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 15px 40px rgba(30, 107, 107, 0.15);
        border-color: var(--primary-teal);
        text-decoration: none;
        color: inherit;
    }

        .club-card:hover::before {
            transform: scaleX(1);
        }

.club-name {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-teal);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.club-leader {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
    min-height: 150px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.leader-role {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-orange);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.leader-name {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
}

.leader-info {
    font-size: 0.9rem;
    color: var(--dark-gray);
    line-height: 1.4;
    margin-bottom: 0.8rem;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.leader-contact {
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--primary-teal);
}

    .leader-contact > .contact-item {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 0.4rem;
        word-break: break-all;
        font-size: 0.95rem;
        font-weight: 500;
        align-items: center;
    }

    .leader-contact > .contact-item:last-child {
        margin-bottom: 0;
    }

        .leader-contact > .contact-item i {
            width: 16px;
            font-size: 0.85rem;
            color: var(--primary-teal);
            margin-top: 0.1rem;
            flex-shrink: 0;
        }

.contact-text {
    line-height: 1.3;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.club-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.member-count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.view-button {
    background: linear-gradient(135deg, var(--primary-teal), var(--secondary-teal));
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.club-card:hover .view-button {
    background: linear-gradient(135deg, var(--hover-teal), var(--primary-teal));
    transform: scale(1.05);
}

.badge-new {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--accent-orange);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2rem;
    }

    .clubs-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .club-leader {
        min-height: 180px;
    }

    .contact-btn-link {
        padding: 10px 18px;
    }

    .member-count {
        font-size: 14px;
    }

    .club-name {
        font-size: 18px;
    }

    .leader-role {
        font-size: 16px;
    }

    .leader-name {
        font-size: 16px;
    }

    .leader-info {
        font-size: 14px;
    }
}
