/* =========================================
   POST DETAIL - Szczegóły posta
   ========================================= */

/* Kontener */
.post-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Główna karta posta */
.post-detail-card {
    background: rgba(40, 35, 30, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid var(--col-accent);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 15px 40px rgba(0,0,0,0.5),
        0 8px 20px rgba(0,0,0,0.4),
        inset 0 1px 0 rgba(255,255,255,0.1);
    position: relative;
    animation: fadeInUp 0.6s ease-out;
}

/* Badge z datą */
.post-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.post-badge-date {
    background: linear-gradient(135deg, var(--col-accent) 0%, var(--col-accent-light) 100%);
    color: #000;
    padding: 10px 20px;
    border-radius: 30px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(197, 160, 101, 0.4);
}

/* Główne zdjęcie */
.post-hero-image {
    width: 100%;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.post-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-detail-card:hover .post-hero-image img {
    transform: scale(1.05);
}

/* Treść posta */
.post-content {
    padding: 3rem;
}

/* Tytuł */
.post-detail-title {
    font-family: var(--font-display);
    font-size: 2.8rem;
    font-weight: 600;
    color: var(--col-heading); /* Jasny */
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Meta informacje */
.post-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(197, 160, 101, 0.2);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--col-text-muted); /* Jasny szary */
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.meta-item svg {
    color: var(--col-accent);
}

/* Treść tekstowa */
.post-body {
    font-family: var(--font-body);
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--col-text); /* Jasny */
    margin-bottom: 3rem;
}

.post-body p {
    margin-bottom: 1.5rem;
}

.post-body h2,
.post-body h3,
.post-body h4 {
    font-family: var(--font-heading);
    color: var(--col-heading); /* Jasny */
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.post-body h2 {
    font-size: 2rem;
}

.post-body h3 {
    font-size: 1.6rem;
}

.post-body a {
    color: var(--col-accent);
    text-decoration: underline;
    transition: color 0.3s ease;
}

.post-body a:hover {
    color: var(--col-accent-light);
}

/* Gallery Section */

.post-gallery {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid rgba(197, 160, 101, 0.2);
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--col-accent);
    margin-bottom: 1.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #2c2c2c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(197, 160, 101, 0.2);
    transition: all 0.3s ease;
    aspect-ratio: 4 / 3;
    max-height: 500px;
}

.gallery-item:hover {
    transform: scale(1.05);
    border-color: var(--col-accent);
    box-shadow: 0 10px 25px rgba(197, 160, 101, 0.3);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item {
        aspect-ratio: 16 / 9;
    }
}

/* Przyciski akcji */
.post-actions {
    padding: 2rem 3rem;
    border-top: 2px solid rgba(197, 160, 101, 0.2);
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 30px;
    background: linear-gradient(135deg, var(--col-accent) 0%, var(--col-accent-light) 100%);
    color: #000;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(197, 160, 101, 0.3);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(197, 160, 101, 0.4);
    color: #000;
}

.btn-back svg {
    transition: transform 0.3s ease;
}

.btn-back:hover svg {
    transform: translateX(-5px);
}

/* Animacja wjazdu */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   RESPONSYWNOŚĆ
   ========================================= */

/* Tablet */
@media (max-width: 768px) {
    .post-hero-image {
        height: 350px;
    }

    .post-content {
        padding: 2rem 1.5rem;
    }

    .post-detail-title {
        font-size: 2.2rem;
    }

    .post-meta {
        gap: 1rem;
    }

    .post-body {
        font-size: 1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }

    .post-actions {
        padding: 1.5rem;
    }

    .post-badge {
        top: 10px;
        right: 10px;
    }

    .post-badge-date {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    .post-hero-image {
        height: 250px;
    }

    .post-content {
        padding: 1.5rem 1rem;
    }

    .post-detail-title {
        font-size: 1.8rem;
    }

    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item img {
        height: 200px;
    }
}

.post-gallery,
.dog-gallery-section {
    margin-top: 3rem;
}

.gallery-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #C5A065;
}

.gallery-grid,
.gallery-grid-dog {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.gallery-item,
.gallery-item-dog {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #2c2c2c;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    aspect-ratio: 4 / 3;
}

.gallery-item img,
.gallery-item-dog img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img,
.gallery-item-dog:hover img {
    transform: scale(1.05);
}

.gallery-item.full-image img,
.gallery-item-dog.full-image img {
    object-fit: contain;
    background-color: #1a1a1a;
}

@media (max-width: 768px) {
    .gallery-grid,
    .gallery-grid-dog {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .gallery-item,
    .gallery-item-dog {
        aspect-ratio: 16 / 9;
    }
}

.gallery-item,
.gallery-item-dog {
    max-height: 500px;
}