@import url('https://fonts.googleapis.com/css2?family=Source+Sans+3:ital,wght@0,400;0,600;1,400&display=swap');

:root {
    --hc-navy: #0a2433;
    --hc-navy-mid: #123445;
    --hc-navy-light: #1b4a60;
    --hc-gold: #f0b429;
    --hc-gold-bright: #ffc94a;
    --hc-rust: #c45a1a;
    --hc-teal: #5ec8d4;
    --hc-teal-deep: #2a8a96;
    --hc-amber: #ffbf5e;
    --hc-cream: #f6f0e3;
    --hc-ink: #14222b;
    --primary-color: var(--hc-gold);
    --bs-primary: var(--hc-gold);
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: var(--hc-cream);
    color: var(--hc-ink);
    overflow-x: hidden;
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
}

a {
    color: var(--hc-teal-deep);
}

a:hover {
    color: var(--hc-rust);
}

.navbar {
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(10, 36, 51, 0.25);
}

.navbar.bg-dark {
    background-color: var(--hc-navy) !important;
    border-bottom: 1px solid rgba(240, 180, 41, 0.35);
}

.navbar-brand {
    color: var(--hc-gold) !important;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.navbar-logo {
    height: 42px;
    width: 42px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid rgba(240, 180, 41, 0.55);
    box-shadow: 0 0 10px rgba(255, 191, 94, 0.35);
}

.navbar-dark .nav-link {
    color: rgba(246, 240, 227, 0.85);
}

.navbar-dark .nav-link:hover,
.navbar-dark .nav-link:focus {
    color: var(--hc-gold);
}

.navbar.sticky-top {
    z-index: 1030;
}

.card {
    transition: box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(10, 36, 51, 0.08);
    overflow-wrap: anywhere;
    border-color: rgba(18, 52, 69, 0.12);
}

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        box-shadow: 0 4px 14px rgba(10, 36, 51, 0.14);
    }
}

@media (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }

    .row > .col-md-8.offset-md-2,
    .row > .col-md-10.offset-md-1 {
        width: 100%;
        margin-left: 0;
    }
}

@media (min-width: 1600px) {
    .container {
        max-width: 1600px;
    }
}

.card-title {
    color: var(--hc-navy);
    font-weight: 700;
}

.btn-primary {
    background-color: var(--hc-gold);
    border-color: var(--hc-rust);
    color: var(--hc-navy);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--hc-gold-bright);
    border-color: var(--hc-rust);
    color: var(--hc-navy);
}

/* Search page styles */
.search-content mark {
    background-color: #FFD700; /* Gold for highlighting */
    padding: 0.1em 0.2em;
    border-radius: 3px;
}

.card.mb-3.shadow-sm {
    border-left: 4px solid var(--bs-primary);
}

/* Alternate styling for answer cards for better visual distinction if desired */
/* .card.mb-3.shadow-sm:has(.badge.bg-success) { 
    border-left-color: var(--bs-success);
} */

/* Edit episode page styles */
.sortable-container {
    min-height: 50px;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    background-color: #f8f9fa;
}

.sortable-container .form-check {
    background-color: white;
    padding: 8px;
    margin-bottom: 5px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: move;
}

.sortable-container .form-check:hover {
    background-color: #e9ecef;
}

.sortable-container .form-check.ui-sortable-helper {
    background-color: #e9ecef;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.remove-host, .remove-guest {
    padding: 0 6px;
    font-size: 1.2em;
    line-height: 1;
}

/* Episode page styles */
.drag-handle {
    cursor: move;
    color: #6c757d;
    padding: 8px;
    margin-right: 10px;
    border-radius: 4px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.drag-handle:hover {
    color: #495057;
    background-color: #e9ecef;
}

.question-item {
    transition: background-color 0.2s;
}

.question-item.ui-sortable-helper {
    background-color: #f8f9fa;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.questions-container {
    min-height: 50px;
}

/* Intro box styles */
.intro-box {
    background-color: #ffffff;
    border-color: rgba(240, 180, 41, 0.45);
    box-shadow: 0 0 0 1px rgba(94, 200, 212, 0.25), 0 2px 10px rgba(10, 36, 51, 0.08);
}

.intro-table {
    color: #212529;
}

.intro-table .host-label {
    color: var(--hc-rust);
    font-weight: 500;
}

.intro-table .intro-text {
    color: #212529;
}

/* Additional utility styles */
.text-muted {
    color: #6c757d !important;
}

/* Ensure proper styling for form elements */
.form-control:focus {
    border-color: var(--hc-gold);
    box-shadow: 0 0 0 0.2rem rgba(240, 180, 41, 0.28);
}

.form-select:focus {
    border-color: var(--hc-gold);
    box-shadow: 0 0 0 0.2rem rgba(240, 180, 41, 0.28);
}

/* Ensure proper badge styling */
.badge.bg-primary {
    background-color: var(--hc-gold) !important;
    color: var(--hc-navy) !important;
}

.badge.bg-info {
    background-color: var(--hc-teal) !important;
    color: var(--hc-navy) !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.guest-appearance-pill {
    background: linear-gradient(180deg, var(--hc-gold-bright), var(--hc-gold));
    color: var(--hc-navy) !important;
    font-weight: 700;
    box-shadow: 0 0 8px rgba(255, 191, 94, 0.45);
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

/* Additional common styles */
.alert {
    border-radius: 0.375rem;
}

.alert-success {
    background-color: #d1e7dd;
    border-color: #badbcc;
    color: #0f5132;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c2c7;
    color: #842029;
}

.alert-info {
    background-color: #cff4fc;
    border-color: #b6effb;
    color: #055160;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffecb5;
    color: #664d03;
}

/* Ensure proper button styling */
.btn {
    border-radius: 0.375rem;
}

.btn-outline-primary {
    color: var(--hc-teal-deep);
    border-color: var(--hc-teal-deep);
}

.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--hc-teal-deep);
    border-color: var(--hc-teal-deep);
}

.btn-outline-danger {
    color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-danger:hover {
    color: #fff;
    background-color: #dc3545;
    border-color: #dc3545;
}

.btn-outline-warning {
    color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-warning:hover {
    color: #000;
    background-color: #ffc107;
    border-color: #ffc107;
}

.btn-outline-success {
    color: #198754;
    border-color: #198754;
}

.btn-outline-success:hover {
    color: #fff;
    background-color: #198754;
    border-color: #198754;
}

/* Ensure proper table styling */
.table {
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

/* Ensure proper form styling */
.form-label {
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control,
.form-select {
    border-radius: 0.375rem;
}

/* Ensure proper card styling */
.card {
    border-radius: 0.5rem;
}

.card-header {
    background-color: rgba(10, 36, 51, 0.04);
    border-bottom: 1px solid rgba(196, 90, 26, 0.18);
}

.navbar-brand {
    font-weight: 700;
}

/* Ensure proper dropdown styling */
.dropdown-menu {
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    padding: 0.5rem 1rem;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

.navbar .dropdown-menu-dark {
    background-color: var(--hc-navy);
    border-color: rgba(240, 180, 41, 0.35);
}

.navbar .dropdown-menu-dark .dropdown-item {
    color: rgba(246, 240, 227, 0.9);
}

.navbar .dropdown-menu-dark .dropdown-item:hover,
.navbar .dropdown-menu-dark .dropdown-item:focus {
    background-color: var(--hc-navy-light);
    color: var(--hc-gold);
}

/* Ensure proper modal styling */
.modal-content {
    border-radius: 0.5rem;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.modal-footer {
    border-top: 1px solid #dee2e6;
}

/* Responsive layout helpers */
.action-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem 1rem;
    flex-wrap: wrap;
}

.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.intro-table .host-label {
    white-space: nowrap;
    width: 1%;
    vertical-align: top;
}

.intro-table .intro-text {
    overflow-wrap: anywhere;
}

#theme-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 767.98px) {
    .container {
        padding-left: max(1rem, env(safe-area-inset-left));
        padding-right: max(1rem, env(safe-area-inset-right));
    }

    h1,
    h1.card-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    h2,
    h2.card-title {
        font-size: 1.3rem;
        line-height: 1.3;
    }

    h3.card-title {
        font-size: 1.15rem;
        line-height: 1.35;
    }

    .navbar .nav-link,
    .dropdown-item,
    .btn:not(.btn-sm) {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }

    .navbar-collapse .navbar-nav {
        padding-top: 0.5rem;
        padding-bottom: 0.75rem;
    }

    .navbar-collapse .nav-link {
        padding-top: 0.7rem;
        padding-bottom: 0.7rem;
    }

    .form-control,
    .form-select {
        font-size: 16px;
    }

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

    .action-buttons {
        width: 100%;
    }

    .action-buttons .btn {
        flex: 1 1 auto;
        justify-content: center;
        text-align: center;
    }

    .intro-table,
    .intro-table tbody,
    .intro-table tr,
    .intro-table td {
        display: block;
        width: 100%;
    }

    .intro-table tr {
        margin-bottom: 1rem;
        padding-bottom: 0.75rem;
        border-bottom: 1px solid #dee2e6;
    }

    .intro-table tr:last-child {
        margin-bottom: 0;
        padding-bottom: 0;
        border-bottom: 0;
    }

    .intro-table .host-label {
        white-space: normal;
        width: 100%;
        padding-bottom: 0.15rem;
    }

    .intro-table .intro-text {
        padding-top: 0;
    }

    .btn-group {
        flex-wrap: wrap;
    }

    .table-responsive {
        margin-left: -0.25rem;
        margin-right: -0.25rem;
    }

    .card-body > .d-flex.justify-content-between {
        gap: 0.75rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 575.98px) {
    .card-body {
        padding: 1rem;
    }

    .badge {
        margin-bottom: 0.25rem;
    }
}

/* Guest page tour */
.guest-tour-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1055;
}

.guest-tour-highlight {
    position: relative !important;
    z-index: 1056 !important;
    outline: 3px solid var(--hc-gold);
    box-shadow: 0 0 0 6px rgba(240, 180, 41, 0.25);
    border-radius: 0.5rem;
    background-color: inherit;
}

.guest-tour-tooltip {
    position: fixed;
    z-index: 1057;
    max-width: 360px;
    background: #fff;
    color: #212529;
    border-radius: 0.5rem;
    box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.25);
    padding: 1rem 1.1rem;
}

.guest-tour-progress {
    font-size: 0.8rem;
    color: #6c757d;
    margin-bottom: 0.35rem;
}

.guest-tour-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 0.4rem;
}

.guest-tour-text {
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    line-height: 1.45;
}

.guest-tour-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.guest-tour-nav {
    display: flex;
    gap: 0.4rem;
    margin-left: auto;
} 