/* GHCIPBBA Custom Styles */
/* ====================== */

/* CSS Variables */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #3498db;
    --text-color: #2c3e50;
    --light-bg: #ecf0f1;
    --white: #ffffff;
    --border-color: #bdc3c7;
    --success-color: #27ae60;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --info-color: #17a2b8;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
}

/* Base Styles */
body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

/* Links */
a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #2980b9;
    text-decoration: none;
}

/* Buttons */
.btn {
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 6px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-transform: none;
    font-size: 0.95rem;
}

.btn-primary {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #2c3e50;
    border-color: #2c3e50;
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--accent-color);
    border-color: var(--accent-color);
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
    color: white;
}

.btn-outline-secondary {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
    background-color: transparent;
}

.btn-outline-secondary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-outline-dark {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background-color: transparent;
}

.btn-outline-dark:hover {
    color: white;
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card-header {
    background-color: var(--light-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1.25rem;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
}

.card-footer {
    background-color: var(--light-bg);
    border-top: 1px solid var(--border-color);
    padding: 1rem 1.5rem;
}

/* Navigation Styles */
.navbar-brand {
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 60px;
    width: 60px;
    object-fit: contain;
    border-radius: 50%;
    margin-right: 10px;
}

.navbar-brand-text {
    font-weight: 700;
    font-size: 1.1rem;
    line-height: 1.2;
    color: white;
}

.navbar-brand-full {
    display: block;
}

.navbar-brand-short {
    display: none;
}

.navbar-nav .nav-link {
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    color: white !important;
}

.navbar-nav .nav-link:hover {
    color: var(--accent-color) !important;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.dropdown-menu {
    border: none;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 6px;
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* Top Bar */
.top-bar {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 0;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1030;
}

.top-bar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    width: 100%;
}

.top-bar a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: white;
    text-decoration: none;
}

.top-bar .fas {
    margin-right: 8px;
    font-size: 0.8rem;
}

/* Navbar Scroll Effect */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background-color: rgba(52, 73, 94, 0.95) !important;
    backdrop-filter: blur(10px);
}

/* Hero Section */
.hero-carousel {
    position: relative;
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
}

.carousel-item {
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
    position: relative;
}

.carousel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: brightness(0.9);
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.7) 0%, rgba(52, 73, 94, 0.6) 100%);
}

.carousel-overlay-light {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(240, 240, 240, 0.7) 100%);
}

.carousel-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Carousel Controls */
.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators li {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
}

.carousel-indicators .active {
    background-color: var(--accent-color);
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
    color: white;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    color: white;
    text-decoration: none;
}

.carousel-control-prev i,
.carousel-control-next i {
    font-size: 24px;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    pointer-events: none;
}

.carousel-control-prev:hover i,
.carousel-control-next:hover i {
    background-color: rgba(0, 0, 0, 0.6);
}

/* Quick Access Section */
.quick-access-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 1px solid #dee2e6;
    border-bottom: 1px solid #dee2e6;
    padding: 40px 0;
}

.quick-access-card {
    padding: 20px 15px;
    border-radius: 10px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 10px;
    text-align: center;
}

.quick-access-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.quick-access-card a {
    color: inherit;
    text-decoration: none;
}

.quick-access-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 10px;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    transition: all 0.3s ease;
}

.quick-access-card:hover .quick-access-icon {
    background: linear-gradient(135deg, #2980b9, #3498db);
    transform: scale(1.1);
}

.quick-access-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.quick-access-desc {
    font-size: 0.75rem;
    color: #7f8c8d;
    margin: 0;
    line-height: 1.2;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: var(--primary-color);
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), #2980b9);
    border-radius: 2px;
}

/* News and Announcements */
.news-card {
    border-left: 4px solid var(--accent-color);
    transition: all 0.3s ease;
}

.news-card:hover {
    border-left-color: #2980b9;
}

.badge-custom {
    background-color: var(--accent-color);
    color: white;
    font-weight: 500;
    padding: 0.5em 0.75em;
    border-radius: 4px;
}

.badge-primary { background-color: var(--accent-color); }
.badge-secondary { background-color: var(--secondary-color); }
.badge-success { background-color: var(--success-color); }
.badge-warning { background-color: var(--warning-color); }
.badge-danger { background-color: var(--danger-color); }
.badge-info { background-color: var(--info-color); }

/* Timeline Styles */
.timeline-item {
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 8px;
    height: 8px;
    background-color: var(--accent-color);
    border-radius: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 16px;
    width: 2px;
    height: calc(100% - 8px);
    background-color: var(--border-color);
}

.timeline-item:last-child::after {
    display: none;
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 12px 15px;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
    outline: none;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Tables */
.table {
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 600;
}

.table tbody td {
    padding: 15px;
    border-top: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background-color: var(--light-bg);
}

/* Contact Info */
.contact-info {
    background-color: var(--light-bg);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 30px;
}

.contact-info h5 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.contact-info i {
    width: 20px;
    margin-right: 10px;
    color: var(--accent-color);
}

/* Links & Manuals Section */
.links-manuals-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 3px solid #3498db;
    padding: 40px 0;
}

.links-group {
    margin-bottom: 30px;
}

.links-subtitle {
    color: #34495e;
    font-weight: 600;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.links-list {
    padding-left: 0;
    list-style: none;
}

.links-list li {
    margin-bottom: 8px;
}

.link-item {
    color: #2c3e50;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 8px 10px;
    display: block;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    border-radius: 0 4px 4px 0;
}

.link-item:hover {
    color: #3498db;
    text-decoration: none;
    border-left-color: #3498db;
    background: rgba(52, 152, 219, 0.05);
    padding-left: 15px;
}

.link-item i {
    width: 20px;
    text-align: center;
    color: #7f8c8d;
    margin-right: 8px;
}

.link-item:hover i {
    color: #3498db;
}

/* Court Info Card */
.court-info-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-left: 4px solid #e74c3c;
    transition: transform 0.3s ease;
    padding: 20px;
}

.court-info-card:hover {
    transform: translateY(-2px);
}

/* App Buttons */
.app-buttons img {
    height: 40px;
    transition: transform 0.3s ease;
    margin: 5px;
}

.app-buttons img:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 50px 0 30px;
    margin-top: 50px;
}

.footer h5 {
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
}

.footer a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: white;
}

.footer .social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: all 0.3s ease;
}

.footer .social-links a:hover {
    background-color: var(--accent-color);
    transform: translateY(-2px);
}

/* Utility Classes */
.min-vh-60 {
    min-height: 50vh;
}

.text-white {
    color: white !important;
}

.text-dark {
    color: #2c3e50 !important;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.8) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-secondary {
    background-color: var(--secondary-color) !important;
}

.bg-accent {
    background-color: var(--accent-color) !important;
}

.bg-light {
    background-color: var(--light-bg) !important;
}

.shadow-sm {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1) !important;
}

.shadow {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1) !important;
}

.shadow-lg {
    box-shadow: 0 8px 20px rgba(0,0,0,0.15) !important;
}

.rounded-lg {
    border-radius: 10px !important;
}

.border-primary {
    border-color: var(--primary-color) !important;
}

.border-accent {
    border-color: var(--accent-color) !important;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

.zoom-in {
    animation: zoomIn 0.3s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--border-color);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.4rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .navbar-brand-text {
        font-size: 1rem;
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-brand-text {
        font-size: 0.9rem;
    }
    
    .quick-access-card {
        margin: 5px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }

    .hero-carousel {
        height: 50vh;
        min-height: 350px;
        max-height: 450px;
    }

    .carousel-item {
        height: 50vh;
        min-height: 350px;
        max-height: 450px;
    }

    .min-vh-60 {
        min-height: 40vh;
    }

    .navbar-brand-full {
        display: none;
    }
    
    .navbar-brand-short {
        display: block;
        font-size: 1rem;
        font-weight: 700;
    }
    
    .navbar-logo {
        height: 45px;
        width: 45px;
    }

    .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 10px 0;
        font-size: 0.9rem;
        padding: 10px 20px;
    }

    .carousel-control-prev,
    .carousel-control-next {
        width: 8%;
    }

    .container {
        padding: 0 20px;
    }

    .quick-access-card {
        height: 100px;
        padding: 15px 10px;
    }
    
    .quick-access-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .quick-access-title {
        font-size: 0.8rem;
    }
    
    .quick-access-desc {
        font-size: 0.7rem;
    }

    .links-manuals-section .col-md-6 {
        margin-bottom: 30px;
    }
    
    .court-info-card {
        margin-top: 30px;
    }
    
    .app-buttons img {
        height: 35px;
        margin: 5px;
    }

    .card-body {
        padding: 1rem;
    }
    
    .contact-info {
        padding: 20px;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
        margin-bottom: 1.5rem;
    }

    .navbar-brand-short {
        font-size: 0.9rem;
    }
    
    .navbar-logo {
        height: 40px;
        width: 40px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .card-body {
        padding: 0.75rem;
    }
    
    .quick-access-card {
        height: 90px;
        padding: 10px 5px;
    }
    
    .quick-access-icon {
        width: 35px;
        height: 35px;
        font-size: 14px;
    }
    
    .quick-access-title {
        font-size: 0.75rem;
    }
    
    .quick-access-desc {
        font-size: 0.65rem;
    }

    .container {
        padding: 0 15px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .top-bar,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        width: 100% !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --secondary-color: #333333;
        --accent-color: #0066cc;
        --text-color: #000000;
        --border-color: #666666;
    }
    
    .card {
        border: 2px solid var(--border-color) !important;
    }
    
    .btn {
        border: 2px solid currentColor !important;
    }
}

/* Focus Styles for Accessibility */
*:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
}

button:focus,
.btn:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

.skip-link:focus {
    top: 6px;
}