/* ---------- RESET & BASE ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f6f8;
    color: #2c3e50;
    line-height: 1.6;
    overflow-x: hidden;
}

/* ---------- TOP BAR ---------- */
.top-bar {
    background-color: #1f2a38;
    color: white;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.top-bar-left {
    font-size: 18px;
}

.top-bar-right {
    font-size: 14px;
    color: #ddd;
}

.top-bar-right strong {
    color: #fff;
}

/* ---------- CONTAINER ---------- */
.container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
}

/* ---------- HEADER ---------- */
h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: #1f3a5f;
    font-weight: 700;
}

/* ---------- NAVIGATION ---------- */
nav {
    text-align: center;
    margin-bottom: 30px;
}

nav a {
    display: inline-block;
    background-color: #4a90e2;
    color: white;
    text-decoration: none;
    padding: 12px 25px;
    margin: 5px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

nav a:hover,
nav a.active {
    background-color: #357ABD;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}

/* ---------- CLUB GRID ---------- */
.club-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ---------- CARD ---------- */
.card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.card h4 {
    color: #1f3a5f;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.card p {
    font-size: 14px;
    color: #3a4a5e;
    margin-bottom: 10px;
}

/* ---------- CARD BUTTONS ---------- */
.card .btn {
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-right: 5px;
}

.card .btn-success { background-color: #50b67c; color: #fff; }
.card .btn-success:hover { background-color: #399163; }

.card .btn-warning { background-color: #f39c12; color: #fff; }
.card .btn-warning:hover { background-color: #d68910; }

.card .btn-danger { background-color: #e74c3c; color: #fff; }
.card .btn-danger:hover { background-color: #c0392b; }

/* ---------- FORM STYLING ---------- */
form input, form textarea, form select {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-size: 14px;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

form input:focus, form textarea:focus, form select:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 5px rgba(74,144,226,0.3);
}

form button {
    background-color: #4a90e2;
    color: white;
    border: none;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

form button:hover {
    background-color: #357ABD;
    transform: translateY(-1px);
}

/* ---------- ALERTS ---------- */
.alert {
    padding: 12px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-success { background-color: #50b67c; color: white; }
.alert-danger { background-color: #e74c3c; color: white; }

/* ---------- FOOTER ---------- */
footer {
    background-color: #1f3a5f;
    color: #ccc;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #222;
    font-size: 14px;
    letter-spacing: 0.5px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .club-grid { grid-template-columns: 1fr; }
    nav a { display: block; margin-bottom: 10px; }
    .top-bar { flex-direction: column; align-items: flex-start; }
    .top-bar-right { margin-top: 5px; }
}

/* ---------- AUTH LINK (Login/Register prompt) ---------- */
.auth-link {
    text-align: center;
    margin-top: 15px;
    font-size: 18px;
    color: #555;
}

.auth-link a {
    color: #4a90e2;
    font-weight: 600;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.2s ease;
}

.auth-link a:hover {
    color: #357ABD;
    text-decoration: underline;
}