/* -------------------------
   General
------------------------- */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    color: #1f2933;
}


/* -------------------------
   Header
------------------------- */

.BB-header {
    width: 100%;
    height: 70px;

    background-color: #ffffff;

    border-bottom: 2px solid #e7f5f7;

    display: flex;
    align-items: center;
}

.header-container {
    width: 100%;
    max-width: 1320px;
    height: 100%;

    margin: 0 auto;
    padding: 0 30px;

    display: flex;
    align-items: center;
}


/* -------------------------
   Logo
------------------------- */

.logo {
    display: flex;
    align-items: center;
    gap: 12px;

    text-decoration: none;
    color: #171717;

    margin-right: auto;
}

.logo-icon {
    width: 65px;
    height: 65px;
    object-fit: contain;
}


.logo-text {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 33px;
    font-weight: 800;
    white-space: nowrap;
}

.logo-text span {
    color: #e00000;
}


/* -------------------------
   Navigation
------------------------- */

.main-nav {
    height: 100%;

    display: flex;
    align-items: center;

    gap: 55px;
}

.nav-link {
    height: 100%;

    display: flex;
    align-items: center;

    position: relative;

    color: #555c64;

    text-decoration: none;

    font-size: 20px;
    font-weight: 700;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.nav-link:hover {
    color: #df0000;
}


/* Active page text */

.nav-link.active {
    color: #df0000;
}


/* Red line under active page */

.nav-link.active::after {
    content: "";

    position: absolute;

    height: 4px;
    width: 100%;

    background-color: #e00000;

    bottom: 0;
    left: 0;

    border-radius: 4px 4px 0 0;
}

/* bell icon */
.bell-icon {
    width: 25px;
    height: 25px;
    color: #555;
}

/* -------------------------
   Right Side
------------------------- */

.header-actions {
    margin-left: auto;

    display: flex;
    align-items: center;

    gap: 16px;
}


/* Notification Button */

.notification-button {
    width: 50px;
    height: 50px;

    border: 1px solid #dde5e7;
    border-radius: 50%;

    color: #111;

    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.notification-button:hover {
    background-color: #f5f5f5;
    transform: translateY(-1px);
}




/* Small red notification dot */

.notification-dot {
    position: absolute;

    width: 8px;
    height: 8px;

    background-color: #e00000;

    border-radius: 50%;

    right: 13px;
    top: 12px;
}


/* -------------------------
   Profile
------------------------- */

.profile-button {
    width: 50px;
    height: 50px;

    border-radius: 50%;

    background-color: #df0000;
    color: white;

    text-decoration: none;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    font-weight: bold;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.profile-button:hover {
    background-color: #bd0000;
    transform: translateY(-1px);
}


/* -------------------------
   Page Content
------------------------- */

main {
    min-height: 600px;
}

/* =========================
   ALERTS PAGE
========================= */

.alerts-page {
    background-color: #f8fbfc;
    min-height: 100vh;
    padding: 70px 40px;
}

.alerts-hero {
    max-width: 1200px;
    margin: 0 auto 35px auto;
}

.eyebrow {
    color: #d10000;
    font-size: 14px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.alerts-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.alerts-heading-row h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    color: #111;
    margin-bottom: 8px;
}

.alerts-subtitle {
    color: #5f6b72;
    font-size: 18px;
}

.active-alerts {
    background-color: #e6f7ec;
    color: #24834a;
    padding: 10px 18px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: bold;
}


/* Search + filters */

.alerts-toolbar {
    max-width: 1200px;
    margin: 0 auto 30px auto;

    background: white;

    border: 1px solid #e2e8eb;
    border-radius: 14px;

    padding: 12px;

    display: flex;
    align-items: center;
    gap: 15px;
}

.alerts-search {
    flex: 1;

    border: none;
    outline: none;

    font-size: 16px;

    padding: 12px 16px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
}

.filter-btn {
    border: 1px solid #e2e8eb;
    background: white;
    color: #5f6b72;

    padding: 10px 16px;

    border-radius: 8px;

    font-weight: 600;

    cursor: pointer;
}

.filter-btn.active {
    background: #d10000;
    color: white;
    border-color: #d10000;
}


/* =========================
   ALERT CARDS
========================= */

.alerts-layout {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 25px;
}

.alerts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.alert-card {
    background: white;

    border: 1px solid #e2e8eb;
    border-radius: 16px;

    display: flex;
    overflow: hidden;

    min-height: 220px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}


/* Left side image section */

.alert-image {
    width: 280px;
    min-width: 280px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-status-pill {
    position: absolute;

    top: 16px;
    left: 16px;

    background-color: white;

    padding: 8px 12px;

    border-radius: 999px;

    display: flex;
    align-items: center;
    gap: 7px;

    font-size: 13px;
    font-weight: 700;

    color: #222;
}

.status-dot {
    width: 9px;
    height: 9px;

    background-color: #2fb66d;

    border-radius: 50%;
}

.alert-food-circle {
    width: 150px;
    height: 150px;

    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-food-icon {
    font-size: 72px;
}

/* Right side content */

.alert-content {
    flex: 1;
    padding: 25px;
}

.alert-category {
    color: #d10000;

    font-size: 12px;
    font-weight: bold;

    letter-spacing: 1.5px;

    margin-bottom: 10px;
}

.alert-content h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 26px;
    color: #111;

    margin-bottom: 5px;
}

.alert-host {
    color: #7a858b;

    font-size: 14px;

    margin-bottom: 18px;
}

.alert-description {
    color: #5f6b72;

    line-height: 1.5;

    margin-bottom: 20px;
}

.alert-food-circle {
    width: 150px;
    height: 150px;

    border: 1px dashed rgba(0, 0, 0, 0.15);
    border-radius: 50%;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.alert-food-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.alert-food-icon {
    font-size: 72px;
}

.alert-image.hot-food {
    background-color: #fdf1c9;   /* yellow for meals */
}

.alert-image.snacks {
    background-color: #dff4f8;   /* light blue */
}

.alert-image.dessert {
    background-color: #f8dce7;   /* pink */
}

.alert-image.drinks {
    background-color: #ece4ff;   /* light purple */
}


/* Location / time / servings */

.alert-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 18px;

    color: #5f6b72;

    font-size: 14px;

    margin-bottom: 20px;
}


/* Bottom of card */

.alert-card-footer {
    border-top: 1px solid #edf0f2;

    padding-top: 15px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    color: #6d787e;

    font-size: 14px;
}

.alert-card-footer a {
    color: #d10000;

    text-decoration: none;
    font-weight: bold;
}

.alert-card-footer a:hover {
    text-decoration: underline;
}


/* =========================
   SIDEBAR
========================= */

.alerts-sidebar {
    display: flex;
    flex-direction: column;

    gap: 20px;
}

.sidebar-card {
    border-radius: 16px;

    padding: 24px;
}

.notification-card {
    background-color: #dff6fb;
}

.notification-card h3 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 22px;

    margin-bottom: 12px;
}

.notification-card p {
    color: #5f6b72;

    line-height: 1.5;

    margin-bottom: 15px;
}

.notification-card a {
    color: #d10000;

    text-decoration: none;
    font-weight: bold;
}

.stats-card {
    background-color: #172126;
    color: white;
}

.stats-card h3 {
    color: #f4c430;

    font-family: Georgia, "Times New Roman", serif;

    font-size: 42px;

    margin: 15px 0 5px 0;
}

.stats-card p {
    color: #c0c8cc;
}


/* =========================
   SETTINGS PAGE
========================= */

.settings-page {
    background-color: #f8fbfc;
    min-height: 100vh;
    padding: 70px 40px;
}

.settings-hero {
    max-width: 1200px;
    margin: 0 auto 35px auto;
}

.settings-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    color: #111;
    margin-bottom: 8px;
}

.settings-subtitle {
    color: #5f6b72;
    font-size: 18px;
}

.settings-layout {
    max-width: 1200px;
    margin: 0 auto;

    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 25px;
    align-items: start;
}


/* Side box */

.settings-sidebar {
    background: white;

    border: 1px solid #e2e8eb;
    border-radius: 16px;

    padding: 12px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.settings-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.settings-menu-link {
    display: flex;
    flex-direction: column;
    gap: 3px;

    padding: 12px 14px;

    border-radius: 10px;

    text-decoration: none;

    transition: background-color 0.2s ease;
}

.settings-menu-link:hover {
    background-color: #f5f9fa;
}

.settings-menu-title {
    color: #1f2933;

    font-size: 16px;
    font-weight: 700;
}

.settings-menu-desc {
    color: #7a858b;

    font-size: 13px;
}

.settings-menu-link.active {
    background-color: #dff6fb;
}

.settings-menu-link.active .settings-menu-title {
    color: #d10000;
}


/* Content panels */

.settings-panel {
    display: none;
}

.settings-panel.active {
    display: block;
}

.settings-panel h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    color: #111;

    margin-bottom: 6px;
}

.settings-panel-intro {
    color: #5f6b72;

    margin-bottom: 22px;
}

.settings-card {
    background: white;

    border: 1px solid #e2e8eb;
    border-radius: 16px;

    padding: 24px;
    margin-bottom: 20px;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.04);
}

.settings-card h3 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    color: #111;

    margin-bottom: 8px;
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    padding: 14px 0;

    border-top: 1px solid #edf0f2;
}

.settings-label {
    color: #1f2933;

    font-size: 15px;
    font-weight: 700;

    margin-bottom: 3px;
}

.settings-value {
    color: #5f6b72;

    font-size: 14px;
}

.settings-action {
    color: #d10000;

    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
}

.settings-action:hover {
    text-decoration: underline;
}

.settings-action.danger {
    color: #a30000;
}

/* No-account bar */

.account-bar {
    display: block;

    background-color: #dff6fb;
    color: #1f2933;

    padding: 10px 20px;

    text-align: center;
    text-decoration: none;

    font-size: 14px;

    transition: background-color 0.2s ease;
}

.account-bar:hover {
    background-color: #c9eef6;
}

.account-bar span {
    color: #d10000;
    font-weight: bold;
}

.account-bar[hidden] {
    display: none;
}

.toggle {
    position: relative;
    display: inline-block;

    width: 46px;
    height: 26px;

    flex-shrink: 0;
}

.toggle-input {
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    opacity: 0;
    cursor: pointer;

    z-index: 1;
}

.toggle-slider {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;

    background-color: #cfd8dc;
    border-radius: 999px;

    transition: background-color 0.2s ease;
}

.toggle-slider::before {
    content: "";

    position: absolute;

    width: 20px;
    height: 20px;

    top: 3px;
    left: 3px;

    background-color: #ffffff;
    border-radius: 50%;

    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);

    transition: transform 0.2s ease;
}

.toggle-input:checked + .toggle-slider {
    background-color: #24834a;
}

.toggle-input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

.toggle-input:focus-visible + .toggle-slider {
    outline: 2px solid #1f2933;
    outline-offset: 2px;
}

@media (max-width: 800px) {

    .settings-page {
        padding: 40px 20px;
    }

    .settings-layout {
        grid-template-columns: 1fr;
    }
}

/* -------------------------
   Footer
------------------------- */

.BB-footer {
    background-color: #f7f7f7;

    padding: 30px;

    text-align: center;

    border-top: 1px solid #ddd;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 25px;

    margin-bottom: 15px;
}

.footer-links a {
    color: #555;
    text-decoration: none;
}

.footer-links a:hover {
    color: #df0000;
}

.footer-copy {
    color: #777;
    font-size: 14px;
}

/* =========================================================
   BROADCAST PAGE
========================================================= */

.broadcast-page {
    background-color: #f8fbfc;
    min-height: 100vh;
    padding: 70px 40px;
}

.broadcast-hero,
.broadcast-form {
    max-width: 950px;
    margin-left: auto;
    margin-right: auto;
}

.broadcast-hero {
    margin-bottom: 35px;
}

.broadcast-hero h1 {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    color: #111;
    margin-bottom: 8px;
}

.broadcast-subtitle {
    color: #5f6b72;
    font-size: 18px;
}


/* =========================================================
   BROADCAST FORM CARDS
========================================================= */

.broadcast-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.broadcast-card {
    background-color: white;

    border: 1px solid #dbe3e6;
    border-radius: 16px;

    padding: 32px;

    display: flex;
    gap: 25px;
}

.section-number {
    width: 42px;
    height: 42px;

    min-width: 42px;

    background-color: #d10000;
    color: white;

    border-radius: 10px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: bold;
}

.broadcast-section-content {
    flex: 1;
}

.broadcast-section-content h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 28px;
    color: #111;

    margin-bottom: 6px;
}

.section-description {
    color: #5f6b72;
    margin-bottom: 25px;
}


/* =========================================================
   FORM FIELDS
========================================================= */

.broadcast-form label {
    display: block;

    color: #111;

    font-size: 14px;
    font-weight: bold;

    margin-bottom: 8px;
}

.broadcast-form input,
.broadcast-form select,
.broadcast-form textarea {
    width: 100%;

    border: 1px solid #cfdadd;
    border-radius: 8px;

    background-color: #fbfdfe;

    padding: 14px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;

    margin-bottom: 20px;
}

.broadcast-form textarea {
    min-height: 110px;
    resize: vertical;
}

.broadcast-form input:focus,
.broadcast-form select:focus,
.broadcast-form textarea:focus {
    outline: 2px solid #f3b9b9;
    border-color: #d10000;
}


/* Two fields next to each other */

.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    flex: 1;
}


/* =========================================================
   CHECKBOX OPTIONS
========================================================= */

.checkbox-option {
    border: 1px solid #dbe3e6;
    border-radius: 10px;

    padding: 16px;

    display: flex !important;
    align-items: flex-start;

    gap: 12px;

    margin-bottom: 14px !important;

    cursor: pointer;
}

.checkbox-option input {
    width: auto;
    margin: 2px 0 0 0;
}

.checkbox-option span {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.checkbox-option small {
    color: #5f6b72;
    font-weight: normal;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.broadcast-submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 10px;
}

.broadcast-submit-row p {
    color: #5f6b72;
    font-size: 14px;
}

.broadcast-submit {
    background-color: #d10000;
    color: white;

    border: none;
    border-radius: 9px;

    padding: 15px 25px;

    font-size: 16px;
    font-weight: bold;

    cursor: pointer;
}

.broadcast-submit:hover {
    background-color: #b80000;
}

#broadcast-status {
    font-weight: bold;
}

/* =========================================================
   DISCOVER PAGE
========================================================= */

.discover-page {
    background-color: #f8fbfc;
}


/* =========================================================
   DISCOVER HERO
========================================================= */

.discover-hero {
    background-color: #dff6fb;

    padding: 90px 40px;
}

.discover-hero-content {
    max-width: 1200px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 70px;
}


/* Left side */

.discover-hero-text {
    flex: 1;
}

.discover-hero-text h1 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 70px;
    line-height: 1;

    color: #111;

    margin-bottom: 25px;
}

.discover-hero-text h1 span {
    color: #d10000;
}

.discover-hero-text p {
    color: #5f6b72;

    font-size: 20px;
    line-height: 1.6;

    max-width: 520px;

    margin-bottom: 30px;
}


/* Hero buttons */

.discover-buttons {
    display: flex;
    gap: 15px;
}

.discover-primary-btn,
.discover-secondary-btn {
    padding: 14px 22px;

    border-radius: 8px;

    text-decoration: none;

    font-weight: bold;
}

.discover-primary-btn {
    background-color: #d10000;
    color: white;
}

.discover-primary-btn:hover {
    background-color: #b80000;
}

.discover-secondary-btn {
    background-color: white;

    color: #111;

    border: 1px solid #d7e0e3;
}

.discover-secondary-btn:hover {
    background-color: #f5f5f5;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.discover-hero-image {
    flex: 1;

    display: flex;
    align-items: center;
    justify-content: center;
}

.discover-logo-circle {
    width: 430px;
    height: 430px;

    background-color: #ffe8a3;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;
}

.discover-logo-circle img {
    width: 80%;
    height: 80%;

    object-fit: contain;
}

/* =========================================================
   DISCOVER FRESH ALERTS
========================================================= */

.fresh-alerts-section {
    max-width: 1200px;

    margin: 0 auto;

    padding: 70px 40px;
}

.fresh-alerts-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;

    margin-bottom: 35px;
}

.fresh-alerts-heading h2 {
    font-family: Georgia, "Times New Roman", serif;

    font-size: 42px;

    color: #111;
}

.see-all-alerts {
    color: #d10000;

    text-decoration: none;

    font-weight: bold;
}

.see-all-alerts:hover {
    text-decoration: underline;
}



/* -------------------------
   Responsive Design
------------------------- */

@media (max-width: 900px) {

    .main-nav {
        gap: 25px;
    }

    .nav-link {
        font-size: 16px;
    }

    .logo-text {
        font-size: 25px;
    }
}


@media (max-width: 700px) {

    .BB-header {
        height: auto;
    }

    .header-container {
        flex-wrap: wrap;

        padding: 15px 20px;
        gap: 15px;
    }

    .main-nav {
        order: 3;

        width: 100%;
        height: 50px;

        justify-content: space-around;

        gap: 0;
    }

    .nav-link {
        height: 50px;
    }

    .header-actions {
        margin-left: auto;
    }
}

@media (max-width: 700px) {

    .broadcast-page {
        padding: 40px 20px;
    }

    .broadcast-hero h1 {
        font-size: 36px;
    }

    .broadcast-card {
        padding: 22px;
        flex-direction: column;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .broadcast-submit-row {
        flex-direction: column;
        align-items: stretch;
    }

    .broadcast-submit {
        width: 100%;
    }
}