/* ===================================
   MADDENVILLE GAZETTE - 1920s NEWSPAPER STYLE
   =================================== */

/* Root Variables - Vintage Newspaper Palette */
:root {
    --newspaper-bg: #f4f1e8;
    --paper-texture: #faf8f3;
    --ink-black: #1a1a1a;
    --ink-gray: #4a4a4a;
    --aged-yellow: #fef9e7;
    --border-ornate: #8b7355;
    --accent-gold: #d4af37;
    --link-blue: #2c5aa0;
    --headline-font: 'Georgia', 'Times New Roman', serif;
    --body-font: 'Garamond', 'Georgia', serif;
}

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

body {
    font-family: var(--body-font);
    background: var(--newspaper-bg);
    color: var(--ink-black);
    line-height: 1.8;
    font-size: 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   NEWSPAPER HEADER / MASTHEAD
   =================================== */

.newspaper-header {
    background: var(--paper-texture);
    border-top: 4px double var(--ink-black);
    border-bottom: 4px double var(--ink-black);
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-ornament {
    font-size: 24px;
    color: var(--border-ornate);
    margin: 10px 0;
    letter-spacing: 20px;
}

.masthead {
    max-width: 900px;
    margin: 0 auto;
}

.date-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-top: 2px solid var(--ink-black);
    border-bottom: 2px solid var(--ink-black);
    margin-bottom: 20px;
}

.gazette-title {
    font-family: var(--headline-font);
    font-size: 72px;
    font-weight: 900;
    letter-spacing: 8px;
    margin: 20px 0;
    text-transform: uppercase;
    text-shadow: 2px 2px 0px rgba(0,0,0,0.1);
    line-height: 1;
}

.motto {
    font-style: italic;
    font-size: 16px;
    color: var(--ink-gray);
    margin: 15px 0;
    letter-spacing: 1px;
}

.volume-info {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 15px;
    color: var(--ink-gray);
}

.volume-info span {
    margin: 0 10px;
}

/* ===================================
   NAVIGATION
   =================================== */

.gazette-nav {
    background: var(--ink-black);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    padding: 15px;
    border-bottom: 3px solid var(--border-ornate);
}

.gazette-nav a {
    color: var(--paper-texture);
    text-decoration: none;
    padding: 8px 20px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    border: 1px solid var(--border-ornate);
    transition: all 0.3s ease;
}

.gazette-nav a:hover {
    background: var(--accent-gold);
    color: var(--ink-black);
    border-color: var(--accent-gold);
}

/* ===================================
   BREAKING NEWS BANNER
   =================================== */

.breaking-news {
    background: var(--aged-yellow);
    border: 3px double var(--ink-black);
    padding: 15px;
    margin: 20px 0;
}

.breaking-news .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.breaking-label {
    font-weight: bold;
    font-size: 18px;
    color: var(--ink-black);
    letter-spacing: 2px;
}

.breaking-text {
    font-size: 16px;
    font-style: italic;
}

/* ===================================
   MAIN CONTENT AREA
   =================================== */

.gazette-content {
    background: var(--paper-texture);
    padding: 40px 0;
}

/* Featured Story */
.featured-story {
    border: 3px double var(--ink-black);
    padding: 30px;
    margin-bottom: 40px;
    background: white;
}

.story-header {
    border-bottom: 2px solid var(--ink-black);
    padding-bottom: 20px;
    margin-bottom: 25px;
}

.news-category {
    display: inline-block;
    background: var(--ink-black);
    color: white;
    padding: 5px 15px;
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.headline {
    font-family: var(--headline-font);
    font-size: 42px;
    line-height: 1.2;
    margin: 15px 0;
    font-weight: 900;
}

.byline, .dateline {
    font-size: 13px;
    color: var(--ink-gray);
    font-style: italic;
    margin: 5px 0;
}

.story-columns {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 25px;
}

.story-text {
    column-count: 2;
    column-gap: 30px;
    text-align: justify;
}

.story-text p {
    margin-bottom: 18px;
}

.lead-paragraph {
    font-size: 18px;
    line-height: 1.9;
}

.dropcap {
    float: left;
    font-size: 72px;
    line-height: 60px;
    padding-right: 8px;
    padding-top: 4px;
    font-weight: bold;
    font-family: var(--headline-font);
}

.story-sidebar {
    border-left: 2px solid var(--ink-black);
    padding-left: 20px;
}

.sidebar-box {
    border: 2px solid var(--border-ornate);
    padding: 20px;
    margin-bottom: 20px;
    background: var(--aged-yellow);
}

.sidebar-box h4 {
    font-size: 16px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--ink-black);
    padding-bottom: 8px;
}

.sidebar-box p {
    font-size: 14px;
    line-height: 1.6;
    margin: 8px 0;
}

.sidebar-link {
    margin-top: 15px;
}

.sidebar-link a {
    color: var(--link-blue);
    font-weight: bold;
    text-decoration: none;
    font-size: 13px;
}

/* ===================================
   THREE COLUMN NEWS GRID
   =================================== */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.news-column {
    border: 2px solid var(--ink-black);
    background: white;
}

.column-header {
    background: var(--ink-black);
    color: white;
    padding: 12px;
    text-align: center;
    border-bottom: 3px solid var(--border-ornate);
}

.column-header h3 {
    font-size: 14px;
    letter-spacing: 2px;
    font-weight: 900;
}

.news-item {
    padding: 20px;
    border-bottom: 1px dashed var(--ink-gray);
}

.news-item:last-child {
    border-bottom: none;
}

.news-item h4 {
    font-family: var(--headline-font);
    font-size: 18px;
    line-height: 1.3;
    margin-bottom: 8px;
    font-weight: bold;
}

.item-date {
    font-size: 11px;
    color: var(--ink-gray);
    font-style: italic;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.news-item p {
    font-size: 14px;
    line-height: 1.7;
    text-align: justify;
}

/* ===================================
   BUSINESS DIRECTORY SECTION
   =================================== */

.directory-section {
    background: var(--aged-yellow);
    border: 4px double var(--ink-black);
    padding: 40px;
    margin: 40px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 35px;
    border-bottom: 3px solid var(--ink-black);
    padding-bottom: 25px;
}

.section-header h2 {
    font-family: var(--headline-font);
    font-size: 36px;
    font-weight: 900;
    letter-spacing: 3px;
    margin-bottom: 10px;
}

.section-subtitle {
    font-size: 14px;
    font-style: italic;
    color: var(--ink-gray);
    letter-spacing: 1px;
}

.directory-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin: 30px 0;
}

.tier-column {
    background: white;
    border: 2px solid var(--ink-black);
    padding: 25px;
}

.tier-column h3 {
    font-family: var(--headline-font);
    font-size: 20px;
    text-align: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-ornate);
}

.tier-description {
    font-size: 13px;
    font-style: italic;
    text-align: center;
    color: var(--ink-gray);
    margin-bottom: 20px;
}

.business-list {
    font-size: 14px;
    line-height: 2;
}

.loading {
    font-style: italic;
    color: var(--ink-gray);
    text-align: center;
}

.directory-footer {
    text-align: center;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 2px solid var(--ink-black);
}

.directory-footer p {
    margin: 10px 0;
    font-size: 14px;
}

.directory-footer a {
    color: var(--link-blue);
    font-weight: bold;
    text-decoration: none;
}

.directory-note {
    font-size: 12px;
    font-style: italic;
    color: var(--ink-gray);
}

/* ===================================
   HISTORICAL NOTE
   =================================== */

.historical-note {
    background: var(--paper-texture);
    border: 3px solid var(--border-ornate);
    padding: 30px;
    margin: 40px 0;
    border-radius: 5px;
}

.historical-note h3 {
    font-family: var(--headline-font);
    font-size: 24px;
    margin-bottom: 15px;
    color: var(--border-ornate);
}

.historical-note p {
    font-size: 15px;
    line-height: 1.8;
    margin: 12px 0;
}

.historical-note a {
    color: var(--link-blue);
    text-decoration: none;
    font-weight: bold;
}

.historical-note a:hover {
    text-decoration: underline;
}

/* ===================================
   FOOTER
   =================================== */

.gazette-footer {
    background: var(--ink-black);
    color: var(--paper-texture);
    padding: 40px 20px 20px;
    border-top: 4px double var(--accent-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 30px;
}

.footer-section h4 {
    font-family: var(--headline-font);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 2px solid var(--accent-gold);
    padding-bottom: 8px;
}

.footer-section p {
    font-size: 13px;
    line-height: 2;
}

.footer-section a {
    color: var(--paper-texture);
    text-decoration: none;
}

.footer-section a:hover {
    color: var(--accent-gold);
}

.copyright {
    text-align: center;
    padding-top: 25px;
    border-top: 1px solid var(--border-ornate);
    font-size: 12px;
    color: var(--ink-gray);
}

.copyright p {
    margin: 5px 0;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .gazette-title {
        font-size: 56px;
        letter-spacing: 6px;
    }
    
    .story-columns {
        grid-template-columns: 1fr;
    }
    
    .story-text {
        column-count: 1;
    }
    
    .sidebar-box {
        margin-bottom: 15px;
    }
    
    .news-grid,
    .directory-tiers,
    .footer-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gazette-title {
        font-size: 42px;
        letter-spacing: 4px;
    }
    
    .date-banner {
        flex-direction: column;
        gap: 8px;
    }
    
    .headline {
        font-size: 32px;
    }
    
    .gazette-nav {
        flex-direction: column;
    }
    
    .gazette-nav a {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gazette-title {
        font-size: 32px;
        letter-spacing: 2px;
    }
    
    .headline {
        font-size: 24px;
    }
    
    .dropcap {
        font-size: 48px;
        line-height: 40px;
    }
}

/* ===================================
   PHOTO GALLERY / ARCHIVES
   =================================== */

.photo-archive {
    background: var(--aged-yellow);
    padding: 60px 20px;
    border-top: 3px double var(--border-ornate);
    border-bottom: 3px double var(--border-ornate);
}

.archive-intro {
    max-width: 800px;
    margin: 0 auto 40px;
    text-align: center;
}

.ornamental-text {
    font-size: 18px;
    font-style: italic;
    color: var(--ink-gray);
    line-height: 1.8;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.photo-card {
    background: white;
    border: 2px solid var(--border-ornate);
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.photo-frame {
    border: 3px double var(--border-ornate);
    padding: 10px;
    background: var(--paper-texture);
}

.photo-image {
    aspect-ratio: 4/3;
    background: #e8e4d8;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.placeholder-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.photo-icon {
    font-size: 60px;
    opacity: 0.3;
}

.photo-year {
    font-family: var(--headline-font);
    font-size: 24px;
    font-weight: bold;
    color: var(--ink-gray);
}

.photo-caption {
    padding: 15px 0;
    text-align: center;
}

.photo-caption h4 {
    font-family: var(--headline-font);
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--ink-black);
}

.photo-caption p {
    font-size: 14px;
    color: var(--ink-gray);
    line-height: 1.6;
    margin-bottom: 10px;
}

.photo-category {
    display: inline-block;
    background: var(--border-ornate);
    color: white;
    padding: 4px 12px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

/* Photo Modal */
.photo-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: var(--paper-texture);
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.vintage-border {
    border: 4px double var(--border-ornate);
    padding: 30px;
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 40px;
    color: var(--ink-black);
    cursor: pointer;
    z-index: 10001;
    background: var(--accent-gold);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--ink-black);
    color: var(--accent-gold);
    transform: rotate(90deg);
}

.modal-photo {
    margin-bottom: 25px;
    border: 4px double var(--border-ornate);
    padding: 15px;
    background: white;
}

.large-photo-placeholder {
    aspect-ratio: 16/9;
    background: #e8e4d8;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.large-photo-icon {
    font-size: 100px;
    opacity: 0.3;
}

.large-photo-year {
    font-family: var(--headline-font);
    font-size: 36px;
    font-weight: bold;
    color: var(--ink-gray);
}

.modal-caption h3 {
    font-family: var(--headline-font);
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--ink-black);
    border-bottom: 2px solid var(--border-ornate);
    padding-bottom: 10px;
}

.modal-caption p {
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.8;
}

.modal-category {
    display: inline-block;
    background: var(--border-ornate);
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: bold;
    margin: 10px 0;
}

.archive-note {
    font-style: italic;
    color: var(--ink-gray);
    font-size: 14px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid var(--border-ornate);
}

/* Responsive Gallery */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .modal-content {
        max-width: 95%;
    }
    
    .modal-caption h3 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .photo-grid {
        grid-template-columns: 1fr;
    }
    
    .photo-icon {
        font-size: 40px;
    }
    
    .photo-year {
        font-size: 18px;
    }
}

/* ===================================
   EVENTS CALENDAR (VINTAGE STYLE)
   =================================== */

.events-calendar {
    background: var(--aged-yellow);
    padding: 60px 40px;
    border-top: 8px double var(--border-ornate);
    border-bottom: 8px double var(--border-ornate);
}

.events-filter-vintage {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.vintage-filter-btn {
    padding: 10px 20px;
    background: var(--aged-white);
    border: 3px solid var(--border-ornate);
    color: var(--text-dark);
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.vintage-filter-btn:hover {
    background: var(--aged-brown);
    color: var(--aged-white);
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.2);
}

.vintage-filter-btn.active {
    background: var(--aged-brown);
    color: var(--aged-white);
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.3);
}

.events-gazette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
}

.gazette-event-card {
    background: var(--aged-white);
    border: 5px double var(--border-ornate);
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.gazette-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.event-ornament-top,
.event-ornament-bottom {
    text-align: center;
    color: var(--border-ornate);
    font-size: 1.2rem;
    margin: 15px 0;
}

.event-icon-vintage {
    font-size: 60px;
    text-align: center;
    margin: 20px 0;
}

.event-content-vintage {
    font-family: 'Georgia', serif;
}

.event-title-vintage {
    color: var(--text-dark);
    font-size: 1.6rem;
    font-weight: bold;
    text-align: center;
    margin: 20px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 3px double var(--border-ornate);
    padding-bottom: 15px;
}

.event-meta-vintage {
    background: #f5f0e8;
    padding: 20px;
    margin: 20px 0;
    border-left: 4px solid var(--border-ornate);
}

.event-meta-vintage p {
    margin: 10px 0;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.8;
}

.event-meta-vintage strong {
    color: var(--aged-brown);
    font-weight: bold;
}

.event-description-vintage {
    color: #444;
    line-height: 1.9;
    font-size: 1rem;
    margin: 20px 0;
    text-align: justify;
}

.event-category-badge {
    display: inline-block;
    padding: 8px 16px;
    margin-top: 15px;
    border: 2px solid var(--border-ornate);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 1.5px;
    text-align: center;
}

.event-category-badge.business {
    background: #d4edda;
    color: #155724;
    border-color: #28a745;
}

.event-category-badge.community {
    background: #d1ecf1;
    color: #0c5460;
    border-color: #17a2b8;
}

.event-category-badge.entertainment {
    background: #e2d6f3;
    color: #4a148c;
    border-color: #6f42c1;
}

.event-category-badge.historical {
    background: #fff3cd;
    color: #856404;
    border-color: #ffc107;
}

/* Responsive Events */
@media (max-width: 768px) {
    .events-gazette-grid {
        grid-template-columns: 1fr;
    }
    
    .events-filter-vintage {
        gap: 10px;
    }
    
    .vintage-filter-btn {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .event-title-vintage {
        font-size: 1.3rem;
    }
}
