/* Global styles for Obituary Ledger */
/* Old London Font */
@font-face {
    font-family: 'Old London';
    src: url('/fonts/oldlondon-webfont.woff2') format('woff2'),
         url('/fonts/oldlondon-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

header {
    border-bottom: 1px solid #ccc;
    padding: 20px 0;
    text-align: center;
    background-color: white;
}

.site-title {
    font-family: 'UnifrakturMaguntia', 'UnifrakturCook', 'Old English Text MT', serif;
    font-size: 4rem;
    line-height: 1.2;
}

.tagline {
    font-size: 0.9rem;
    font-style: italic;
    color: #555;
}

.navbar-nav .nav-link {
    font-weight: 500;
}

.top-ad {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    text-align: center;
}

footer {
    border-top: 1px solid #ccc;
    padding: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #777;
    background-color: white;
}

/* Layout styles from _Layout.cshtml */
body {
    font-family: 'EB Garamond', Georgia, serif;
    background-color: #f5f5f5;
    color: #000;
}

.masthead {
    border-bottom: 2px solid #000;
    padding: 1rem 0;
    background-color: #fff;
}

.masthead-title {
    font-family: 'Old London', 'UnifrakturMaguntia', 'UnifrakturCook', 'Old English Text MT', serif;
    font-size: 4rem;
    letter-spacing: 2px;
    margin: 0;
    line-height: 1.2;
}

/* Mobile bottom padding to account for sticky ad */
@media (max-width: 767.98px) {
    body {
        padding-bottom: 60px; /* Height of mobile sticky ad */
    }
}

.masthead-tagline {
    font-style: italic;
    color: #555;
    font-size: 0.9rem;
}

.masthead-date {
    font-size: 0.9rem;
    color: #666;
}

.edition-selector {
    cursor: pointer;
    text-decoration: underline;
    color: #0d6efd;
}

.edition-selector:hover {
    color: #0a58ca;
}

.nav-menu {
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0;
    background-color: #fff;
    position: sticky;
    top: 0;
    z-index: 1020;
}

.nav-menu .nav-link {
    color: #333;
    font-size: 0.95rem;
    padding: 0.5rem 1rem;
    font-weight: 500;
}

.nav-menu .nav-link:hover {
    color: #000;
    background-color: #f0f0f0;
}

.nav-menu .dropdown-menu {
    border-radius: 0;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.nav-menu .dropdown-item {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

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

.nav-menu .dropdown-item .price-tag {
    float: right;
    color: #28a745;
    font-weight: bold;
}

.nav-menu .dropdown-item .price-tag.free {
    color: #17a2b8;
}

main {
    min-height: calc(100vh - 300px);
}

footer {
    border-top: 1px solid #ccc;
    padding: 1.5rem 0;
    background-color: #fff;
    font-size: 0.85rem;
    color: #666;
}

.auth-btn {
    font-size: 0.9625rem;
}

/* Edition Modal Styling */
.edition-modal .state-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.edition-modal .state-btn {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.edition-modal .country-tab {
    cursor: pointer;
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    background: #f8f9fa;
}

.edition-modal .country-tab.active {
    background: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

/* Main content container styling */
.content-container {
    max-width: 1140px;
    margin: 0 auto;
    background-color: #fff;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
