/* Bacchus XI Cricket Club - Traditional Styling */

:root {
    /* Oxford/Navy Blue Color Scheme */
    --primary-navy: #002147;      /* Oxford Blue - primary color */
    --primary-blue: #002147;       /* Oxford Blue (same as primary-navy) */
    --dark-blue: #001529;          /* Darker navy */
    --light-navy: #003366;         /* Lighter navy for accents */
    --medium-blue: #004080;        /* Medium navy (darkened from royal blue) */
    --light-blue: #4A90E2;         /* Lighter accent blue */
    --champagne: #F7E7CE;          /* Champagne/cream accent color */

    /* Original Color Scheme - Softened */
    --cream: #E8DEC8;              /* Even deeper, richer cream */
    --off-white: #EBE3D5;          /* Even deeper, warmer off-white */
    --burgundy: #8b2635;
    --dark-burgundy: #6b1f2a;
    --gold: #d4af37;
    --dark-brown: #3e2723;
    --text-dark: #3a3a3a;          /* Slightly lighter for softer contrast */
    --border-color: #D4C5A9;       /* Warmer border color */
}

/* Global Styles - Traditional Typography */
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    color: var(--text-dark);
    background-color: var(--off-white);
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,33,71,.015) 2px, rgba(0,33,71,.015) 4px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Navigation - Traditional Club Style */
.navbar {
    background-color: var(--primary-blue) !important;
    border-bottom: 3px solid var(--burgundy);
    box-shadow: 0 3px 12px rgba(0, 33, 71, 0.15);  /* Softer shadow */
    padding: 1rem 0;
}

.navbar-brand {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--cream) !important;
}

.navbar-nav .nav-link {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 500;
    color: var(--cream) !important;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    padding: 0.5rem 1.2rem !important;
    border-right: 1px solid rgba(248, 244, 232, 0.2);
}

.navbar-nav .nav-link:hover {
    color: var(--gold) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.navbar-nav .nav-item:last-child .nav-link {
    border-right: none;
}

/* Hero Section - Classic Banner Style */
.hero-section {
    background: linear-gradient(to bottom, var(--dark-blue) 0%, var(--primary-blue) 100%);
    border-top: 4px solid var(--burgundy);
    border-bottom: 4px solid var(--burgundy);
    padding: 3.5rem 0;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.3);
}

.hero-section h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.4);
    font-weight: 700;
    letter-spacing: 2px;
}

.hero-section .lead {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    opacity: 0.95;
}

.hero-section .btn {
    border: 2px solid var(--cream);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.7rem 2rem;
}

/* Card Styles - Traditional Panels */
.card {
    border: 2px solid var(--border-color);
    box-shadow: 2px 2px 12px rgba(0, 33, 71, 0.08);  /* Softer shadow with navy tint */
    background-color: var(--cream);
    border-radius: 0;
    margin-bottom: 2rem;
}

.card-header {
    background: linear-gradient(to bottom, var(--primary-blue), var(--medium-blue));
    color: var(--cream);
    border-bottom: 3px solid var(--burgundy);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem 1.25rem;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.card-body {
    padding: 1.5rem;
    background: linear-gradient(to bottom, #FFFFFF 0%, var(--off-white) 100%);  /* Subtle gradient */
}

/* Match Results - Scoreboard Style */
.match-result {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--light-navy);  /* Lighter navy for softer contrast */
    background: linear-gradient(to right, #FDFCFA 0%, white 20%);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 1px 1px 6px rgba(0, 33, 71, 0.06);
    transition: all 0.2s ease;
}

.match-result:hover {
    background: linear-gradient(to right, var(--cream) 0%, #FBF9F5 20%);
    border-left-color: var(--burgundy);
    box-shadow: 2px 2px 8px rgba(0, 33, 71, 0.1);
}

.fixture {
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--medium-blue);
    background: linear-gradient(to right, #FDFCFA 0%, white 20%);
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 1px 1px 6px rgba(0, 33, 71, 0.06);
    transition: all 0.2s ease;
}

.fixture:hover {
    background: linear-gradient(to right, var(--cream) 0%, #FBF9F5 20%);
    border-left-color: var(--burgundy);
    box-shadow: 2px 2px 8px rgba(0, 33, 71, 0.1);
}

/* Badges - Traditional Style */
.badge {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 0.4rem 0.8rem;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.bg-primary {
    background-color: var(--primary-blue) !important;
}

.badge.bg-danger {
    background-color: var(--burgundy) !important;
}

.badge.bg-success {
    background-color: var(--medium-blue) !important;
}

.badge.bg-info {
    background-color: var(--gold) !important;
    color: var(--text-dark) !important;
}

.badge.bg-secondary {
    background-color: #6c4a3c !important;
}

/* Buttons - Traditional Style */
.btn {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-weight: 600;
    border-radius: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.5rem;
    border-width: 2px;
}

.btn-light {
    background-color: var(--cream);
    border-color: var(--border-color);
    color: var(--text-dark);
}

.btn-light:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: white;
}

.btn-outline-primary {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.btn-outline-primary:hover {
    background-color: var(--primary-blue);
    border-color: var(--primary-blue);
    color: var(--cream);
}

.btn-outline-info {
    border-color: var(--gold);
    color: var(--dark-brown);
}

.btn-outline-info:hover {
    background-color: var(--gold);
    border-color: var(--gold);
    color: white;
}

/* Page Headers */
.page-header {
    background: linear-gradient(135deg, #FBF9F4 0%, var(--cream) 50%, #F0EBE3 100%);
    border-top: 3px solid var(--burgundy);
    border-bottom: 2px solid var(--light-navy);  /* Lighter navy for softer contrast */
    padding: 2.5rem 0;
    box-shadow: 0 2px 8px rgba(0, 33, 71, 0.06);  /* Subtle shadow */
}

.page-header h1 {
    color: var(--primary-blue);
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header .lead {
    color: var(--dark-brown);
    font-style: italic;
}

/* Report Content - Traditional Formatting */
.report-content {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-dark);
}

.report-content h1,
.report-content h2,
.report-content h3 {
    color: var(--primary-blue);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border-color);
}

.report-content h1 {
    font-size: 2rem;
    border-bottom-width: 3px;
    border-bottom-color: var(--burgundy);
}

.report-content h2 {
    font-size: 1.6rem;
}

.report-content h3 {
    font-size: 1.3rem;
    border-bottom-width: 1px;
}

.report-content p {
    margin-bottom: 1.3rem;
    text-align: justify;
}

.report-content ul,
.report-content ol {
    margin-left: 2rem;
    margin-bottom: 1.3rem;
}

.report-content blockquote {
    border-left: 4px solid var(--gold);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--cream);
    font-style: italic;
    color: var(--dark-brown);
}

.report-content strong {
    font-weight: 700;
    color: var(--primary-blue);
}

/* Quick Links Section */
.quick-links i {
    color: var(--primary-blue);
}

.quick-links h5 {
    color: var(--dark-blue);
    font-weight: 700;
}

/* Footer - Traditional Club Footer */
footer {
    background: linear-gradient(to bottom, var(--dark-blue), #1a1a1a);
    border-top: 4px solid var(--burgundy);
    color: var(--cream);
    margin-top: 3rem;
    padding: 2rem 0;
}

footer h5 {
    color: var(--cream);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

footer a {
    color: var(--cream);
    text-decoration: none;
}

footer a:hover {
    color: var(--burgundy);
}

/* Alert/Info Boxes - Scoreboard Style */
.alert-info {
    background-color: var(--cream);
    border: 2px solid var(--burgundy);
    border-radius: 0;
    color: var(--text-dark);
}

/* Tables - Traditional Score Tables */
table {
    border: 2px solid var(--border-color);
}

table th {
    background-color: var(--primary-blue);
    color: var(--cream);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem;
    border: 1px solid var(--dark-blue);
}

table td {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background-color: white;
}

table tr:nth-child(even) td {
    background-color: var(--off-white);
}

/* Breadcrumbs */
.breadcrumb {
    background-color: transparent;
    font-family: 'Georgia', 'Times New Roman', serif;
}

.breadcrumb-item a {
    color: var(--primary-blue);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--burgundy);
    text-decoration: underline;
}

/* Shadow and Border Utilities */
.shadow-sm {
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.15) !important;
}

.rounded {
    border-radius: 0 !important;
}

/* Container Styling */
.container {
    background-color: transparent;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .card {
        margin-bottom: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* Print Styles */
@media print {
    body {
        background: white;
    }

    .navbar, footer, .btn {
        display: none !important;
    }

    .card {
        border: 1px solid #000;
        box-shadow: none;
    }

    .hero-section {
        background: white !important;
        color: black !important;
        border: 2px solid #000;
    }
}

/* Vintage Paper Texture Effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" /></filter><rect width="100" height="100" filter="url(%23noise)" opacity="0.03"/></svg>');
    pointer-events: none;
    z-index: -1;
}
