/* Team Page Specific Styles */

/* Team Header Section */
.team-header {
    background-color: var(--green);
    padding: 150px 0 100px 0;
    margin-top: 90px;
    position: relative;
    text-align: center;
    color: var(--light);
}

.page-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--light);
}

.page-subtitle {
    font-size: 1.3rem;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

/* Team Members Section */
.team-members-section {
    background-color: var(--red);
    padding: 100px 0;
    min-height: 60vh;
}

.section-heading {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 60px;
    color: var(--light);
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(5, 220px);
    gap: 40px;
    margin: 0 auto;
    justify-content: center;
    justify-items: center;
}

.team-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
    color: var(--light);
}

.team-card:hover {
    transform: translateY(-10px);
    background-color: rgba(255, 255, 255, 0.15);
}

.team-card-image {
    width: 180px;
    height: 180px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card-content {
    margin-top: 20px;
}

.team-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--light);
}

.team-card-role {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--cream);
}

.team-card-vatsim {
    font-size: 0.9rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.team-card-bio {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 15px;
    opacity: 0.9;
}

.loading, .no-members, .error {
    text-align: center;
    font-size: 1.2rem;
    color: var(--light);
    padding: 40px;
    grid-column: 1 / -1;
}

.admin-link {
    color: var(--light);
    text-decoration: none;
    opacity: 0.6;
    font-size: 0.85rem;
    transition: opacity 0.3s ease;
}

.admin-link:hover {
    opacity: 1;
}

/* Admin Panel Styles */
.admin-container {
    max-width: 1400px;
    margin: 120px auto 40px;
    padding: 0 20px;
}

.admin-header {
    background-color: var(--green);
    color: var(--light);
    padding: 30px;
    border-radius: 10px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.admin-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin: 0;
}

.admin-actions {
    display: flex;
    gap: 15px;
}

.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary {
    background-color: var(--red);
    color: var(--light);
}

.btn-primary:hover {
    background-color: #a00d1e;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--dark);
    color: var(--light);
}

.btn-secondary:hover {
    background-color: #333;
}

.btn-success {
    background-color: var(--green);
    color: var(--light);
}

.btn-success:hover {
    background-color: #015c2e;
}

.btn-danger {
    background-color: var(--red);
    color: var(--light);
}

.btn-danger:hover {
    background-color: #a00d1e;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Admin Table */
.admin-table-container {
    background-color: var(--light);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table thead {
    background-color: var(--dark);
    color: var(--light);
}

.admin-table th {
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.admin-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.admin-table tbody tr:hover {
    background-color: #f5f5f5;
}

.member-image-preview {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    overflow: auto;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--light);
    margin: 20px;
    padding: 0;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    background-color: var(--green);
    color: var(--light);
    padding: 20px 30px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-family: 'Playfair Display', serif;
}

.close {
    color: var(--light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
}

.close:hover {
    opacity: 0.7;
}

.modal-body {
    padding: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    font-family: 'Open Sans', sans-serif;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--green);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.image-preview-container {
    margin-top: 10px;
}

.image-preview {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--green);
    margin-top: 10px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Login Page */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--green) 0%, var(--red) 100%);
}

.login-box {
    background-color: var(--light);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 400px;
}

.login-box h2 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    height: 100px;
}

.alert {
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-weight: 600;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .page-title {
        font-size: 2.5rem;
    }

    .team-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 30px;
    }

    .admin-header {
        flex-direction: column;
        gap: 20px;
    }

    .admin-table-container {
        overflow-x: auto;
    }

    .admin-table {
        min-width: 600px;
    }
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background-color: var(--green);
    color: white;
}

.badge-secondary {
    background-color: #6c757d;
    color: white;
}
