/* Bento Theme Custom Styles (Light Mode) */

@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,300;12..96,400;12..96,500;12..96,600;12..96,700&display=swap');

:root {
    --bento-bg: #f9fafb; /* Light gray background */
    --bento-card-bg: rgba(255, 255, 255, 0.7); /* Glass effect base */
    --bento-text: #111827; /* Dark gray text */
    --bento-muted: #6b7280; /* Muted gray text */
    --bento-primary: #C8102E; /* Corporate red */
    --bento-border: rgba(0, 0, 0, 0.08); /* Subtle border */
}

body.bento-mode {
    font-family: 'Bricolage Grotesque', sans-serif !important;
    background-color: var(--bento-bg) !important;
    color: var(--bento-text) !important;
    /* Optional: A subtle background pattern or gradient for the glass to blur over */
    background-image: radial-gradient(circle at 15% 50%, rgba(200, 16, 46, 0.03), transparent 25%),
                      radial-gradient(circle at 85% 30%, rgba(0, 0, 0, 0.02), transparent 25%);
}

/* Override Bootstrap navbar in bento mode */
body.bento-mode .navbar {
    background-color: transparent !important;
    border-bottom: none !important;
    padding-top: 1rem;
}

.bento-nav-container {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    border-radius: 1rem;
    padding: 0.5rem 1rem;
}

/* Bento Card Style with Glassmorphism */
.bento-card {
    background-color: var(--bento-card-bg) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    border-radius: 1.5rem !important;
    color: var(--bento-text) !important;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    overflow: hidden;
    position: relative;
}

.bento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(255, 255, 255, 1) !important;
}

/* Custom Grid for Bento layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    grid-auto-flow: dense;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Span utilities handled by native Tailwind CSS responsive prefixes (md:col-span-2) */

/* Fix Tailwind CSS conflict where it overrides Bootstrap's visibility */
.navbar-collapse.collapse {
    visibility: visible !important;
}

/* Text & Icon overrides for cards */
.bento-card h1, .bento-card h2, .bento-card h3, .bento-card h4, .bento-card h5, .bento-card h6 {
    color: var(--bento-text) !important;
    font-family: 'Bricolage Grotesque', sans-serif !important;
    letter-spacing: -0.02em; /* Font effect */
}

.bento-card .text-muted {
    color: var(--bento-muted) !important;
}

.bento-card a {
    color: var(--bento-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.bento-card a:hover {
    color: #a00d25;
}

.bento-icon-circle {
    background-color: rgba(200, 16, 46, 0.05);
    color: var(--bento-primary);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    border: 1px solid rgba(200, 16, 46, 0.1);
}

/* Link specific hover */
.bento-link {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.bento-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
    padding-left: 0.5rem;
}

/* Scrolling Ticker Animation */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.ticker-content {
    display: inline-flex;
    align-items: center;
    padding-left: 100%;
    animation: ticker 15s linear infinite;
}

.ticker-content:hover {
    animation-play-state: paused;
}

@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

/* Force strip any paragraph tags coming from DB content inside emergency alerts */
.emergency-content-wrapper p {
    display: inline;
    margin: 0;
}
