@import url("/assets/vendor/photoswipe/photoswipe.css");

/* Active nav link for this page */
.nav a.active {
    background: #ffcccb;
}

/* ===== Page Hero ===== */
.page-hero {
    background: linear-gradient(180deg, var(--sky-light) 0%, var(--sky-mid) 100%);
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23fffef5' d='M0,30 C200,60 400,0 600,30 C800,60 1000,0 1200,30 C1300,45 1400,15 1440,30 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom;
    background-size: cover;
}

.page-hero .cloud {
    position: absolute;
    background: white;
    border-radius: 100px;
    opacity: 0.7;
}

.page-hero .cloud::before,
.page-hero .cloud::after {
    content: '';
    position: absolute;
    background: white;
    border-radius: 50%;
}

.page-hero .cloud-1 {
    width: 100px;
    height: 35px;
    top: 25%;
    left: 8%;
}
.page-hero .cloud-1::before { width: 40px; height: 40px; top: -20px; left: 18px; }
.page-hero .cloud-1::after { width: 30px; height: 30px; top: -12px; left: 50px; }

.page-hero .cloud-2 {
    width: 80px;
    height: 28px;
    top: 35%;
    right: 12%;
}
.page-hero .cloud-2::before { width: 32px; height: 32px; top: -16px; left: 12px; }
.page-hero .cloud-2::after { width: 24px; height: 24px; top: -10px; left: 38px; }

.page-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-hero h1 {
    color: var(--text-dark);
    margin-bottom: 12px;
    text-shadow: 2px 2px 0 rgba(255,255,255,0.5);
}

.page-hero .subtitle {
    font-size: 1.2rem;
    color: var(--text-mid);
    margin-top: 8px;
}

.breadcrumbs {
    font-size: 0.95rem;
    color: var(--text-mid);
}

.breadcrumbs a {
    color: var(--accent-blue);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

/* ===== Main Content ===== */
.main-content {
    padding: 60px 0 80px;
}

/* Gallery Categories Grid */
.gallery-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.category-card {
    position: relative;
    display: block;
    border-radius: 24px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    text-decoration: none;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card);
}

.category-card .card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    transition: transform 0.4s ease;
}

.category-card .card-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-card .category-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.category-card:hover .card-bg {
    transform: scale(1.1);
}

.category-card.dzive .card-bg { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); }
.category-card.studijas .card-bg { background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%); }
.category-card.sports .card-bg { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); }
.category-card.maksla .card-bg { background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); }
.category-card.svetki .card-bg { background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%); }

.category-card .card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(0deg, rgba(0,0,0,0.7) 0%, transparent 100%);
}

.category-card h3 {
    color: white;
    margin-bottom: 4px;
    font-size: 1.5rem;
}

.category-card .count {
    color: rgba(255,255,255,0.8);
    font-size: 0.95rem;
}

/* Gallery Grid (example photos) */
.gallery-section {
    background: white;
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-soft);
}

.gallery-section h2 {
    color: var(--accent-red);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.gallery-section h2 .icon {
    font-size: 1.4em;
}

.gallery-section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 24px;
}

.gallery-section-header h2 {
    margin-bottom: 10px;
}

.gallery-section-description {
    margin: 0;
    max-width: 52rem;
    color: var(--text-mid);
}

.gallery-section-cta {
    align-self: flex-start;
    flex-shrink: 0;
    margin-top: 4px;
}

.gallery-instagram-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding-inline: 20px 22px;
    border: 1px solid rgba(41, 147, 224, 0.16);
    background: linear-gradient(180deg, #fff 0%, #fffaf8 100%);
    color: var(--text-dark);
    box-shadow: 0 10px 22px rgba(41, 147, 224, 0.12);
    text-decoration: none;
}

.gallery-instagram-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(41, 147, 224, 0.16);
    text-decoration: none;
    color: var(--text-dark);
}

.gallery-instagram-cta__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.gallery-instagram-cta__icon img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.gallery-instagram-cta__label {
    white-space: nowrap;
    font-weight: 800;
    font-size: 1rem;
}

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

.gallery-card {
    display: block;
}

.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-card);
}

.gallery-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

.gallery-item-badge {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 2;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.92);
    color: var(--text-dark);
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1;
}

.gallery-item img,
.gallery-item .placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    transition: transform 0.3s ease;
}

.gallery-item:hover img,
.gallery-item:hover .placeholder {
    transform: scale(1.1);
}

/* Placeholder colours */
.gallery-item:nth-child(1) .placeholder { background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%); }
.gallery-item:nth-child(2) .placeholder { background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%); }
.gallery-item:nth-child(3) .placeholder { background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%); }
.gallery-item:nth-child(4) .placeholder { background: linear-gradient(135deg, #fce4ec 0%, #f8bbd9 100%); }
.gallery-item:nth-child(5) .placeholder { background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%); }
.gallery-item:nth-child(6) .placeholder { background: linear-gradient(135deg, #e0f7fa 0%, #b2ebf2 100%); }
.gallery-item:nth-child(7) .placeholder { background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%); }
.gallery-item:nth-child(8) .placeholder { background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%); }

/* Info notice */
.info-notice {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-radius: 16px;
    padding: 24px 32px;
    margin-top: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-notice .icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.info-notice p {
    margin: 0;
    color: var(--text-dark);
}

.instagram-placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
}

.instagram-placeholder p {
    margin: 0;
}

.page-hero-detail {
    padding-bottom: 72px;
}

.gallery-section-detail {
    padding: 40px;
}

.gallery-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 20px;
}

.gallery-detail-header h2 {
    margin-bottom: 8px;
    color: var(--accent-red);
}

.gallery-detail-header p {
    margin: 0;
}

.gallery-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(41, 147, 224, 0.16);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-dark);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 18px rgba(41, 147, 224, 0.10);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.gallery-back-link::before {
    content: "←";
    font-size: 1rem;
    line-height: 1;
}

.gallery-back-link:hover {
    transform: translateY(-1px);
    border-color: rgba(41, 147, 224, 0.24);
    box-shadow: 0 10px 22px rgba(41, 147, 224, 0.14);
    color: var(--text-dark);
    text-decoration: none;
}

.gallery-grid-detail .gallery-item {
    aspect-ratio: 4 / 3;
}

.pswp__gallery-link {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.pswp__gallery-link:hover {
    background: rgba(255,255,255,0.2);
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .gallery-categories {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-section-header {
        flex-direction: column;
    }

    .gallery-detail-header {
        flex-direction: column;
    }

}

@media (max-width: 600px) {
    .gallery-categories {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-section {
        padding: 28px 24px;
    }

    .gallery-item-badge {
        left: 10px;
        bottom: 10px;
        font-size: 0.75rem;
    }

    .info-notice {
        flex-direction: column;
        text-align: center;
    }
}
