/* ============================================================
   Dorval Old Pros Softball League — Styles
   ============================================================ */

/* ---------- CSS Variables / Theme ---------- */
:root {
    --primary:       #1a3a2a;    /* Deep forest green */
    --primary-light:  #2d5e3f;
    --primary-dark:   #0f2319;
    --accent:        #d4a843;    /* Gold / old-timers feel */
    --accent-light:  #e8c96a;
    --bg-light:      #f8f6f1;   /* Warm off-white */
    --bg-card:       #ffffff;
    --text-dark:     #2c2c2c;
    --text-muted:    #6c757d;
    --border:        #e0ddd5;
    --shadow-sm:     0 2px 8px rgba(0,0,0,0.08);
    --shadow-md:     0 4px 16px rgba(0,0,0,0.12);
    --shadow-lg:     0 8px 32px rgba(0,0,0,0.16);
    --radius:        8px;
    --radius-lg:     12px;
}

/* ---------- Base ---------- */
html {
    position: relative;
    min-height: 100%;
}
body {
    padding-top: 0;
    margin-bottom: 80px;
    background-color: var(--bg-light);
    font-family: 'Roboto', sans-serif;
    color: var(--text-dark);
}

/* ---------- Navbar ---------- */
.navbar {
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow-md);
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%) !important;
}
.navbar-brand {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
}
.navbar-brand img {
    height: 40px;
    margin-right: 10px;
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,0.8);
    font-weight: 400;
    padding: 0.6rem 0.85rem;
    transition: color 0.2s, background-color 0.2s;
    border-radius: 4px;
    font-size: 0.92rem;
}
.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-item.active .nav-link {
    color: var(--accent-light);
    background-color: rgba(255,255,255,0.08);
}
.navbar-text {
    color: var(--accent-light) !important;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ---------- Hero / Jumbotron ---------- */
.jumbotron {
    background-image: url('../images/jumbotron-bg.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    position: relative;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    margin-top: 1.5rem;
    overflow: hidden;
}
.jumbotron::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(15,35,25,0.85) 0%, rgba(26,58,42,0.75) 100%);
}
.jumbotron > * {
    z-index: 1;
    position: relative;
}
.jumbotron .hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.jumbotron .hero-logo {
    flex-shrink: 0;
}
.jumbotron .hero-logo img {
    width: 140px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,0.4));
}
.jumbotron .display-4 {
    font-weight: 700;
    font-size: 2.4rem;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.jumbotron .lead {
    font-size: 1.1rem;
    opacity: 0.92;
    line-height: 1.6;
}
.jumbotron .badge-accent {
    background-color: var(--accent);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.4em 0.9em;
    border-radius: 20px;
    display: inline-block;
    margin-top: 0.5rem;
}

/* ---------- Section Headings ---------- */
.container > h2,
.section-heading {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

/* ---------- Cards & List Groups ---------- */
.list-group-item {
    margin-bottom: 0;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--border);
    box-shadow: none;
    transition: background-color 0.15s;
    padding: 0.9rem 1.2rem;
}
.list-group-item:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.list-group-item:last-child  { border-radius: 0 0 var(--radius) var(--radius); border-bottom: none; }
.list-group {
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}
.list-group-item-action:hover {
    background-color: #f0efe8;
}
.list-group-item h5 {
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
}

/* ---------- Tables ---------- */
.table {
    background: var(--bg-card);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.table thead {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}
.table thead th {
    border: none;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.8rem 1rem;
}
.table td {
    vertical-align: middle;
    padding: 0.75rem 1rem;
    border-color: var(--border);
}
.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(26,58,42,0.03);
}
.table tbody tr:hover {
    background-color: rgba(212,168,67,0.08);
}

/* ---------- Buttons ---------- */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-color: var(--primary);
    font-weight: 500;
    border-radius: var(--radius);
    padding: 0.5rem 1.2rem;
    transition: all 0.2s;
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-color: var(--primary-dark);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}
.btn-secondary {
    background-color: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    font-weight: 500;
    border-radius: var(--radius);
}
.btn-secondary:hover {
    background-color: var(--primary);
    color: #fff;
}

/* ---------- Forms ---------- */
.form-control {
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: none;
    padding: 0.5rem 0.85rem;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(26,58,42,0.15);
}

/* ---------- Page Container ---------- */
.container {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}
.container > h1 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 1.2rem;
}

/* ---------- Gallery ---------- */
.img-thumbnail {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.2s, box-shadow 0.2s;
}
.img-thumbnail:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-md);
}

/* ---------- Executive Cards ---------- */
.exec-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
}
.exec-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}
.exec-card .exec-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    text-transform: uppercase;
}
.exec-card h5 {
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.exec-card .exec-title {
    color: var(--accent);
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.6rem;
}
.exec-card .exec-contact {
    font-size: 0.85rem;
    color: var(--text-muted);
}
.exec-card .exec-contact a {
    color: var(--primary);
}

/* ---------- Alert Boxes ---------- */
.alert {
    border-radius: var(--radius);
    border: none;
    box-shadow: var(--shadow-sm);
}

/* ---------- Footer ---------- */
.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: auto;
    padding: 1rem 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary)) !important;
    color: rgba(255,255,255,0.8);
    font-size: 0.9rem;
}
.footer a {
    color: var(--accent-light);
    text-decoration: none;
}
.footer a:hover {
    color: #fff;
}

/* ---------- Admin Dashboard ---------- */
.admin-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: var(--text-dark);
    display: block;
    height: 100%;
}
.admin-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    text-decoration: none;
    color: var(--text-dark);
}
.admin-card h5 {
    color: var(--primary);
    font-weight: 700;
}
.admin-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .jumbotron .hero-content {
        flex-direction: column;
        text-align: center;
    }
    .jumbotron .hero-logo img {
        width: 100px;
    }
    .jumbotron .display-4 {
        font-size: 1.6rem;
    }
    .navbar-brand img {
        height: 32px;
    }
    .exec-card {
        margin-bottom: 1rem;
    }
}
