:root {
    --primary: #5c415d;
    /* Deep Ecclesiastical Violet */
    --primary-light: #8a6a8b;
    --accent: #d4af37;
    /* Metallic Gold */
    --accent-hover: #f1c40f;
    --bg-light: #fdfbf7;
    /* Cream/Parchment */
    --text-dark: #2c3e50;
    --text-muted: #7f8c8d;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.3);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    --radius: 16px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

h1,
h2,
h3 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

/* Background Decor */
.background-decor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

#orb1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

#orb2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    bottom: -50px;
    left: -50px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.cross {
    font-size: 2.5rem;
    color: var(--accent);
    font-weight: 300;
}

header h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin: 0;
}

header h1 span {
    color: var(--text-dark);
    font-weight: 400;
}

.subtitle {
    font-style: italic;
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Search Card */
.search-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease-out;
}

.search-card h2 {
    margin-bottom: 1rem;
    color: var(--primary);
    text-align: center;
}

.search-card p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-end;
}

.input-group {
    flex: 1;
    min-width: 200px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
}

input,
select {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

input:focus,
select:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 4px rgba(92, 65, 93, 0.1);
}

.cta-button {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 0 0 auto;
}

.cta-button:hover {
    background: #4a344a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Results Area */
.results-area {
    margin-bottom: 4rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.results-area.hidden {
    opacity: 0;
    display: none;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.print-button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--white);
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.print-button:hover {
    background: #f9f9f9;
    border-color: var(--accent);
    color: var(--accent);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

/* Saint Card */
.saint-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-left: 5px solid var(--accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.saint-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.saint-card .feast-day {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    display: block;
}

.saint-card h3 {
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.saint-card .intro {
    font-size: 0.95rem;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.saint-card .detail-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #eee;
}

.detail-section h4 {
    font-size: 0.85rem;
    color: var(--primary-light);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.detail-section p {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print Only Styles */
.print-only {
    display: none;
}

@media print {
    body {
        background: white;
        color: black;
    }

    .container,
    .background-decor {
        display: none !important;
    }

    .print-only {
        display: block;
        padding: 40px;
    }

    .print-header {
        text-align: center;
        margin-bottom: 30px;
        border-bottom: 2px solid #333;
        padding-bottom: 20px;
    }

    .print-saint {
        margin-bottom: 40px;
        page-break-inside: avoid;
    }

    .print-saint h3 {
        color: #5c415d;
        margin-bottom: 10px;
    }

    .print-label {
        font-weight: bold;
        text-transform: uppercase;
        font-size: 0.8rem;
        margin-top: 10px;
        display: block;
    }
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        padding: 1rem;
    }

    .search-card {
        padding: 1.5rem;
    }

    .results-grid {
        grid-template-columns: 1fr;
    }

    .cta-button {
        width: 100%;
    }
}