/*
 * MVCC - Mike's Vacation Country Club
 * Main Stylesheet
 */

:root {
    --primary: #1b5e20;
    --primary-dark: #0d3b10;
    --primary-light: #4caf50;
    --accent: #c62828;
    --accent-light: #e53935;
    --gold: #d4a017;
    --gold-light: #f0c75e;
    --dark: #1a1a1a;
    --dark-gray: #2d2d2d;
    --medium-gray: #555;
    --light-gray: #888;
    --bg-light: #f5f5f0;
    --bg-cream: #faf8f5;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --border: #ddd;
    --shadow: rgba(0, 0, 0, 0.1);
    --shadow-lg: rgba(0, 0, 0, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-cream);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ===== Header ===== */
.site-header {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 0;
    box-shadow: 0 4px 12px var(--shadow-lg);
    position: relative;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-icon {
    font-size: 2.5rem;
}

.logo-text h1 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.logo-text span {
    font-size: 0.85rem;
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.user-name {
    font-weight: 500;
    color: var(--gold-light);
}

.logout-btn {
    background: var(--accent);
    color: var(--white);
    padding: 0.5rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(198, 40, 40, 0.3);
}

/* ===== Navigation ===== */
.site-nav {
    background: var(--dark);
    border-top: 3px solid var(--gold);
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-content ul {
    list-style: none;
    display: flex;
    gap: 0;
}

.nav-content a {
    color: var(--white);
    text-decoration: none;
    padding: 1rem 1.5rem;
    display: block;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    margin-bottom: -3px;
}

.nav-content a:hover,
.nav-content a.active {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: var(--gold);
    color: var(--gold-light);
}

/* ===== Main Content ===== */
.site-main {
    flex: 1;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
}

/* ===== Login Page ===== */
.login-page {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 420px;
}

.login-logo {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo .logo-icon {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.login-logo h1 {
    font-size: 1.75rem;
    color: var(--white);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.login-logo p {
    color: var(--gold-light);
    letter-spacing: 4px;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.login-card {
    background: var(--white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-card h2 {
    text-align: center;
    color: var(--dark);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--bg-cream);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(27, 94, 32, 0.1);
}

.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(27, 94, 32, 0.3);
}

.btn-secondary {
    background: var(--medium-gray);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--light-gray);
}

.btn-danger {
    background: var(--accent);
    color: var(--white);
}

.btn-danger:hover {
    background: var(--accent-light);
}

.btn-gold {
    background: linear-gradient(135deg, var(--gold) 0%, #b8860b 100%);
    color: var(--dark);
}

.btn-gold:hover {
    box-shadow: 0 8px 20px rgba(212, 160, 23, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

/* ===== Cards ===== */
.card {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--bg-cream);
}

.card-header h2,
.card-header h3 {
    color: var(--primary-dark);
    font-size: 1.3rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* ===== Dashboard Cards ===== */
.stat-card {
    background: linear-gradient(135deg, var(--white) 0%, var(--bg-light) 100%);
    border-radius: 12px;
    padding: 1.5rem;
    border-left: 4px solid var(--primary);
    box-shadow: 0 4px 16px var(--shadow);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
}

.stat-card.gold-border {
    border-left-color: var(--gold);
}

.stat-card.red-border {
    border-left-color: var(--accent);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.stat-card.gold-border .stat-number {
    color: var(--gold);
}

.stat-card.red-border .stat-number {
    color: var(--accent);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* ===== Tables ===== */
.table-responsive {
    overflow-x: auto;
    border-radius: 8px;
    border: 1px solid var(--border);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

thead {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
}

th,
td {
    padding: 1rem;
    text-align: left;
}

tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

tbody tr:hover {
    background: var(--bg-cream);
}

tbody tr:last-child {
    border-bottom: none;
}

th {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ===== Bylaws Page ===== */
.bylaws-content {
    max-width: 900px;
    margin: 0 auto;
}

.bylaws-title {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2rem;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    border-radius: 12px;
}

.bylaws-title h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.bylaws-title p {
    color: var(--gold-light);
    letter-spacing: 3px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.article {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px var(--shadow);
    border-left: 4px solid var(--gold);
}

.article h2 {
    color: var(--primary-dark);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--bg-cream);
}

.article h3 {
    color: var(--primary);
    font-size: 1.1rem;
    margin: 1rem 0 0.5rem;
}

.article p,
.article li {
    color: var(--text);
    margin-bottom: 0.75rem;
}

.article ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

/* ===== Profile Page ===== */
.profile-grid {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.profile-sidebar {
    background: linear-gradient(180deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    height: fit-content;
    box-shadow: 0 8px 24px var(--shadow-lg);
}

.profile-avatar {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.profile-sidebar h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.profile-sidebar .role {
    color: var(--gold-light);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.85rem;
}

.profile-details {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px var(--shadow);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: var(--medium-gray);
}

.detail-value {
    color: var(--text);
    font-weight: 500;
}

/* ===== Admin Panel ===== */
.admin-grid {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

.admin-sidebar {
    background: var(--dark);
    border-radius: 12px;
    padding: 1.5rem;
    height: fit-content;
    box-shadow: 0 8px 24px var(--shadow);
}

.admin-sidebar h3 {
    color: var(--gold-light);
    margin-bottom: 1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.admin-sidebar ul {
    list-style: none;
}

.admin-sidebar li {
    margin-bottom: 0.5rem;
}

.admin-sidebar a {
    color: var(--white);
    text-decoration: none;
    padding: 0.75rem 1rem;
    display: block;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--gold-light);
}

.admin-content {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 16px var(--shadow);
}

/* ===== Alerts ===== */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: #e8f5e9;
    color: var(--primary);
    border-left: 4px solid var(--primary);
}

.alert-error {
    background: #ffebee;
    color: var(--accent);
    border-left: 4px solid var(--accent);
}

.alert-info {
    background: #e3f2fd;
    color: #1565c0;
    border-left: 4px solid #1565c0;
}

/* ===== Footer ===== */
.site-footer {
    background: var(--dark);
    color: var(--light-gray);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.85rem;
    border-top: 3px solid var(--gold);
}

.site-footer .logo-text {
    color: var(--gold-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* ===== Utility ===== */
.text-center {
    text-align: center;
}

.mb-2 {
    margin-bottom: 1.5rem;
}

.mt-2 {
    margin-top: 1.5rem;
}

.page-title {
    font-size: 1.75rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.page-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-admin {
    background: var(--accent);
    color: var(--white);
}

.badge-board {
    background: var(--gold);
    color: var(--dark);
}

.badge-member {
    background: var(--primary-light);
    color: var(--white);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .nav-content ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-content a {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .site-main {
        padding: 1rem;
    }

    .profile-grid,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    th,
    td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }

    .article {
        padding: 1.5rem;
    }
}
