/* ══════════════════════════════════════════════
   DevSpells — RDPSpell Product Page Styles
   ══════════════════════════════════════════════ */

/* Prevent horizontal overflow on mobile */
body {
    overflow-x: hidden;
}

/* ── Product Hero ── */
.product-hero {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px 32px;
    display: flex;
    align-items: center;
    gap: 28px;
    animation: fadeInUp 500ms ease;
    overflow: hidden;
}

.product-hero-icon {
    width: 96px;
    height: 96px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
    object-fit: cover;
}

.product-hero-info {
    flex: 1;
    min-width: 0;
    overflow-wrap: break-word;
}

.product-hero-info h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.product-hero-info h1 span {
    color: var(--accent);
}

.product-hero-info .product-tagline {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
}

.product-hero-info .product-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.product-meta .meta-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.product-meta .meta-tag svg {
    width: 13px;
    height: 13px;
    opacity: 0.7;
}

.meta-tag.platform { color: #0078D4; }
[data-theme="dark"] .meta-tag.platform { color: #60A5FA; }

/* ── Store Button ── */
.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    background: #0078D4;
    color: #FFFFFF;
    text-decoration: none;
}

.store-btn:hover {
    background: #106EBE;
    box-shadow: var(--shadow-md);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.store-btn svg {
    width: 20px;
    height: 20px;
}

/* ── Content Sections ── */
.product-content {
    max-width: 960px;
    width: 100%;
    margin: 0 auto;
    padding: 0 24px 48px;
    overflow: hidden;
}

/* ── Screenshot Gallery ── */
.section-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-tertiary);
    margin-bottom: 20px;
}

.screenshot-gallery {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 16px;
    scroll-snap-type: x mandatory;
    margin-bottom: 40px;
    animation: fadeInUp 500ms ease 100ms backwards;
    -webkit-overflow-scrolling: touch;
}

.screenshot-gallery img {
    height: 340px;
    width: auto;
    max-width: 85vw;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--transition);
    object-fit: contain;
}

.screenshot-gallery img:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ── Features Grid ── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr));
    gap: 14px;
    margin-bottom: 40px;
    animation: fadeInUp 500ms ease 200ms backwards;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    transition: all var(--transition);
}

.feature-item:hover {
    border-color: var(--accent);
    background: var(--accent-light);
}

.feature-icon {
    font-size: 20px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 2px;
}

.feature-text h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
}

.feature-text p {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ── System Requirements ── */
.sys-req {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    animation: fadeInUp 500ms ease 300ms backwards;
}

.sys-req-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
    gap: 16px;
}

.sys-req-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.sys-req-item .req-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-tertiary);
}

.sys-req-item .req-value {
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 500;
}

/* ── Lightbox (image zoom) ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 300ms ease;
    cursor: zoom-out;
}

.lightbox.active {
    opacity: 1;
    pointer-events: auto;
}

.lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transition: transform 300ms ease;
    transform: scale(0.9);
}

.lightbox.active img {
    transform: scale(1);
}

/* ── Responsive: Tablet ── */
@media (max-width: 768px) {
    .product-hero {
        flex-direction: column;
        text-align: center;
        padding: 32px 16px 24px;
        gap: 20px;
    }

    .product-hero-icon {
        width: 72px;
        height: 72px;
        border-radius: 16px;
    }

    .product-hero-info h1 { font-size: 22px; }

    .product-hero-info .product-tagline {
        font-size: 14px;
    }

    .product-hero-info .product-meta {
        justify-content: center;
    }

    .store-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 14px;
    }

    .product-content {
        padding: 0 16px 32px;
    }

    .section-title {
        font-size: 13px;
        margin-bottom: 16px;
    }

    .screenshot-gallery {
        gap: 12px;
        margin-bottom: 32px;
        padding-bottom: 12px;
        /* smooth horizontal scroll on mobile */
        -webkit-overflow-scrolling: touch;
    }

    .screenshot-gallery img {
        height: 220px;
        max-width: 90vw;
        border-radius: var(--radius);
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 32px;
    }

    .feature-item {
        padding: 14px;
        gap: 10px;
    }

    .feature-icon { font-size: 18px; }
    .feature-text h4 { font-size: 13px; }
    .feature-text p { font-size: 12px; }

    .sys-req {
        padding: 20px;
    }

    .sys-req-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .lightbox img {
        max-width: 95vw;
        max-height: 80vh;
        border-radius: var(--radius-sm);
    }
}

/* ── Responsive: Small phones ── */
@media (max-width: 420px) {
    .product-hero {
        padding: 24px 12px 20px;
        gap: 16px;
    }

    .product-hero-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .product-hero-info h1 { font-size: 20px; }

    .product-hero-info .product-tagline {
        font-size: 13px;
        line-height: 1.5;
    }

    .product-meta .meta-tag {
        font-size: 10px;
        padding: 3px 8px;
    }

    .store-btn {
        font-size: 13px;
        padding: 11px 16px;
    }

    .product-content {
        padding: 0 12px 24px;
    }

    .screenshot-gallery {
        gap: 10px;
        margin-bottom: 24px;
    }

    .screenshot-gallery img {
        height: 180px;
        max-width: 95vw;
    }

    .features-grid {
        gap: 8px;
        margin-bottom: 24px;
    }

    .feature-item {
        padding: 12px;
    }

    .sys-req {
        padding: 16px;
    }

    .sys-req-grid {
        gap: 12px;
    }

    .sys-req-item .req-value {
        font-size: 12px;
    }
}
