/* Common CSS styles for liturgical calendar application */

/* Google Fonts import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=EB+Garamond:wght@400;500;600&display=swap');

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #f9fafb;
    min-height: 100vh;
}

/* Navigation Menu */
.main-navigation {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.nav-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
}

.nav-title .cross {
    color: #b91c1c;
    margin-right: 0.3em;
}

.nav-menu {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.nav-button {
    padding: 8px 16px;
    background: #f8fafc;
    color: #374151;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    font-weight: 500;
}

.nav-button:hover {
    background: #e5e7eb;
    color: #1f2937;
}

.nav-button.active {
    background: #6b7280;
    color: white;
    border-color: #6b7280;
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        text-align: center;
    }
    
    .nav-menu {
        justify-content: center;
        width: 100%;
    }
    
    .nav-button {
        flex: 1;
        text-align: center;
        min-width: 80px;
        white-space: normal; /* Allow text wrapping */
        line-height: 1.3; /* Better line spacing for wrapped text */
        padding: 8px 12px; /* Adjust padding for wrapped text */
    }
}

/* Typography - missal-inspired */
h1 {
    font-family: 'EB Garamond', serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1.5rem;
    color: #111827;
    letter-spacing: 0.5px;
    position: relative;
}

h1 .cross {
    color: #b91c1c; /* deep liturgical red */
    font-size: 1.2em;
    margin-right: 0.4em;
    vertical-align: middle;
}

h1::after {
    content: "";
    display: block;
    width: 60px;
    height: 2px;
    margin: 0.75rem auto 0;
    background: #d1d5db;
    border-radius: 2px;
}

.saints-h2 {
    font-family: 'EB Garamond', serif;
    font-size: 1.75rem;
    font-weight: 600;
    text-align: center;
    color: #374151;
    margin-top: -1rem;
    margin-bottom: 2rem;
    letter-spacing: 0.3px;
    position: relative;
}

.saints-h2::after {
    content: "";
    display: block;
    width: 40px;
    height: 1.5px;
    margin: 0.5rem auto 0;
    background: #e5e7eb;
    border-radius: 1px;
}

/* Container and layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Navigation components */
.navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.nav-button {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    text-decoration: none;
    color: #4b5563;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.nav-button:hover {
    border-color: #6b7280;
    color: #374151;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.home-button {
    padding: 12px 24px;
    background: #374151;
    color: white;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.home-button:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Cards and containers */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 24px;
}

.card-header {
    background: #f8fafc;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.card-body {
    padding: 24px;
}

.card-title {
    font-family: 'EB Garamond', serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

/* Form elements */
.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 6px;
    font-size: 0.95rem;
}

.form-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    color: #374151;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    transition: all 0.2s ease;
}

.form-select:focus {
    outline: none;
    border-color: #6b7280;
    box-shadow: 0 0 0 3px rgba(107, 114, 128, 0.1);
}

/* Calendar switcher */
.calendar-switcher {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    margin-bottom: 24px;
}

.calendar-switcher h3 {
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

/* Events and content */
.events-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid #e5e7eb;
    overflow: hidden;
    margin-bottom: 24px;
}

.events-header {
    background: #f8fafc;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
}

/* Content sections with proper spacing */
.content-section {
    margin-bottom: 32px; /* Increased spacing between sections */
}

.content-section:last-child {
    margin-bottom: 0;
}

.content-section p {
    margin-bottom: 16px; /* Proper paragraph spacing */
    line-height: 1.7;
}

.content-section p:last-child {
    margin-bottom: 0;
}

/* Quote and verse boxes */
.quote-box, .verse-box {
    background: #f8fafc;
    border-left: 4px solid #6b7280;
    padding: 20px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.quote-attribution, .verse-attribution {
    text-align: right;
    margin-top: 12px;
    font-size: 0.9rem;
    color: #6b7280;
    font-weight: 500;
}

/* Bullet points styling */
.bullet-points-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.bullet-points-box h4 {
    font-family: 'EB Garamond', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 16px;
}

.bullet-points-box ul {
    list-style-type: none;
    padding-left: 0;
}

.bullet-points-box li {
    padding: 6px 0;
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
}

.bullet-points-box li:before {
    content: "•";
    color: #6b7280;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .saints-h2 {
        font-size: 1.5rem;
    }
    
    .navigation {
        flex-direction: column;
        gap: 12px;
    }
    
    .nav-button, .home-button {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}