:root {
    --primary-blue: #0d6efd;
    --navy: #1a3a5c;
    --light-bg: #f8f9fa;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar {
    background: linear-gradient(135deg, var(--navy) 0%, #2c5282 100%);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

.main-content { flex: 1; }

.category-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #dee2e6;
}
.category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.site-card {
    border: 1px solid #dee2e6;
    transition: box-shadow 0.2s;
}
.site-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.1); }

.category-badge { font-size: 0.75rem; padding: 0.35em 0.65em; }

.footer {
    background: var(--navy);
    color: #adb5bd;
    padding: 2rem 0;
    margin-top: auto;
}
.footer a { color: #dee2e6; text-decoration: none; }
.footer a:hover { color: white; }

.search-box { max-width: 500px; }

.favicon-img { width: 24px; height: 24px; object-fit: contain; }

.category-icon-badge {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tag-pill {
    font-size: 0.7rem;
    background: #e9ecef;
    color: #495057;
}

.social-links a {
    transition: opacity 0.2s, transform 0.2s;
    display: inline-block;
}
.social-links a:hover { opacity: 0.8; transform: translateY(-2px); }

.cookie-banner-slim {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(26, 58, 92, 0.97);
    color: white;
    z-index: 9999;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    backdrop-filter: blur(6px);
}
.cookie-banner-slim a { color: #ffc107; text-decoration: underline; }
@media (max-width: 576px) {
    .cookie-banner-slim .container {
        flex-direction: column;
        gap: 0.5rem;
    }
}

.site-thumbnail {
    width: 100%;
    height: 160px;
    object-fit: cover;
    object-position: top;
    background: #e9ecef;
    border-radius: 0.375rem 0.375rem 0 0;
}

/* Hero — maritime background */
.hero-maritime {
    background: url("../images/hero-sailing.jpg") center/cover no-repeat;
    min-height: 420px;
    position: relative;
}
.hero-overlay {
    background: linear-gradient(135deg, rgba(26, 58, 92, 0.75) 0%, rgba(44, 82, 130, 0.65) 100%);
    min-height: 420px;
    display: flex;
    align-items: center;
}
.hero-maritime h1 {
    text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}
.hero-maritime .form-control:focus {
    box-shadow: none;
}

/* Category accent colours — visual grouping of categories into 4 themes */
.category-card { border-top: 3px solid #dee2e6; }
.category-card.category-accent-sky    { border-top-color: #0ea5e9; }
.category-card.category-accent-teal   { border-top-color: #14b8a6; }
.category-card.category-accent-amber  { border-top-color: #f59e0b; }
.category-card.category-accent-coral  { border-top-color: #f87171; }

.category-card.category-accent-sky    .bi { color: #0ea5e9 !important; }
.category-card.category-accent-teal   .bi { color: #14b8a6 !important; }
.category-card.category-accent-amber  .bi { color: #f59e0b !important; }
.category-card.category-accent-coral  .bi { color: #f87171 !important; }

/* Category sidebar — subtle active state, sticky on desktop */
.sidebar-card .list-group-item a { color: #0d6efd; }
.sidebar-card .list-group-item.sidebar-active {
    background: #e7f1ff;
    border-left: 3px solid #0d6efd;
}
.sidebar-card .list-group-item.sidebar-active a {
    color: #0a58ca;
    font-weight: 600;
}
.sidebar-card .list-group-item:hover { background: #f8f9fa; }

@media (min-width: 992px) {
    .sidebar-card { position: sticky; top: 1rem; }
}

/* Site detail — hero thumbnail */
.site-detail-thumbnail {
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    object-position: top;
    border-radius: 0.375rem 0.375rem 0 0;
    background: #e9ecef;
}
