/* ========================================
   SOFTWARE DETAIL PAGE STYLES
   ======================================== */

/* ---------- BREADCRUMB ---------- */
.breadcrumb-section {
    background: var(--dark);
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gray-light);
}

.breadcrumb a {
    color: var(--gray-light);
}

.breadcrumb a:hover {
    color: var(--white);
}

.breadcrumb i {
    font-size: 10px;
    color: var(--dark-3);
}

.breadcrumb .current {
    color: var(--primary-light);
}

/* ---------- PRODUCT HERO ---------- */
.product-hero {
    background: var(--gradient-3);
    padding: 50px 0 60px;
    position: relative;
    overflow: visible;
}

.product-hero::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 58, 237, 0.12) 0%, transparent 70%);
    top: -300px;
    right: -200px;
}

.product-hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.product-hero-text {
    color: var(--white);
}

.product-badge-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.product-badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-popular {
    background: var(--accent);
    color: var(--dark);
}

.badge-version {
    background: rgba(108, 58, 237, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(108, 58, 237, 0.3);
}

.badge-category {
    background: rgba(14, 165, 233, 0.15);
    color: var(--secondary-light);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.product-title {
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 14px;
    line-height: 1.15;
}

.product-title span {
    color: var(--primary-light);
}

.product-short-desc {
    font-size: 16px;
    color: var(--gray-light);
    line-height: 1.7;
    margin-bottom: 20px;
}

.product-meta-row {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.product-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-light);
}

.product-meta-item i {
    color: var(--primary-light);
    font-size: 16px;
}

.product-meta-item strong {
    color: var(--white);
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-rating .stars {
    display: flex;
    gap: 2px;
}

.product-rating .stars i {
    color: var(--accent);
    font-size: 14px;
}

.product-rating span {
    font-size: 14px;
    color: var(--gray-light);
}

.product-price-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.price-current {
    font-size: 40px;
    font-weight: 900;
    color: var(--accent-light);
    font-family: var(--font-primary);
}

.price-current small {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray-light);
}

.price-old {
    font-size: 20px;
    color: var(--gray);
    text-decoration: line-through;
}

.price-discount {
    background: var(--danger);
    color: var(--white);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.price-note {
    font-size: 12px;
    color: var(--gray);
}

.product-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-buy {
    padding: 15px 36px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: var(--shadow-glow);
}

.btn-buy:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(108, 58, 237, 0.4);
}

.btn-demo {
    padding: 15px 36px;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 16px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-demo:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.btn-wishlist {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--gray-light);
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-wishlist:hover {
    color: var(--danger);
    border-color: var(--danger);
}

.btn-demo-admin { }
.product-demo-info-wrap {
    position: relative;
}
.btn-demo-info { }
.product-demo-credentials {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    padding: 12px 16px;
    background: var(--white);
    color: var(--dark);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--light-2);
    z-index: 100;
    min-width: 220px;
    white-space: nowrap;
}
.product-demo-credentials p {
    margin: 0 0 6px;
    font-size: 13px;
}
.product-demo-credentials p:last-child { margin-bottom: 0; }
.product-demo-credentials code {
    background: var(--light);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

/* Product Image / Preview */
.product-hero-visual {
    position: relative;
}

.product-preview-main {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    cursor: pointer;
}

.product-preview-main img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    display: block;
}

.preview-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.product-preview-main:hover .preview-overlay {
    opacity: 1;
}

.preview-zoom {
    width: 56px;
    height: 56px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 22px;
    transform: scale(0.8);
    transition: var(--transition);
}

.product-preview-main:hover .preview-zoom {
    transform: scale(1);
}

.product-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.product-thumb {
    width: 80px;
    height: 56px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.product-thumb.active,
.product-thumb:hover {
    border-color: var(--primary-light);
    opacity: 1;
}

.product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Product image lightbox */
.product-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.product-lightbox.active {
    opacity: 1;
    visibility: visible;
}
.product-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.92);
    cursor: pointer;
}
.product-lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 95vw;
    max-height: 95vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.product-lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
}
.product-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--white);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}
.product-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* ---------- PRODUCT CONTENT ---------- */
.product-content-section {
    padding: 60px 0 80px;
    background: var(--light);
}

.product-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
    align-items: start;
}

/* Left Content */
.product-main {}

/* Tabs */
.product-tabs {
    display: flex;
    gap: 4px;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 6px;
    border: 1px solid var(--light-2);
    border-bottom: none;
    overflow-x: auto;
}

.product-tab {
    padding: 12px 24px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition);
}

.product-tab:hover {
    color: var(--dark);
    background: var(--light);
}

.product-tab.active {
    background: var(--gradient-1);
    color: var(--white);
}

.product-tab-content {
    background: var(--white);
    border: 1px solid var(--light-2);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    padding: 36px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* Description Tab */
.desc-content h3 {
    font-size: 22px;
    margin-bottom: 14px;
    color: var(--dark);
}

.desc-content p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 16px;
}

.desc-content ul {
    margin-bottom: 20px;
}

.desc-content ul li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 0;
    font-size: 14px;
    color: var(--dark-3);
}

.desc-content ul li i {
    color: var(--success);
    margin-top: 3px;
    flex-shrink: 0;
}

/* Features List */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.feature-item:hover {
    background: rgba(108, 58, 237, 0.06);
    transform: translateX(4px);
}

.feature-item-icon {
    width: 42px;
    height: 42px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    flex-shrink: 0;
}

.feature-item h5 {
    font-size: 14px;
    font-weight: 600;
}

.feature-item p {
    font-size: 12px;
    color: var(--gray);
    margin-top: 2px;
}

/* Screenshots Tab */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.screenshot-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--light-2);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.screenshot-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-md);
}

.screenshot-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.screenshot-item .ss-label {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px 14px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: var(--white);
    font-size: 13px;
    font-weight: 500;
}

/* Reviews Tab */
.reviews-summary {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--light-2);
}

.reviews-score {
    text-align: center;
    min-width: 140px;
}

.reviews-score .big-score {
    font-size: 56px;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-primary);
    line-height: 1;
}

.reviews-score .stars {
    display: flex;
    justify-content: center;
    gap: 3px;
    margin: 8px 0 4px;
}

.reviews-score .stars i {
    color: var(--accent);
    font-size: 16px;
}

.reviews-score p {
    font-size: 13px;
    color: var(--gray);
}

.reviews-bars {
    flex: 1;
}

.review-bar-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.review-bar-label {
    font-size: 13px;
    min-width: 50px;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 4px;
}

.review-bar-label i {
    color: var(--accent);
    font-size: 11px;
}

.review-bar-track {
    flex: 1;
    height: 8px;
    background: var(--light);
    border-radius: 4px;
    overflow: hidden;
}

.review-bar-fill {
    height: 100%;
    background: var(--gradient-1);
    border-radius: 4px;
    transition: width 1s ease;
}

.review-bar-count {
    font-size: 12px;
    color: var(--gray);
    min-width: 24px;
    text-align: right;
}

.review-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--light);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 15px;
}

.review-author h5 {
    font-size: 15px;
    font-weight: 600;
}

.review-author span {
    font-size: 12px;
    color: var(--gray);
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-stars i {
    color: var(--accent);
    font-size: 13px;
}

.review-text {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

.review-helpful {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--gray);
}

.review-helpful button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    background: var(--light);
    border-radius: var(--radius-full);
    font-size: 12px;
    color: var(--gray);
}

.review-helpful button:hover {
    background: rgba(108, 58, 237, 0.1);
    color: var(--primary);
}

/* Changelog Tab */
.changelog-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--light);
    display: flex;
    gap: 20px;
}

.changelog-version {
    min-width: 80px;
}

.changelog-version .ver {
    display: inline-block;
    padding: 4px 12px;
    background: var(--gradient-1);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 700;
}

.changelog-version .date {
    font-size: 11px;
    color: var(--gray);
    margin-top: 4px;
    display: block;
}

.changelog-body ul li {
    font-size: 13px;
    color: var(--dark-3);
    padding: 3px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cl-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
}

.cl-new {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
}

.cl-fix {
    background: rgba(239, 68, 68, 0.12);
    color: var(--danger);
}

.cl-improve {
    background: rgba(14, 165, 233, 0.12);
    color: var(--secondary);
}

/* ---------- SIDEBAR ---------- */
.product-sidebar {}

.sidebar-card {
    background: var(--white);
    border: 1px solid var(--light-2);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 20px;
}

.sidebar-card h4 {
    font-size: 16px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h4 i {
    color: var(--primary);
}

/* Info List */
.info-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--light);
    font-size: 13px;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-label {
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-label i {
    font-size: 14px;
    color: var(--primary-light);
    width: 18px;
    text-align: center;
}

.info-value {
    font-weight: 600;
    color: var(--dark);
}

/* Tech Stack */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tech-tag {
    padding: 5px 12px;
    background: var(--light);
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 500;
    color: var(--dark-3);
    transition: var(--transition);
}

.tech-tag:hover {
    background: rgba(108, 58, 237, 0.1);
    color: var(--primary);
}

/* Support Card */
.support-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--light);
    border-radius: var(--radius-md);
    font-size: 13px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.support-option:hover {
    background: rgba(108, 58, 237, 0.06);
    transform: translateX(4px);
}

.support-option-icon {
    width: 38px;
    height: 38px;
    background: var(--gradient-1);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 15px;
    flex-shrink: 0;
}

/* Related Products */
.related-product {
    display: flex;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--light);
    transition: var(--transition);
}

.related-product:last-child {
    border-bottom: none;
}

.related-product:hover {
    padding-left: 4px;
}

.related-thumb {
    width: 64px;
    height: 52px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
}

.related-thumb-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 20px;
}

.related-info h5 {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
}

.related-info .related-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

/* Guarantee Card */
.guarantee-items {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.guarantee-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--dark-3);
}

.guarantee-item i {
    color: var(--success);
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* ---------- SIMILAR PRODUCTS SECTION ---------- */
.similar-section {
    padding: 70px 0;
    background: var(--white);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px) {
    .product-layout {
        grid-template-columns: 1fr 320px;
    }
}

@media (max-width: 992px) {

    .product-layout {
        grid-template-columns: 1fr;
    }

    .product-title {
        font-size: 32px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .product-actions {
        flex-direction: column;
    }

    .btn-buy,
    .btn-demo {
        width: 100%;
        justify-content: center;
    }

    .reviews-summary {
        flex-direction: column;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .product-tabs {
        flex-wrap: nowrap;
    }
}

/* ========================================
   DETAIL PAGE MOBILE OVERFLOW FIX
   ======================================== */

/* Grid çocuklarının taşmasını engelle */
.product-layout,
.product-main,
.product-sidebar,
.product-hero-inner,
.product-hero-text,
.product-hero-visual,
.product-tab-content,
.sidebar-card {
    min-width: 0;
}

/* Görseller ve kutular ekranı aşmasın */
.product-preview-main img,
.screenshot-item img,
.product-lightbox-content img {
    max-width: 100%;
}

.product-tab-content,
.sidebar-card,
.product-tabs,
.product-preview-main,
.product-thumb,
.screenshot-item,
.info-list li,
.support-option,
.related-product {
    box-sizing: border-box;
}

/* Uzun metinler taşıp genişliği bozmasın */
.product-title,
.product-short-desc,
.desc-content p,
.desc-content h3,
.info-label,
.info-value,
.related-info h5,
.review-text,
.product-tab {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.info-list li {
    gap: 10px;
    flex-wrap: wrap;
}

.info-value {
    text-align: right;
    max-width: 100%;
}

/* Grid kolonlarını güvenli hale getir */
.product-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.product-hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

/* Tablet */
@media (max-width: 992px) {
    .product-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }

    .product-tab-content {
        padding: 24px;
    }
}

/* Mobil */
@media (max-width: 768px) {
    .product-content-section {
        padding: 40px 0 50px;
    }

    .product-hero {
        padding: 30px 0 40px;
    }

    .product-title {
        font-size: 28px;
        line-height: 1.2;
    }

    .product-tabs {
        padding: 4px;
        gap: 4px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .product-tab {
        padding: 10px 14px;
        font-size: 13px;
        flex: 0 0 auto;
    }

    .product-tab-content {
        padding: 18px;
    }

    .sidebar-card {
        padding: 18px;
    }

    .product-thumbs {
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .product-thumb {
        flex: 0 0 80px;
    }

    .reviews-summary {
        gap: 20px;
    }

    .review-header {
        align-items: flex-start;
        gap: 12px;
        flex-direction: column;
    }
}

/* Küçük mobil */
@media (max-width: 576px) {
    .product-tab-content {
        padding: 16px;
    }

    .sidebar-card {
        padding: 16px;
    }

    .product-title {
        font-size: 24px;
    }

    .price-current {
        font-size: 30px;
    }

    .price-row {
        flex-wrap: wrap;
    }

    .reviews-score .big-score {
        font-size: 42px;
    }

    #productReviewForm > div[style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
}