/* Can You Make It to Mass - Styles */

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

html {
    background: #0f1d30;
    min-height: 100vh;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(180deg, #0c1929 0%, #1a2744 50%, #0f1d30 100%);
    background-attachment: fixed;
    color: #e8e8e8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px 80px;
    flex: 1;
}

/* Navigation styles now in nav.css */

/* Hero */
.page-hero {
    padding: 120px 24px 60px;
    text-align: center;
}

.hero-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    color: #94a3b8;
    margin-bottom: 12px;
}

.page-hero h1 {
    font-family: 'Crimson Text', serif;
    font-size: 44px;
    margin-bottom: 12px;
}

.page-hero p {
    color: #94a3b8;
    max-width: 560px;
    margin: 0 auto;
}

/* Section Layout */
.finder-section {
    padding: 32px 0 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 64px;
}

.section-heading {
    margin-bottom: 24px;
}

.section-eyebrow {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 11px;
    color: #64748b;
    margin-bottom: 8px;
}

.section-heading h2 {
    font-family: 'Crimson Text', serif;
    font-size: 32px;
    margin-bottom: 6px;
}

.section-heading p {
    color: #94a3b8;
    max-width: 600px;
}

.finder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: stretch;
    margin-bottom: 24px;
}

@media (max-width: 800px) {
    .finder-grid {
        grid-template-columns: 1fr;
    }
}

/* Hero Answer Section */
.hero-answer {
    padding: 0;
    text-align: center;
}

.answer-box {
    max-width: 500px;
    margin: 0 auto;
    padding: 32px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
}

.answer-box.loading {
    opacity: 0.7;
}

.answer-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
    line-height: 1;
}

.answer-title {
    font-family: 'Crimson Text', serif;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.1;
}

.answer-box.loading .answer-title {
    font-size: 28px;
    color: #e8e8e8;
    margin-bottom: 12px;
}

.answer-box.loading .btn-primary {
    font-size: 16px;
    padding: 16px 32px;
    margin-top: 16px;
}

@media (max-width: 640px) {
    .answer-box.loading .btn-primary {
        width: 100%;
        padding: 18px 24px;
        font-size: 18px;
    }
}

.answer-box.yes .answer-title {
    color: #22c55e;
}

.answer-box.no .answer-title {
    color: #ef4444;
}

.answer-box.late .answer-title {
    color: #f0c674;
}

.answer-box.close .answer-title {
    color: #22c55e;
}

.answer-subtext {
    font-size: 16px;
    color: #94a3b8;
    margin-bottom: 12px;
    line-height: 1.4;
}

.answer-church {
    font-size: 14px;
    color: #64748b;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Controls Section */
.controls {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    padding: 24px;
    max-width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 16px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-group label {
    font-size: 12px;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.slider-container {
    width: 200px;
}

.slider-container input[type="range"] {
    width: 100%;
    -webkit-appearance: none;
    height: 4px;
    background: #253341;
    border-radius: 2px;
    outline: none;
}

.slider-container input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #f0c674;
    border-radius: 50%;
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
}

.slider-labels span {
    font-size: 12px;
    color: #64748b;
    cursor: pointer;
}

.slider-labels span.active {
    color: #f0c674;
    font-weight: 600;
}

.toggle-buttons {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.toggle-btn {
    padding: 8px 14px;
    background: #253341;
    border: 1px solid #38444d;
    border-radius: 6px;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.toggle-btn:hover {
    border-color: #f0c674;
    color: #f0c674;
}

.toggle-btn.active {
    background: rgba(240, 198, 116, 0.15);
    border-color: #f0c674;
    color: #f0c674;
}

/* Results Section */
.results {
    padding-bottom: 48px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.results-header h2 {
    font-family: 'Crimson Text', serif;
    font-size: 24px;
    font-weight: 600;
    color: #e8e8e8;
}

.results-meta {
    font-size: 14px;
    color: #64748b;
}

.results-count {
    color: #f0c674;
    font-weight: 600;
}

/* Church Cards - Two Column Grid */
.church-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.church-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 16px;
    transition: border-color 0.2s;
}

.church-card:hover {
    border-color: rgba(240, 198, 116, 0.3);
}

.church-card.yes,
.church-card.close {
    border-left: 4px solid #22c55e;
}

.church-card.late {
    border-left: 4px solid #f0c674;
}

.church-card.no {
    border-left: 4px solid #ef4444;
    opacity: 0.8;
}

.card-header {
    margin-bottom: 8px;
}

.card-time-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.card-time-block .day-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
    margin-bottom: 2px;
}

.card-time-block .day-label .day-link {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s;
}

.card-time-block .day-label .day-link:hover {
    color: #f0c674;
    text-decoration: underline;
}

.card-time-block .time {
    font-size: 24px;
    font-weight: 700;
    color: #f0c674;
}

.card-time-block .countdown {
    font-size: 14px;
    color: #64748b;
}

.card-title {
    margin-bottom: 8px;
}

.card-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #e8e8e8;
    margin-bottom: 2px;
}

.card-title-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.card-title-link:hover h3 {
    color: #f0c674;
}

.card-city {
    font-size: 13px;
    color: #64748b;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.status-label {
    font-weight: 700;
    font-size: 16px;
}

.status-label.yes,
.status-label.close {
    color: #22c55e;
}

.status-label.late {
    color: #f0c674;
}

.status-label.no {
    color: #ef4444;
}

.status-detail {
    color: #94a3b8;
    font-size: 14px;
}

.card-travel {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 6px;
}

.card-confession,
.card-adoration {
    font-size: 13px;
    color: #94a3b8;
    margin-bottom: 8px;
    padding-left: 12px;
    border-left: 2px solid #38444d;
}

.card-confession.fits {
    color: #22c55e;
    border-left-color: #22c55e;
}

.language-badge {
    display: inline-block;
    background: rgba(240, 198, 116, 0.2);
    color: #f0c674;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    margin-left: 6px;
    vertical-align: middle;
}

.card-language-note {
    font-size: 13px;
    color: #f0c674;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: rgba(240, 198, 116, 0.1);
    border-radius: 6px;
    border-left: 3px solid #f0c674;
}

.card-actions {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.page-btn {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.page-btn:not(:disabled):hover {
    border-color: #f0c674;
    color: #f0c674;
}

.page-info {
    font-size: 14px;
    color: #94a3b8;
}

.btn {
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
    text-align: center;
    flex: 1;
}

.btn-primary {
    background: linear-gradient(135deg, #f0c674 0%, #e6b84d 100%);
    color: #1a1a2e;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(240, 198, 116, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    border: 1px solid #38444d;
}

.btn-secondary:hover {
    border-color: #f0c674;
    color: #f0c674;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 48px 24px;
    color: #64748b;
}

/* Retry Button */
.retry-btn {
    margin-top: 24px;
    cursor: pointer;
    border: none;
}

/* Footer */
.footer {
    text-align: center;
    padding: 32px 24px;
    color: #64748b;
    font-size: 14px;
    margin-top: auto;
    width: 100%;
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.footer-focus {
    font-weight: 600;
    color: #e8e8e8;
    margin-bottom: 8px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 8px;
}

.footer-links a {
    color: #f0c674;
    text-decoration: none;
    font-size: 13px;
}

.footer-note {
    font-size: 12px;
    margin-top: 8px;
    color: #4a5568;
}

/* Mobile Responsive */
@media (max-width: 900px) {
    main {
        padding: 0 16px 60px;
    }

    .page-hero {
        padding: 100px 16px 40px;
    }

    .page-hero h1 {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .church-cards {
        grid-template-columns: 1fr;
    }

    .finder-grid {
        gap: 20px;
    }

    .controls {
        padding: 16px;
        gap: 16px;
    }

    .toggle-buttons {
        flex-wrap: wrap;
    }

    .toggle-btn {
        padding: 10px 12px;
        font-size: 12px;
        min-width: auto;
    }
}

@media (max-width: 640px) {
    main {
        padding: 0 12px 40px;
    }

    .page-hero {
        padding: 80px 12px 32px;
    }

    .page-hero h1 {
        font-size: 28px;
        line-height: 1.2;
    }

    .page-hero p {
        font-size: 14px;
    }

    .finder-section {
        margin-bottom: 40px;
    }

    .section-heading h2 {
        font-size: 24px;
    }

    .section-heading p {
        font-size: 14px;
    }

    .answer-box {
        padding: 24px 16px;
    }

    .answer-title {
        font-size: 40px;
    }

    .answer-subtext {
        font-size: 14px;
    }

    .controls {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
        border-radius: 12px;
    }

    .control-group {
        width: 100%;
    }

    .control-group label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .slider-container {
        width: 100%;
    }

    .toggle-buttons {
        width: 100%;
        gap: 4px;
    }

    .toggle-btn {
        flex: 1;
        text-align: center;
        padding: 10px 8px;
        font-size: 12px;
    }

    /* Filter and sort row - stack on very small screens */
    .control-group > div[style*="display: flex"] {
        flex-direction: column !important;
        gap: 8px !important;
    }

    .control-group input[data-filter-input],
    .control-group select[data-sort-select] {
        width: 100% !important;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .results-header h2 {
        font-size: 20px;
    }

    .card-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .pagination {
        gap: 8px;
    }

    .page-btn {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* Mass Reminder Signup Section */
.reminder-signup-section {
    margin: 80px 0 40px;
    padding: 0 24px;
}

.reminder-signup-box {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(26, 38, 52, 0.6);
    border: 1px solid rgba(240, 198, 116, 0.2);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
}

.reminder-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.reminder-signup-box h2 {
    font-family: 'Crimson Text', serif;
    font-size: 28px;
    font-weight: 700;
    color: #f0c674;
    margin-bottom: 12px;
}

.reminder-signup-box > p {
    color: #94a3b8;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 32px;
}

.reminder-form {
    text-align: left;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: #e8e8e8;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 29, 48, 0.6);
    border: 1px solid rgba(240, 198, 116, 0.2);
    border-radius: 8px;
    color: #e8e8e8;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #f0c674;
    background: rgba(15, 29, 48, 0.8);
}

.form-group input::placeholder {
    color: #64748b;
}

.form-help {
    font-size: 13px;
    color: #64748b;
    margin-top: 4px;
    line-height: 1.4;
}

.reminder-message {
    margin-bottom: 16px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.reminder-message.success {
    display: block;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.reminder-message.error {
    display: block;
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

.reminder-privacy {
    font-size: 13px;
    color: #64748b;
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
}

@media (max-width: 640px) {
    .reminder-signup-box {
        padding: 32px 24px;
    }

    .reminder-signup-box h2 {
        font-size: 24px;
    }
}

/* Parish Reminder Form Enhancements */
.parish-select-wrapper {
    position: relative;
}

.parish-search {
    margin-bottom: 8px;
}

.form-group select {
    width: 100%;
    padding: 12px 16px;
    background: rgba(15, 29, 48, 0.6);
    border: 1px solid rgba(240, 198, 116, 0.2);
    border-radius: 8px;
    color: #e8e8e8;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f0c674' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select:focus {
    outline: none;
    border-color: #f0c674;
    background-color: rgba(15, 29, 48, 0.8);
}

.form-group select option {
    background: #1a2634;
    color: #e8e8e8;
    padding: 12px;
}

/* Mass Times Section */
.mass-day-group {
    margin-bottom: 20px;
}

.mass-day-label {
    font-size: 13px;
    font-weight: 600;
    color: #f0c674;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(240, 198, 116, 0.2);
}

.mass-times-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mass-time-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 29, 48, 0.6);
    border: 1px solid rgba(240, 198, 116, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #e8e8e8;
}

.mass-time-checkbox:hover {
    border-color: rgba(240, 198, 116, 0.4);
    background: rgba(15, 29, 48, 0.8);
}

.mass-time-checkbox:has(input:checked) {
    background: rgba(240, 198, 116, 0.15);
    border-color: rgba(240, 198, 116, 0.5);
}

.mass-time-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #f0c674;
}

.mass-time-checkbox span {
    white-space: nowrap;
}

.mass-times-raw {
    padding: 16px;
    background: rgba(15, 29, 48, 0.4);
    border-radius: 8px;
    margin-bottom: 16px;
}

/* Submit Button States */
#reminderSubmitBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

#reminderSubmitBtn:not(:disabled) {
    cursor: pointer;
}

@media (max-width: 640px) {
    .mass-times-grid {
        flex-direction: column;
    }

    .mass-time-checkbox {
        width: 100%;
    }
}
