/* =====================================================
   PURPLE DOG LIGHTBOX STYLES
   ===================================================== */

.pd-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.pd-lightbox.active {
    display: flex;
}

.pd-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(8px);
}

.pd-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.pd-lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 60px rgba(190, 55, 243, 0.4);
    transition: opacity 0.3s ease;
}

.pd-lightbox-counter {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-family: 'Lato', sans-serif;
}

.pd-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 2.5rem;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2;
    line-height: 1;
    padding: 0.5rem;
}

.pd-lightbox-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

.pd-lightbox-prev,
.pd-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    color: #fff;
    background: rgba(190, 55, 243, 0.3);
    border: 2px solid rgba(190, 55, 243, 0.5);
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pd-lightbox-prev:hover,
.pd-lightbox-next:hover {
    opacity: 1;
    background: rgba(190, 55, 243, 0.6);
    border-color: #be37f3;
    transform: translateY(-50%) scale(1.1);
}

.pd-lightbox-prev {
    left: 1.5rem;
}

.pd-lightbox-next {
    right: 1.5rem;
}

/* =====================================================
   APP STORE BUTTONS
   ===================================================== */

.app-stores-section {
    margin: 2.5rem 0;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(190, 55, 243, 0.08) 0%, rgba(190, 55, 243, 0.02) 100%);
    border: 1px solid rgba(190, 55, 243, 0.2);
    border-radius: 16px;
}

.app-stores-section h3 {
    margin-bottom: 0.5rem;
    color: #fff;
    font-size: 1.25rem;
}

.app-stores-section > p {
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.app-store-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.app-store-btn {
    display: inline-block;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.app-store-btn img {
    height: 50px;
    width: auto;
    display: block;
}

.app-store-btn:hover {
    transform: scale(1.05) translateY(-2px);
    filter: brightness(1.1);
}

/* =====================================================
   SCREENSHOTS GALLERY
   ===================================================== */

.screenshots-section {
    margin: 2.5rem 0;
}

.screenshots-section h3 {
    margin-bottom: 1.5rem;
    color: #fff;
    font-size: 1.25rem;
}

.screenshots-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.screenshot-item {
    position: relative;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 9/16;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.screenshot-item:hover {
    border-color: #be37f3;
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(190, 55, 243, 0.4);
}

.screenshot-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(190, 55, 243, 0.5) 0%, rgba(102, 0, 153, 0.5) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-overlay svg {
    width: 32px;
    height: 32px;
    color: #fff;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

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

@media (max-width: 768px) {
    .app-store-buttons {
        justify-content: center;
    }

    .app-store-btn img {
        height: 44px;
    }

    .screenshots-gallery {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.75rem;
    }

    .pd-lightbox-prev,
    .pd-lightbox-next {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .pd-lightbox-prev {
        left: 0.75rem;
    }

    .pd-lightbox-next {
        right: 0.75rem;
    }

    .pd-lightbox-close {
        font-size: 2rem;
        top: 0.5rem;
        right: 0.75rem;
    }
}

@media (max-width: 480px) {
    .screenshots-gallery {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .app-stores-section {
        padding: 1.5rem;
    }

    .app-store-btn img {
        height: 40px;
    }
}