/* Custom CSS for Cobourg Glasgow Rangers Supporters Club */

:root {
    --rangers-blue: #032F64;
    --rangers-red: #8A0204;
    --rangers-light-blue: #C8D7EB;
    --rangers-hover-blue: #376BAD;
    --dark-gray: #252525;
}

/* Global Styles */
body {
    background-color: var(--rangers-blue);
    font-family: Arial, sans-serif;
    color: #000000;
}

/* Top Bar */
.top-bar {
    background-color: var(--rangers-red);
    border-bottom: 2px solid #fff;
}

/* Navigation */
.navbar {
    background-color: var(--dark-gray);
    padding: 0.5rem 1rem;
}

.navbar-nav {
    gap: 0.25rem;
}

.nav-link {
    color: #ffffff !important;
    padding: 0.5rem 1rem !important;
    border: 3px solid var(--rangers-red);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    background-color: var(--rangers-red);
    transition: all 0.3s ease;
    margin-right: 3px;
}

.nav-link:hover {
    background-color: var(--dark-gray);
    color: #ffffff !important;
    text-decoration: underline;
}

.nav-link.active {
    background-color: var(--rangers-red);
    border-bottom: 3px solid var(--rangers-light-blue);
    font-weight: normal;
}

/* Hero Section */
.hero-section {
    background-color: #ffffff;
}

.club-logo-section {
    background-color: #f8f9fa;
    padding: 20px;
    min-height: 300px;
}

.club-logo-section img {
    max-width: 100%;
    height: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.carousel-item img {
    height: 300px;
    object-fit: cover;
}

@media (min-width: 992px) {
    .carousel-item img {
        height: 400px;
    }
}

/* Club Title Banner */
.club-title-banner {
    background-color: var(--rangers-red);
    color: #ffffff;
    padding: 1.5rem 0;
    border-bottom: 3px solid #ffffff;
}

.club-title-banner h1 {
    font-size: 1.75rem;
    font-weight: bold;
    margin: 0;
}

.club-title-banner p {
    font-size: 1rem;
    margin: 0;
}

@media (min-width: 768px) {
    .club-title-banner h1 {
        font-size: 2.5rem;
    }
    
    .club-title-banner p {
        font-size: 1.1rem;
    }
}

/* Main Content */
.main-content {
    background-color: var(--rangers-blue);
}

/* Cards */
.card {
    border: 2px solid var(--rangers-red);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    background-color: #ffffff;
}

.card-header {
    background-color: var(--rangers-red);
    color: #ffffff;
    font-weight: bold;
    border-bottom: 2px solid var(--rangers-red);
    padding: 1rem;
}

.card-header h2 {
    color: #ffffff;
}

.welcome-card .card-body,
.news-card .card-body {
    background-color: #f8f9fa;
}

.games-card .card-header {
    background-color: var(--rangers-red);
}

.info-card .card-body {
    background-color: #f8f9fa;
}

/* Ensure iframes are responsive */
iframe {
    max-width: 100%;
}

/* Rangers Media Section */
.rangers-media-section {
    background-color: var(--rangers-blue);
}

.rangers-media-section img {
    transition: transform 0.3s ease;
}

.rangers-media-section img:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background-color: var(--rangers-blue);
    color: #E6E6FA;
    border-top: 2px solid var(--rangers-red);
}

.footer a {
    color: var(--rangers-light-blue);
    text-decoration: underline;
}

.footer a:hover {
    color: var(--rangers-hover-blue);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--rangers-red);
        padding: 1rem;
        margin-top: 0.5rem;
        border-radius: 8px;
    }
    
    .nav-link {
        margin-bottom: 0.25rem;
    }
}

/* Scrollbar styling for news feed */
.news-card .card-body::-webkit-scrollbar {
    width: 8px;
}

.news-card .card-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.news-card .card-body::-webkit-scrollbar-thumb {
    background: var(--rangers-red);
    border-radius: 4px;
}

.news-card .card-body::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gray);
}

/* Map card styling */
.map-card {
    overflow: hidden;
}

.map-card iframe {
    display: block;
}

/* Improve link visibility */
a {
    color: var(--rangers-light-blue);
}

a:hover {
    color: var(--rangers-hover-blue);
}

/* Container fluid padding adjustments */
.container-fluid {
    padding-left: 15px;
    padding-right: 15px;
}

@media (min-width: 1400px) {
    .container-fluid {
        padding-left: 30px;
        padding-right: 30px;
    }
}

/* Accessibility improvements */
.nav-link:focus,
.carousel-control-prev:focus,
.carousel-control-next:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .navbar,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators {
        display: none;
    }
}

#feed-container {
    margin-top: 20px;
}

.feed-item {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
}

.feed-item:last-child {
    border-bottom: none;
}

.feed-item h2 {
    margin: 0 10px 10px 10px;
    font-size: 1.4em;
}

.feed-item h2 a {
    color: #0066cc;
    text-decoration: none;
}

.feed-item h2 a:hover {
    text-decoration: underline;
}

.feed-item .date {
    color: #666;
    font-size: 0.9em;
    margin: 0 10px 10px 10px;
}

.feed-item .description {
    color: #333;
    line-height: 1.6;
    margin: 0 10px 10px 10px;
}

.loading {
    text-align: center;
    color: #666;
    padding: 20px;
}

.error {
    background-color: #fee;
    border: 1px solid #fcc;
    color: #c00;
    padding: 15px;
    border-radius: 4px;
}