/* ============================================
   Product Row Component
   Full-width screenshot with details below (mobile-first)
   ============================================ */

.product-row {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.product-row:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Screenshot Section */
.product-row-screenshot {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.product-row-screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.product-row-screenshot-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-row-screenshot-icon {
    width: 120px;
    height: 120px;
    opacity: 0.3;
}

.product-row-screenshot-icon svg {
    width: 100%;
    height: 100%;
}

/* Details Section */
.product-row-details {
    padding: 1.5rem;
}

.product-row-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.product-row-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(139, 92, 246, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-row-icon svg,
.product-row-icon img {
    width: 24px;
    height: 24px;
}

.product-row-title-group {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.product-row-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.product-row-discount {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    background: rgba(16, 185, 129, 0.2);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #10b981;
}

.product-row-description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

/* Platform Badges */
.platform-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.platform-badge.available {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.platform-badge.coming-soon {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
}

.platform-badge-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.platform-badge-icon img,
.platform-badge-icon svg {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* Clickable platform badges */
a.platform-badge.available {
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

a.platform-badge.available:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 185, 129, 0.3);
    border-color: rgba(16, 185, 129, 0.6);
    background: rgba(16, 185, 129, 0.25);
}

a.platform-badge.available:active {
    transform: translateY(0);
}

.platform-badge.coming-soon {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Included Products (Bundles) */
.product-row-included {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}

.product-row-included-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.product-row-included-item {
    display: inline-flex;
    padding: 0.25rem 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Testimonials */
.product-row-testimonials {
    margin-bottom: 1rem;
}

.testimonial {
    margin: 0 0 1rem 0;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid #8b5cf6;
    border-radius: 4px;
}

.testimonial:last-child {
    margin-bottom: 0;
}

.testimonial-quote {
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 0.75rem 0;
    font-size: 0.9375rem;
    line-height: 1.5;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.testimonial-author cite {
    font-style: normal;
    font-weight: 500;
    color: #ffffff;
    font-size: 0.875rem;
}

.testimonial-role {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Features List */
.product-row-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product-row-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

.product-row-check {
    color: #10b981;
    flex-shrink: 0;
}

/* Actions */
.product-row-actions {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.product-row-actions .button {
    width: 100%;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.icon-right {
    transition: transform 0.2s ease;
}

.product-row-actions .button:hover .icon-right {
    transform: translateX(4px);
}

/* Bundle Variant */
.product-row.product-row-bundle {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(16, 185, 129, 0.05));
    border-color: rgba(16, 185, 129, 0.2);
}

.product-row.product-row-bundle:hover {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 8px 32px rgba(16, 185, 129, 0.1);
}

.product-row-bundle .product-row-icon {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(16, 185, 129, 0.1));
    color: #10b981;
}

/* Container for Multiple Rows */
.products-rows {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsive: Desktop Layout */
@media (min-width: 768px) {
    .product-row-details {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
    }

    .product-row-main {
        /* Main content on left */
    }

    .product-row-sidebar {
        /* Features sidebar on right */
    }

    .product-row-actions .button {
        width: auto;
        justify-content: flex-start;
    }
}

@media (min-width: 1024px) {
    .product-row-screenshot {
        aspect-ratio: 21 / 9; /* Wider on desktop */
    }

    .product-row-details {
        padding: 2rem;
    }
}
