/* Tradycja Katolicka - Główny arkusz stylów */

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

body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Nawigacja główna */
.navbar {
    background: linear-gradient(135deg, #8B4513 0%, #a0522d 100%);
    padding: 1rem 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand {
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s;
}

.nav-brand:hover {
    color: #ffd700;
    text-decoration: none;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-link:hover {
    background: rgba(255,255,255,0.1);
    color: #ffd700;
    text-decoration: none;
}

.nav-link.active {
    background: rgba(255,255,255,0.2);
    color: #ffd700;
}

/* Mobile menu toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section z obrazem tła */
.hero {
    height: 60vh;
    min-height: 400px;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), 
                url('images/Golgota-Jana-Styki-w-Glendale.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: bold;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
    font-family: 'Georgia', serif;
}

.hero-content p {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8);
    margin-bottom: 2rem;
}

/* Główna zawartość */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.content-section {
    background: white;
    margin: 2rem auto;
    padding: 3rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.announcement {
    border: 3px solid #8B4513;
    border-radius: 15px;
    padding: 2rem;
    margin: 2rem 0;
    background: linear-gradient(135deg, #fff9f0 0%, #fef5e7 100%);
    position: relative;
}

.announcement::before {
    content: "✠";
    position: absolute;
    top: -15px;
    left: 20px;
    background: white;
    padding: 0 10px;
    font-size: 1.5rem;
    color: #8B4513;
    font-weight: bold;
}

.announcement h2 {
    color: #8B4513;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    text-align: center;
}

.announcement .date {
    font-size: 1.3rem;
    font-weight: bold;
    color: #d2691e;
    text-align: center;
    margin: 1rem 0;
}

.announcement .details {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
}

.coordinates {
    background: #f0f8ff;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
    font-family: monospace;
    border-left: 4px solid #8B4513;
}

/* Mapa Google */
.map-container {
    margin: 2rem 0;
    text-align: center;
}

.map-container h3 {
    margin-bottom: 1rem;
    color: #8B4513;
    font-size: 1.5rem;
}

.map-frame {
    width: 100%;
    max-width: 800px;
    height: 400px;
    border: 3px solid #8B4513;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Informacje kontaktowe */
.contact-info {
    background: linear-gradient(135deg, #8B4513 0%, #a0522d 100%);
    color: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    margin: 2rem 0;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.contact-info p {
    font-size: 1.1rem;
    margin: 0.5rem 0;
}

/* Kontener główny dla Ordo Missae */
.main-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem 20px;
}

/* Spis treści - sticky */
.toc-container {
    position: sticky;
    top: 100px;
    height: fit-content;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.table-of-contents {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-left: 4px solid #8B4513;
}

.toc-title {
    color: #8B4513;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.toc-list {
    list-style: none;
}

.toc-item {
    margin-bottom: 0.5rem;
}

.toc-link {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem;
    display: block;
    border-radius: 5px;
    transition: all 0.3s;
}

.toc-link:hover {
    background: #f0f8ff;
    color: #8B4513;
    text-decoration: none;
}

.toc-link.active {
    background: #8B4513;
    color: white;
}

.toc-section {
    font-weight: bold;
    color: #8B4513;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.toc-subsection {
    padding-left: 1rem;
    font-size: 0.85rem;
}

/* Główna zawartość Ordo Missae */
.content {
    background: white;
    border-radius: 10px;
    padding: 3rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 3px solid #8B4513;
}

.page-header h1 {
    color: #8B4513;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header p {
    color: #666;
    font-size: 1.1rem;
    font-style: italic;
}

/* Sekcje */
.section {
    margin-bottom: 3rem;
    scroll-margin-top: 120px;
}

.section-header {
    background: linear-gradient(135deg, #8B4513 0%, #a0522d 100%);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    font-size: 1.3rem;
    font-weight: bold;
    text-align: center;
}

.subsection {
    margin-bottom: 2rem;
    scroll-margin-top: 120px;
}

.subsection h3 {
    color: #8B4513;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f0f8ff;
}

.subsection h4 {
    color: #a0522d;
    font-size: 1.1rem;
    margin: 1.5rem 0 1rem 0;
}

.subsection h5 {
    color: #8B4513;
    font-size: 1rem;
    margin: 1rem 0 0.5rem 0;
}

/* Tabele liturgiczne */
.table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.table-dark {
    background: #2c3e50;
}

.table-dark td {
    padding: 1rem;
    border-bottom: 1px solid #34495e;
    color: white;
    vertical-align: top;
}

.table-dark td:first-child {
    background: #34495e;
    font-weight: 500;
    width: 50%;
}

.table-dark td:last-child {
    background: #2c3e50;
    width: 50%;
}

/* Krzyżyk */
.crux {
    color: #d4336a;
    font-weight: bold;
    font-size: 1.1em;
}

/* Czerwony tekst */
.red {
    color: #d4336a;
    font-weight: bold;
}

/* Paragrafy */
p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Historia - timeline */
.timeline {
    position: relative;
    margin: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #8B4513;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 80px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 19px;
    top: 5px;
    width: 23px;
    height: 23px;
    background: #8B4513;
    border-radius: 50%;
    border: 4px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.timeline-date {
    background: #8B4513;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 1rem;
}

.timeline-content {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-left: 4px solid #8B4513;
}

.timeline-content h4 {
    color: #8B4513;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.timeline-content p {
    color: #555;
    line-height: 1.6;
}

.priest-name {
    font-weight: bold;
    color: #8B4513;
}

.attendance {
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}

/* Progress bar */
.progress-bar {
    position: fixed;
    top: 70px;
    left: 0;
    width: 0%;
    height: 3px;
    background: #ffd700;
    z-index: 999;
    transition: width 0.1s;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #8B4513;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 1.2rem;
    z-index: 1000;
    border: none;
}

.scroll-top.visible {
    opacity: 1;
}

.scroll-top:hover {
    background: #a0522d;
    transform: scale(1.1);
}

/* Animacje */
.content-section {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsywność */
@media (max-width: 1024px) {
    .main-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .toc-container {
        position: static;
        max-height: none;
    }

    .table-of-contents {
        margin-bottom: 2rem;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: linear-gradient(135deg, #8B4513 0%, #a0522d 100%);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: left 0.3s;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: block;
    }

    .hero {
        height: 50vh;
        min-height: 300px;
        background-attachment: scroll;
    }
    
    .content-section {
        margin: 1rem auto;
        padding: 2rem 1rem;
    }
    
    .announcement {
        padding: 1.5rem;
        margin: 1rem 0;
    }
    
    .map-frame {
        height: 300px;
    }

    .content {
        padding: 1.5rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    .table-dark td {
        padding: 0.75rem;
        font-size: 0.9rem;
    }

    .timeline-item {
        padding-left: 60px;
    }

    .timeline::before {
        left: 20px;
    }

    .timeline-item::before {
        left: 9px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    .announcement h2 {
        font-size: 1.5rem;
    }
    
    .map-frame {
        height: 250px;
    }
}