/* =============================================
   Terramar Software — Product Page Styles
   ============================================= */

/* --- Product Hero --- */
.product-hero {
    padding: 5rem 0 3rem;
    text-align: center;
}

.product-hero .product-type {
    font-size: 0.85rem;
    color: #c47f08;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
    display: block;
}

.product-hero h1 {
    margin-bottom: 1rem;
}

.product-hero .subtitle {
    font-size: 1.15rem;
    color: #5a5e66;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* --- Product Overview --- */
.product-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    padding: 2rem 0 4rem;
}

.product-description h2 {
    margin-bottom: 1rem;
}

.product-description p {
    margin-bottom: 1rem;
}

.product-screenshot {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(36, 39, 46, 0.06);
    border-radius: 1rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    color: #7a7e87;
    font-size: 0.9rem;
}

.screenshot-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #f0eae0 0%, #e8e2d8 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a09888;
    font-size: 0.85rem;
    border: 1px solid rgba(36, 39, 46, 0.04);
}

/* --- Features Grid --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(36, 39, 46, 0.06);
    border-radius: 1rem;
    padding: 2rem;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.feature-card:hover {
    box-shadow: 0 4px 20px rgba(36, 39, 46, 0.06);
    transform: translateY(-2px);
}

.feature-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
}

.feature-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.feature-card p {
    font-size: 0.93rem;
    color: #6b7080;
    line-height: 1.6;
}

/* --- Availability --- */
.availability {
    text-align: center;
    padding: 4rem 0;
}

.availability h2 {
    margin-bottom: 0.75rem;
}

.availability p {
    color: #6b7080;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.availability .platform-note {
    font-size: 0.9rem;
    color: #9a9da6;
}

/* --- Products Overview Page --- */
.products-intro {
    padding: 5rem 0 2rem;
    text-align: center;
}

.products-intro h1 {
    margin-bottom: 0.75rem;
}

.products-intro p {
    color: #5a5e66;
    font-size: 1.1rem;
    max-width: 520px;
    margin: 0 auto;
}

.product-listing {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(36, 39, 46, 0.06);
    border-radius: 1.25rem;
    padding: 2.5rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 2rem;
    transition: box-shadow 0.2s ease;
}

.product-listing:hover {
    box-shadow: 0 4px 20px rgba(36, 39, 46, 0.06);
}

.product-listing-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
}

.product-listing-info .product-type {
    font-size: 0.8rem;
    color: #c47f08;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: block;
}

.product-listing-info p {
    margin-bottom: 1rem;
    font-size: 0.97rem;
}

.product-listing-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #c47f08;
}

.product-listing-link:hover {
    color: #a06a06;
}

.product-listing-link .arrow {
    transition: transform 0.2s ease;
}

.product-listing-link:hover .arrow {
    transform: translateX(3px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    .product-hero {
        padding: 3.5rem 0 2rem;
    }

    .product-overview {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .product-screenshot {
        order: -1;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .product-listing {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 2rem;
    }
}

/* --- Video Thumbnail --- */
.video-thumbnail {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 16 / 10;
    border-radius: 0.5rem;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(36, 39, 46, 0.08);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.video-thumbnail:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.thumbnail-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.video-thumbnail:hover .play-button {
    transform: translate(-50%, -50%) scale(1.1);
}

.play-button svg {
    width: 100%;
    height: 100%;
}

/* --- Video Modal --- */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.video-modal.active {
    opacity: 1;
    visibility: visible;
}

.video-modal-content {
    position: relative;
    width: 90%;
    max-width: 900px;
    background: #000;
    border-radius: 0.5rem;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.video-modal.active .video-modal-content {
    transform: scale(1);
}

.video-modal-content video {
    width: 100%;
    display: block;
}

.video-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
    padding: 0;
}

.video-modal-close:hover {
    opacity: 1;
}
