/**
 * POTWORÓW - style podstrony
 * Plik: /css/potworow.css
 */

/* Nagłówek strony */
.page-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    padding: 50px 20px;
    text-align: center;
}

.page-header h1 {
    color: #fff;
    font-size: 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0;
}

/* Kontener */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Intro sekcja */
.intro-section {
    padding: 60px 0;
    border-bottom: 1px solid #eee;
    background: #fff;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 50px;
    align-items: start;
}

.intro-text h2 {
    font-size: 28px;
    font-weight: 300;
    color: #1e3a5f;
    margin-bottom: 20px;
    line-height: 1.4;
}

.intro-text h2 strong {
    font-weight: 700;
}

.intro-text p {
    font-size: 15px;
    margin-bottom: 15px;
    color: #555;
    line-height: 1.7;
}

/* Info box */
.info-box {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
}

.info-box h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 15px;
}

.info-table {
    width: 100%;
    font-size: 14px;
    border-collapse: collapse;
}

.info-table td {
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.info-table tr:last-child td {
    border-bottom: none;
}

.info-table td:first-child {
    color: #888;
}

.info-table td:last-child {
    text-align: right;
    font-weight: 600;
    color: #333;
}

/* Linki dla odwiedzających */
.visitor-links {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
}

.visitor-links h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    margin-bottom: 12px;
}

.visitor-links a {
    display: block;
    color: #1e3a5f;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 0;
    transition: color 0.2s;
}

.visitor-links a:hover {
    color: #e53e3e;
}

/* Zig-zag sekcje */
.zigzag-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 450px;
}

.zigzag-section:nth-child(even) .zigzag-image {
    order: 2;
}

.zigzag-section:nth-child(even) .zigzag-content {
    order: 1;
}

.zigzag-image {
    position: relative;
    overflow: hidden;
    background: #ddd;
    min-height: 400px;
}

.zigzag-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.zigzag-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px;
    background: #fff;
}

.zigzag-section:nth-child(even) .zigzag-content {
    background: #f8f9fa;
}

.zigzag-content h3 {
    font-size: 24px;
    font-weight: 300;
    color: #1e3a5f;
    margin-bottom: 20px;
}

.zigzag-content p {
    font-size: 15px;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.8;
}

.zigzag-content p:last-of-type {
    margin-bottom: 0;
}

.source-note {
    font-size: 13px;
    color: #999;
    margin-top: 15px;
    font-style: italic;
}

.source-note a {
    color: #1e3a5f;
}

/* Galerie */
.gallery-section {
    padding: 70px 0;
    background: #fff;
}

.gallery-section--dark {
    background: linear-gradient(180deg, #1a1b23 0%, #24252f 100%);
}

.gallery-header {
    text-align: center;
    margin-bottom: 40px;
}

.gallery-header h2 {
    font-size: 24px;
    font-weight: 300;
    color: #1e3a5f;
    margin: 0 0 8px;
}

.gallery-section--dark .gallery-header h2 {
    color: #fff;
}

.gallery-header p {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.gallery-section--dark .gallery-header p {
    color: rgba(255,255,255,0.6);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.gallery-item {
    position: relative;
    aspect-ratio: 4/3;
    border-radius: 4px;
    overflow: hidden;
    display: block;
    background: #ddd;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

/* Responsive */
@media (max-width: 900px) {
    .intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .info-box {
        max-width: 400px;
    }
    
    .zigzag-section {
        grid-template-columns: 1fr;
        min-height: auto;
    }
    
    .zigzag-image {
        min-height: 300px;
        order: 1 !important;
    }
    
    .zigzag-content {
        order: 2 !important;
        padding: 40px 30px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .page-header h1 {
        font-size: 24px;
    }
    
    .intro-text h2 {
        font-size: 22px;
    }
    
    .zigzag-content {
        padding: 30px 20px;
    }
    
    .zigzag-content h3 {
        font-size: 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
