/* ========================================
   SINGLE PRODUCT PAGE STYLES
   ======================================== */

.product-single {
    padding: 40px 0 60px;
}

/* Product Header */
.product-header {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 48px 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.1);
    border: 1px solid #bfdbfe;
}

.product-header-title {
    font-size: 42px;
    color: #1a1a1a;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.product-header-subtitle {
    font-size: 20px;
    color: #4b5563;
    margin-bottom: 24px;
    font-weight: 500;
}

.product-header-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.product-meta-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.product-meta-config {
    color: #2563eb;
    border: 1px solid #bfdbfe;
}

.product-meta-language {
    color: #16a34a;
    border: 1px solid #bbf7d0;
}

.product-meta-computer {
    color: #7c3aed;
    border: 1px solid #ddd6fe;
}

.product-meta-os {
    color: #d97706;
    border: 1px solid #fde68a;
}

/* Content Wrapper */
.product-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    margin-bottom: 40px;
}

/* Main Content */
.product-main-content {
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

.product-description {
    color: #374151;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 40px;
}

.product-description p {
    margin-bottom: 16px;
}

.product-description h2,
.product-description h3 {
    color: #1a1a1a;
    margin-top: 32px;
    margin-bottom: 16px;
    font-weight: 700;
}

.product-description h2 {
    font-size: 28px;
}

.product-description h3 {
    font-size: 22px;
}

.product-description ul,
.product-description ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.product-description li {
    margin-bottom: 8px;
}

/* Product Sections */
.product-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 2px solid #e5e7eb;
}

.product-section-title {
    font-size: 28px;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 24px;
}

/* Screenshots */
.product-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.product-screenshot-item {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.product-screenshot-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.product-screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* Videos */
.product-videos {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-video-item {
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.product-video-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    width: 100%;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
}

.product-video-link:hover {
    background: #eff6ff;
    color: #1d4ed8;
}

.product-video-icon {
    font-size: 24px;
}

/* Sidebar */
.product-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-sidebar-box {
    background: #fff;
    padding: 28px;
    border-radius: 16px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #e5e7eb;
}

/* Price */
.product-price {
    font-size: 28px;
    font-weight: 800;
    color: #dc2626;
    text-align: center;
    padding: 16px 0;
}

.product-sidebar-title {
    font-size: 20px;
    color: #1a1a1a;
    font-weight: 700;
    margin-bottom: 20px;
}

.product-sidebar-text {
    color: #6b7280;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Files List */
.product-files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.product-file-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #f9fafb;
    border-radius: 8px;
    text-decoration: none;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
    border: 1px solid #e5e7eb;
}

.product-file-item:hover {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
    transform: translateX(4px);
}

.product-file-icon {
    font-size: 20px;
}

.product-file-name {
    flex: 1;
    word-break: break-word;
}

/* Product Info */
.product-info-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.product-info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 18px;
    border-bottom: 1px solid #f3f4f6;
}

.product-info-item:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.product-info-label {
    font-size: 13px;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-info-value {
    font-size: 15px;
    color: #1a1a1a;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}

/* CTA Box */
.product-sidebar-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
}

.product-cta-btn,
.product-cta-btn:link,
.product-cta-btn:visited,
.product-cta-btn:active {
    display: block;
    text-align: center;
    background: #2563eb !important;
    color: #fff !important;
    padding: 14px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.2);
}

.product-cta-btn:hover,
.product-cta-btn:focus {
    background: #1d4ed8 !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Back Link */
.product-back {
    text-align: center;
    padding-top: 40px;
}

.product-back-link,
.product-back-link:link,
.product-back-link:visited,
.product-back-link:active {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #2563eb !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.product-back-link:hover,
.product-back-link:focus {
    color: #1d4ed8 !important;
    transform: translateX(-4px);
}

/* Responsive */
@media (max-width: 1024px) {
    .product-content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .product-sidebar {
        order: -1;
    }
}

@media (max-width: 768px) {
    .product-header {
        padding: 32px 24px;
    }
    
    .product-header-title {
        font-size: 32px;
    }
    
    .product-main-content {
        padding: 24px;
    }
    
    .product-screenshots {
        grid-template-columns: 1fr;
    }
    
    .product-section-title {
        font-size: 24px;
    }
}

/* Modal Overlay */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* Modal Controls */
.modal-close {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    color: #1a1a1a;
    transition: all 0.2s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

.modal-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    font-size: 48px;
    line-height: 1;
    cursor: pointer;
    color: #1a1a1a;
    transition: all 0.2s ease;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-nav:hover {
    background: #fff;
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

.modal-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    z-index: 10001;
}

/* Video Modal */
.modal-content-video {
    width: 90vw;
    max-width: 1200px;
}

#video-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

#video-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Screenshot hover effect */
.product-screenshot-item {
    cursor: pointer;
    position: relative;
}

.product-screenshot-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.product-screenshot-item:hover::after {
    opacity: 0.9;
}

/* Responsive Modal */
@media (max-width: 768px) {
    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 28px;
        top: 10px;
        right: 10px;
    }
    
    .modal-nav {
        width: 44px;
        height: 44px;
        font-size: 36px;
    }
    
    .modal-prev {
        left: 10px;
    }
    
    .modal-next {
        right: 10px;
    }
    
    .modal-counter {
        bottom: 20px;
        padding: 8px 16px;
        font-size: 14px;
    }
}
