/* Tournaments Dashboard & Profile Styles */

@import url('styles.css');

.dashboard-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 15px;
}

.dashboard-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0;
}

.btn-add {
    background-color: #27ae60;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-add:hover {
    background-color: #2ecc71;
}

.clubs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.club-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.club-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.12);
}

.club-image {
    height: 200px;
    background-color: #bdc3c7;
    background-position: center;
    background-size: cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.club-image.placeholder {
    background: linear-gradient(135deg, #8e44ad, #6c3483);
}

.club-details {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.club-name {
    font-size: 1.5rem;
    margin: 0 0 10px 0;
    color: #2c3e50;
}

.club-meta {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    color: #7f8c8d;
    font-size: 0.95rem;
}

.club-meta li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.club-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    border-top: 1px solid #ecf0f1;
    padding-top: 15px;
}

.btn-action {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    transition: background-color 0.2s ease;
}

.btn-edit {
    background-color: #3498db;
    color: white;
}

.btn-edit:hover {
    background-color: #2980b9;
}

.btn-delete {
    background-color: #e74c3c;
    color: white;
}

.btn-delete:hover {
    background-color: #c0392b;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    color: #7f8c8d;
}

/* Form Styles */
.form-container {
    max-width: 600px;
    margin: 50px auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 2rem;
}

.form-header p {
    color: #7f8c8d;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #34495e;
    font-weight: 600;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="file"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #bdc3c7;
    border-radius: 6px;
    font-size: 1rem;
    color: #2c3e50;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #8e44ad;
    outline: none;
    box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.2);
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-submit {
    flex: 2;
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #2ecc71;
}

.btn-cancel {
    flex: 1;
    text-align: center;
    background-color: #ecf0f1;
    color: #7f8c8d;
    text-decoration: none;
    padding: 12px;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-cancel:hover {
    background-color: #bdc3c7;
    color: #2c3e50;
}

/* Tournament Profile Styles */
.club-profile-header {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 40px;
}

.profile-cover {
    height: 200px;
    background: linear-gradient(135deg, #8e44ad, #2c3e50);
    position: relative;
    display: flex;
    align-items: flex-end;
}

.profile-info {
    display: flex;
    align-items: flex-end;
    padding: 0 40px;
    margin-bottom: -40px;
    width: 100%;
    box-sizing: border-box;
    gap: 30px;
}

.profile-logo {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    background-color: white;
    border: 4px solid white;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    color: #34495e;
    flex-shrink: 0;
}

.profile-logo.placeholder {
    background-color: #ecf0f1;
}

.profile-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 45px;
}

.profile-text h1 {
    margin: 0;
    font-size: 2.8rem;
    color: white;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.location-badge {
    font-size: 1.1rem;
    color: #f1f1f1;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    margin-top: 8px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.2);
}

.profile-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    padding: 60px 40px 40px;
}

.content-section {
    margin-bottom: 40px;
}

.content-section h3 {
    color: #2c3e50;
    font-size: 1.5rem;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.info-item label {
    display: block;
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.info-item span {
    color: #2c3e50;
    font-weight: 600;
    font-size: 1.1rem;
}
