/* ==========================================================================
   SWISS MINIMALIST BOOTSTRAP OVERRIDES
   ========================================================================== */

/* 1. Global Typography & Links */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: #000000;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

a:hover {
    color: #eb0000;
    /* Swiss accent red */
}

/* 2. Navigation Bar (.navbar) */
.navbar {
    background-color: #ffffff !important;
    border-bottom: 2px solid #000000;
    box-shadow: none !important;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.navbar .navbar-brand {
    color: #000000 !important;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.navbar .nav-link {
    color: #555555 !important;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #eb0000 !important;
}

/* 3. Buttons (.btn) */
.btn {
    border-radius: 0;
    /* Sharp corners */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 24px;
    box-shadow: none !important;
    border-width: 2px;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: #eb0000;
    border-color: #eb0000;
    color: #ffffff;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #000000;
    border-color: #000000;
    color: #ffffff;
}

.btn-outline-primary {
    color: #000000;
    border-color: #000000;
}

.btn-outline-primary:hover {
    background-color: #000000;
    color: #ffffff;
}

/* 4. Forms (.form-control, .form-select) */
.form-control,
.form-select {
    border-radius: 0;
    border: 1px solid #cccccc;
    box-shadow: none !important;
    padding: 12px 16px;
    background-color: #ffffff;
}

/* Remove Bootstrap's default soft blue glow on focus */
.form-control:focus,
.form-select:focus {
    border-color: #000000;
    background-color: #f9f9f9;
    box-shadow: none !important;
}

/* 5. Cards & Widgets (.card) */
.card {
    border-radius: 0;
    border: 1px solid #e5e5e5;
    box-shadow: none !important;
}

.card-header {
    background-color: #ffffff;
    border-bottom: 2px solid #000000;
    /* Heavy anchor line */
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    border-radius: 0 !important;
    padding: 1rem 1.25rem;
}

.card-footer {
    background-color: #f9f9f9;
    border-top: 1px solid #e5e5e5;
    border-radius: 0 !important;
}

.list-group-item {
    border-radius: 0 !important;
    border-color: #e5e5e5;
}

/* 6. Alerts (.alert) */
.alert {
    border-radius: 0;
    border: none;
    border-left: 6px solid #000000;
    /* Structural accent line */
    background-color: #f9f9f9;
    color: #000000;
    box-shadow: none;
    font-weight: 500;
}

/* Specific Alert Contexts */
.alert-success {
    border-left-color: #16a34a;
    /* High contrast green */
    background-color: #f0fdf4;
}

.alert-danger {
    border-left-color: #eb0000;
    /* SBB Red */
    background-color: #fef2f2;
}

.alert-warning {
    border-left-color: #ca8a04;
    background-color: #fffbeb;
}

/* 7. Badges (.badge) */
.badge {
    border-radius: 0 !important;
    /* Force square */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 0.5em 0.7em;
}

.bg-primary {
    background-color: #eb0000 !important;
}

.bg-warning {
    background-color: #facc15 !important;
    color: #000000 !important;
}

/* 8. Tables (.table) */
.table {
    border-collapse: collapse;
}

.table th {
    border-bottom: 2px solid #000000 !important;
    /* Heavy header baseline */
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #555555;
}

.table td,
.table th {
    padding: 1rem;
    vertical-align: middle;
    border-bottom: 1px solid #e5e5e5;
}

/* 1. Images: Sharp and structural */
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    /* Removed rounded corners for a sharper, grid-aligned look */
    margin-bottom: 2rem;
    /* Increased whitespace to let elements breathe */
}

.article-content iframe {
    max-width: 100%;
}

/* 2. Score Box: High contrast, flat, accented */
.score-box {
    background-color: #f9f9f9;
    /* Stark, neutral light grey */
    color: #000000;
    border: 1px solid #e5e5e5;
    /* Subtle framing */
    border-left: 6px solid #eb0000;
    /* SBB/UBS style red accent line for hierarchy */
    border-radius: 0;
    /* Sharp edges */
    text-align: center;
    padding: 30px 20px;
    /* Generous internal whitespace */
    box-shadow: none;
    /* Removed the glowing yellow shadow entirely */
}

.score-box .score-number {
    font-size: 4rem;
    /* Slightly larger for structural impact */
    font-weight: 700;
    /* Bold, but clean */
    line-height: 1;
    letter-spacing: -0.03em;
    /* Tighter kerning, a hallmark of Swiss typography */
}

/* 3. Review Badge: Typographic and stark */
.review-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #000000;
    /* High contrast black */
    color: #ffffff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    /* Structural alignment */
    letter-spacing: 1px;
    /* Tracking for readability */
    padding: 6px 12px;
    border-radius: 0;
    /* Sharp corners */
}

/* 4. Article Cards: Grounded and solid */
.article-card {
    border: 1px solid #e5e5e5;
    border-radius: 0;
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: none;

}

.article-card:hover {
    /* Removed the bouncy Y-axis transform. Swiss UI feels grounded. */
    transform: none;
    border-color: #000000;
    box-shadow: none !important;
}
main{
    min-height: calc(100vh  - 80px); /* Adjust based on your header and footer height */
}