@charset "UTF-8";

:root {
    --card-radius: 0.5rem;
    --card-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Typography */
html {
    font-size: 16px;
}

body {
    font-family: 'Cabin', sans-serif;
    line-height: 1.6;
    color: #212529;
    font-size: 1rem;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

a {
    text-decoration: none;
    color: inherit;
}

a:hover {
    text-decoration: underline;
    color: #0d6efd;
}

.no-download {
    pointer-events: none;
    user-drag: none;
    user-select: none;
}

/* Card Utility */
.bc-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #e5e5e5;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 16px rgba(0, 0, 0, 0.06);
}

.bc-card .card-header {
    font-weight: 600;
    font-size: 1rem;
    padding: 0.65rem 1rem;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: var(--card-radius);
    border-top-right-radius: var(--card-radius);
}

.bc-card .list-group-item {
    padding: 0.6rem 1rem;
    font-size: 1rem;
    border: none;
    border-bottom: 1px solid #eee;
}

.bc-card .list-group-item:last-child {
    border-bottom: none;
}

.bc-card img {
    border-radius: 0.35rem;
}

/* Image Styling */
.card-img-top,
.banner-img,
.cover-img {
    object-fit: cover;
    width: 100%;
    border-radius: var(--card-radius);
}

.card-img-top {
    height: 200px;
}

.logo-img {
    max-height: 80px;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: var(--card-radius);
}

.rapha-logo {
    border-radius: var(--card-radius);
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Sidebar */
.sidebar .list-group-item a {
    white-space: normal;
    word-break: break-word;
}

.sidebar img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Timeline */
.timeline {
    list-style: none;
    padding-left: 0;
    position: relative;
    margin-left: 1rem;
    border-left: 3px solid #0d6efd;
}

.timeline-item {
    position: relative;
    padding-left: 1rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -9px;
    top: 5px;
    width: 12px;
    height: 12px;
    background-color: #0d6efd;
    border-radius: 50%;
}

.timeline-date {
    font-size: 0.9rem;
    color: #6c757d;
}

/* Badges */
.badge {
    font-size: 0.75rem;
    vertical-align: middle;
}

.badge-custom {
    background-color: #0d6efd;
    color: white;
    padding: 0.3em 0.6em;
    border-radius: 0.4rem;
    font-size: 0.75rem;
    margin-right: 0.5em;
}

/* Rankings Card Styles */
.rankings-card {
    border-radius: var(--card-radius);
    overflow: hidden;
    background: #fff;
    border: 1px solid #e5e5e5;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rankings-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.rankings-card .card-title {
    font-weight: 600;
    font-size: 1rem;
}

.rankings-card .badge {
    font-size: 0.7rem;
    padding: 0.3em 0.5em;
    border-radius: 0.35rem;
}

/* Live Ticker Links */
.live-ticker-container a {
    word-break: break-word;
    overflow-wrap: break-word;
    display: inline-block;
    max-width: 100%;
}

/* Mobile Nav */
@media (max-width: 991.98px) {
    #mobile-search-btn {
        margin-left: auto;
    }
}

/* Navbar Container */
.navbar .container {
    max-width: 1140px;
    margin: 0 auto;
}

/* jQuery UI Autocomplete */
#searchBox {
    padding: 10px 14px;
    font-size: 17px;
    width: 100%;
    box-sizing: border-box;
}

.ui-autocomplete {
    max-height: 300px;
    overflow-y: auto;
    font-size: 16px;
    z-index: 9999 !important;
    background-color: #fff;
    border: 1px solid #ccc;
}

.ui-menu-item-wrapper {
    padding: 8px 12px;
    cursor: pointer;
}

.ui-menu-item-wrapper:hover {
    background-color: #f8f9fa;
}

/* Fade In Animation */
.fade-in {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Table corner rounding */
table thead tr:first-child th:first-child {
    border-top-left-radius: var(--card-radius);
}

table thead tr:first-child th:last-child {
    border-top-right-radius: var(--card-radius);
}

/* Optional: Add this to your app.css or inside a <style> block */

.display-5 {
    font-weight: 700;
    letter-spacing: -0.5px;
}

.badge.bg-primary,
.badge.bg-danger {
    font-size: 0.85rem;
    padding: 0.5em 1em;
    border-radius: 999px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.btn-outline-primary,
.btn-outline-secondary {
    transition: all 0.2s ease-in-out;
}

.btn-outline-primary:hover,
.btn-outline-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.bg-white.rounded-4 {
    border: 1px solid #eee;
    background-color: #fff;
}

.text-primary {
    color: #0056b3 !important;
}

.text-muted {
    color: #6c757d !important;
}

/* If using Bootstrap Icons */
.bi {
    vertical-align: middle;
    margin-right: 0.25rem;
}
