/* ==========================================================================
   ABK Mühendislik - Ürün & Alt Model Detay Stilleri (product-detail.css)
   UI-UX Pro Max Standartları | Responsive, Erişilebilir & Modern
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Breadcrumbs & Hero
   -------------------------------------------------------------------------- */
.product-detail-breadcrumbs {
    padding: 7rem 5% 1.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.product-detail-breadcrumbs a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.product-detail-breadcrumbs a:hover {
    color: var(--primary);
}

.product-detail-breadcrumbs i {
    font-size: 0.75rem;
    margin: 0 0.5rem;
    opacity: 0.6;
}

.product-detail-breadcrumbs span {
    color: var(--primary);
    font-weight: 600;
}

.product-hero-section {
    padding: 1.5rem 5% 3.5rem;
}

.product-hero-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

.product-gallery {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.product-gallery img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.product-gallery:hover img {
    transform: scale(1.04);
}

.product-info-panel {
    display: flex;
    flex-direction: column;
}

.product-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    background: rgba(255, 133, 0, 0.12);
    border: 1px solid rgba(255, 133, 0, 0.25);
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: fit-content;
    margin-bottom: 1.25rem;
}

.product-badge.secondary-badge {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.25);
    color: #0284c7;
}

.product-info-panel h1 {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.5px;
}

.product-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 1.5rem;
}

.product-desc-short {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.product-actions-v2 {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.parent-series-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.6rem;
    border-radius: 8px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.parent-series-link:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--accent-glow);
}

/* --------------------------------------------------------------------------
   2. Alt Modeller (SubProducts) Bölümü - ProductDetail Sayfası
   -------------------------------------------------------------------------- */
.subproducts-section {
    padding: 4rem 5% 6rem;
    background: radial-gradient(circle at top, rgba(255, 133, 0, 0.03), transparent 70%);
    border-top: 1px solid var(--glass-border);
}

.subproducts-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3.5rem;
}

.subproducts-header h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.subproducts-header h2 span {
    color: var(--primary);
}

.subproducts-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Model Gruplama ve Filtreleme (Group Filtering & Section Headers) */
.subp-group-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 auto 3rem;
    max-width: 1000px;
    padding: 0 1rem;
}

.subp-group-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 1.25rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    outline: none;
    user-select: none;
}

.subp-group-pill i {
    font-size: 0.85rem;
    color: var(--primary);
}

.subp-group-pill:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 133, 0, 0.4);
    transform: translateY(-2px);
}

.subp-group-pill.active {
    background: linear-gradient(135deg, #ff9920 0%, #ff8500 100%);
    color: #0a0b0d;
    font-weight: 700;
    border-color: #ff8500;
    box-shadow: 0 6px 20px rgba(255, 133, 0, 0.3);
}

.subp-group-pill.active i {
    color: #0a0b0d;
}

.subp-pill-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 0.45rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
}

.subp-group-pill.active .subp-pill-count {
    background: rgba(0, 0, 0, 0.22);
    color: #0a0b0d;
}

/* Grup Bölüm Başlıkları (Group Section Headers) */
.subproduct-group-block {
    margin-bottom: 3.5rem;
}

.subproduct-group-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.8rem;
    padding-bottom: 0.85rem;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08);
}

.subp-gh-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.subp-gh-title i {
    font-size: 1.25rem;
    color: var(--primary);
    background: rgba(255, 133, 0, 0.12);
    padding: 0.5rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 133, 0, 0.25);
}

.subp-gh-title h3 {
    font-size: 1.45rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
    letter-spacing: -0.3px;
}

.subp-gh-badge {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

.subproduct-group-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(10, 11, 13, 0.82);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 133, 0, 0.4);
    color: #ff9920;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.7rem;
    border-radius: 8px;
    z-index: 2;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.subproduct-group-tag i {
    font-size: 0.65rem;
    margin-right: 3px;
}

/* Alt Modeller Grid */
.subproducts-grid {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Alt Model Kartı */
.subproduct-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-card);
    text-decoration: none;
    color: inherit;
    position: relative;
}

.subproduct-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.subproduct-card-img {
    height: 220px;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.subproduct-card-img img {
    max-height: 180px;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.subproduct-card:hover .subproduct-card-img img {
    transform: scale(1.08);
}

.subproduct-badge-float {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 133, 0, 0.12);
    border: 1px solid rgba(255, 133, 0, 0.3);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    text-transform: uppercase;
}

.subproduct-card-body {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.subproduct-code {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 0.35rem;
    letter-spacing: -0.2px;
}

.subproduct-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.subproduct-desc {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.subproduct-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.25rem;
    border-top: 1px solid var(--glass-border);
}

.subproduct-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}

.subproduct-card:hover .subproduct-btn {
    transform: translateX(4px);
    color: var(--primary-light);
}

/* --------------------------------------------------------------------------
   3. SubProductDetail - Alt Model Teknik Özellik & Doküman Detayları
   -------------------------------------------------------------------------- */
.subproduct-details-content {
    padding: 2rem 5% 6rem;
    max-width: 1400px;
    margin: 0 auto;
}

.subproduct-tabs-wrapper {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 3rem;
}

.subproduct-tab-btn {
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.8rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.subproduct-tab-btn:hover {
    color: var(--text-main);
}

.subproduct-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.subproduct-tab-pane {
    display: none;
}

.subproduct-tab-pane.active {
    display: block;
    animation: fadeIn 0.3s ease forwards;
}

/* Teknik Özellikler Tablosu */
.specs-table-container {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
}

.specs-table tr {
    border-bottom: 1px solid var(--glass-border);
    transition: background 0.2s ease;
}

.specs-table tr:last-child {
    border-bottom: none;
}

.specs-table tr:hover {
    background: rgba(255, 133, 0, 0.04);
}

.spec-label {
    width: 35%;
    padding: 1.25rem 2rem;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
    background: rgba(255, 255, 255, 0.015);
    border-right: 1px solid var(--glass-border);
}

.spec-value {
    padding: 1.25rem 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.spec-full, .spec-desc {
    padding: 1.25rem 2rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Dokümanlar Grid */
.doc-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.subproduct-doc-card {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow-card);
}

.subproduct-doc-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
}

.doc-card-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 12px;
    background: rgba(255, 133, 0, 0.12);
    border: 1px solid rgba(255, 133, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.4rem;
    transition: var(--transition);
}

.subproduct-doc-card:hover .doc-card-icon {
    background: var(--primary);
    color: #ffffff;
    transform: scale(1.05);
}

.doc-card-info {
    flex: 1;
    min-width: 0;
}

.doc-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.doc-card-type {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.doc-card-download-icon {
    color: var(--text-muted);
    font-size: 1.1rem;
    transition: var(--transition);
}

.subproduct-doc-card:hover .doc-card-download-icon {
    color: var(--primary);
    transform: translateY(2px);
}

/* Sibling Models (Aynı Serideki Diğer Modeller) */
.sibling-models-section {
    margin-top: 5rem;
    padding-top: 3.5rem;
    border-top: 1px solid var(--glass-border);
}

.sibling-models-section h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2rem;
}

/* --------------------------------------------------------------------------
   4. Light Mode Overrides (UI-UX Pro Max WCAG AAA/AA)
   -------------------------------------------------------------------------- */
[data-theme="light"] .product-detail-breadcrumbs a {
    color: #64748b;
}

[data-theme="light"] .product-detail-breadcrumbs span {
    color: var(--primary);
}

[data-theme="light"] .product-gallery,
[data-theme="light"] .subproduct-card,
[data-theme="light"] .specs-table-container,
[data-theme="light"] .subproduct-doc-card {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .subproduct-card:hover,
[data-theme="light"] .subproduct-doc-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .product-info-panel h1,
[data-theme="light"] .subproducts-header h2,
[data-theme="light"] .subproduct-code,
[data-theme="light"] .doc-card-title,
[data-theme="light"] .sibling-models-section h3 {
    color: #0f172a !important;
}

[data-theme="light"] .product-desc-short,
[data-theme="light"] .subproducts-header p,
[data-theme="light"] .subproduct-desc,
[data-theme="light"] .spec-value,
[data-theme="light"] .spec-full,
[data-theme="light"] .spec-desc,
[data-theme="light"] .doc-card-type {
    color: #475569 !important;
}

[data-theme="light"] .spec-label {
    background: #f8fafc;
    color: #0f172a;
    border-right: 1px solid #e2e8f0;
}

[data-theme="light"] .specs-table tr {
    border-bottom: 1px solid #f1f5f9;
}

[data-theme="light"] .subproduct-card-img {
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
}

[data-theme="light"] .subproduct-card-footer {
    border-top: 1px solid #f1f5f9;
}

[data-theme="light"] .subproduct-tab-btn {
    color: #64748b;
}

[data-theme="light"] .subproduct-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

[data-theme="light"] .parent-series-link {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #0f172a;
}

[data-theme="light"] .parent-series-link:hover {
    background: #fff7ed;
    border-color: var(--primary);
    color: var(--primary);
}

[data-theme="light"] .subproducts-section {
    border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .sibling-models-section {
    border-top: 1px solid #e2e8f0;
}

[data-theme="light"] .subp-group-pill {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #475569;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .subp-group-pill:hover {
    color: #0f172a;
    border-color: var(--primary);
    background: #fff7ed;
}

[data-theme="light"] .subp-group-pill.active {
    background: linear-gradient(135deg, #ff9920 0%, #ff8500 100%) !important;
    color: #000000 !important;
    box-shadow: 0 6px 18px rgba(255, 133, 0, 0.28) !important;
}

[data-theme="light"] .subp-group-pill.active i {
    color: #000000 !important;
}

[data-theme="light"] .subp-pill-count {
    background: #e2e8f0;
    color: #475569;
}

[data-theme="light"] .subproduct-group-header {
    border-bottom-color: #e2e8f0;
}

[data-theme="light"] .subp-gh-title h3 {
    color: #0f172a !important;
}

[data-theme="light"] .subp-gh-badge {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #475569;
}

[data-theme="light"] .subproduct-group-tag {
    background: rgba(255, 255, 255, 0.95);
    border-color: rgba(255, 133, 0, 0.4);
    color: #c2410c;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08);
}

/* --------------------------------------------------------------------------
   5. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
    .product-hero-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .product-info-panel h1 {
        font-size: 2.2rem;
    }

    .subproducts-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .spec-label {
        width: 40%;
        padding: 1rem;
    }

    .spec-value {
        padding: 1rem;
    }
}

@media (max-width: 600px) {
    .product-detail-breadcrumbs {
        padding-top: 5.5rem;
    }

    .product-gallery {
        padding: 1.5rem;
    }

    .product-info-panel h1 {
        font-size: 1.85rem;
    }

    .subproducts-header h2 {
        font-size: 1.85rem;
    }

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

    .subproduct-tabs-wrapper {
        flex-direction: column;
        gap: 0;
    }

    .subproduct-tab-btn {
        width: 100%;
        text-align: left;
        padding: 0.8rem 1rem;
    }
}

/* --------------------------------------------------------------------------
   8. Sıkça Sorulan Sorular (Category FAQs Accordion)
   -------------------------------------------------------------------------- */
.product-faq-section {
    padding: 5rem 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.faq-section-header {
    text-align: center;
    max-width: 750px;
    margin: 0 auto 3.5rem;
}

.faq-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    background: rgba(255, 133, 0, 0.1);
    border: 1px solid rgba(255, 133, 0, 0.25);
    color: var(--primary);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.faq-section-header h2 {
    font-size: 2.35rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.85rem;
    line-height: 1.25;
}

.faq-section-header h2 span {
    color: var(--primary);
}

.faq-section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.faq-accordion-wrapper {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.faq-accordion-item {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-card);
}

.faq-accordion-item:hover {
    border-color: rgba(255, 133, 0, 0.4);
    transform: translateY(-2px);
}

.faq-accordion-item.active {
    border-color: var(--primary);
    box-shadow: 0 10px 30px rgba(255, 133, 0, 0.12);
}

.faq-accordion-trigger {
    width: 100%;
    padding: 1.4rem 1.75rem;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    cursor: pointer;
    text-align: left;
    transition: color 0.25s ease;
}

.faq-question-title {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.4;
}

.faq-question-icon {
    color: var(--primary);
    font-size: 1.15rem;
    flex-shrink: 0;
}

.faq-chevron {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.25s;
    font-size: 0.85rem;
}

.faq-accordion-item.active .faq-chevron {
    transform: rotate(180deg);
    background: var(--primary);
    color: #ffffff;
}

.faq-accordion-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-accordion-item.active .faq-accordion-collapse {
    opacity: 1;
}

.faq-accordion-content {
    padding: 0 1.75rem 1.5rem 3.75rem;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.75;
}

@media (max-width: 768px) {
    .product-faq-section {
        padding: 3.5rem 5%;
    }
    .faq-section-header h2 {
        font-size: 1.85rem;
    }
    .faq-accordion-trigger {
        padding: 1.15rem 1.25rem;
    }
    .faq-question-title {
        font-size: 1rem;
    }
    .faq-accordion-content {
        padding: 0 1.25rem 1.25rem;
    }
}
