/* ==============================================
   MODAL V5 - Large Image Focus - IMPROVED
   Tema: Büyük görsel, premium renkler, refined
   ============================================== */

/* Overlay - Premium blur effect */
.product-modal-overlay.modal-v5 {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
}

/* Modal Container - Premium */
.modal-v5 .product-modal {
    max-width: 1000px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Header - Elegant Gradient */
.modal-v5 .modal-header.compact-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
    padding: 1.25rem 1.75rem;
    position: relative;
    border-bottom: none;
}

.modal-v5 .modal-header.compact-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e74c3c, #f39c12, #27ae60, #3498db);
}

.modal-v5 .modal-header.compact-header h2 {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.modal-v5 .modal-header.compact-header .product-category {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    font-size: 0.7rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.modal-v5 .modal-close,
.modal-v5 .header-actions button {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: white;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-v5 .modal-close:hover,
.modal-v5 .header-actions button:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Content Layout */
.modal-v5 .modal-content {
    padding: 1.5rem;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

/* Main Row - Better proportions */
.modal-v5 .product-main-row {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Image Section - Premium Card */
.modal-v5 .product-image-panel {
    background: linear-gradient(145deg, #ffffff 0%, #f1f5f9 100%);
    border: none;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.modal-v5 .product-image-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #e74c3c, #f39c12);
    border-radius: 20px 20px 0 0;
}

.modal-v5 .product-main-image {
    max-height: 240px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
}

.modal-v5 .product-image-panel:hover .product-main-image {
    transform: scale(1.08) translateY(-5px);
}

/* Details Section - Clean & Premium */
.modal-v5 .product-details {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.modal-v5 .product-details p {
    font-size: 0.95rem;
    color: #475569;
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Features - Premium Pills */
.modal-v5 .product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
    padding: 0;
    list-style: none;
}

.modal-v5 .product-features li {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 1px solid #a7f3d0;
    border-radius: 50px;
    font-size: 0.8rem;
    color: #065f46;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-v5 .product-features li:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.2);
}

.modal-v5 .product-features i {
    color: #10b981;
    font-size: 0.75rem;
}

/* Tech Specs Row - Cards Grid */
.modal-v5 .tech-specs-row {
    margin-top: 0;
}

.modal-v5 .tech-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.modal-v5 .spec-group {
    background: white;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.modal-v5 .spec-group:hover {
    border-color: #3b82f6;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.1);
    transform: translateY(-3px);
}

.modal-v5 .spec-group h5 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #94a3b8;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.modal-v5 .spec-group p {
    font-size: 0.85rem;
    color: #1e293b;
    margin: 0;
    font-weight: 500;
}

/* CTA Section - Premium Dark */
.modal-v5 .cta-section,
.modal-v5 .tech-specs-row+div {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2744 100%);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/* Navigation Arrows - Premium */
.modal-v5 .navigation-arrows {
    background: white;
    border: none;
    color: #1e3a5f;
    width: 50px;
    height: 50px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal-v5 .navigation-arrows:hover {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    transform: translateY(-50%) scale(1.15);
    box-shadow: 0 15px 40px rgba(231, 76, 60, 0.3);
}

.modal-v5 .nav-prev {
    left: -60px;
}

.modal-v5 .nav-next {
    right: -60px;
}

/* Share button */
.modal-v5 .native-share-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.modal-v5 .native-share-btn:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Loading Overlay */
.modal-v5 .loading-overlay {
    background: rgba(255, 255, 255, 0.95);
}

/* Responsive */
@media (max-width: 900px) {
    .modal-v5 .product-main-row {
        grid-template-columns: 1fr;
    }

    .modal-v5 .nav-prev {
        left: 10px;
    }

    .modal-v5 .nav-next {
        right: 10px;
    }

    .modal-v5 .navigation-arrows {
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.95);
    }
}

@media (max-width: 600px) {

    /* Modal tam ekran */
    .modal-v5 .product-modal {
        max-width: 100%;
        width: 100%;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
    }

    .modal-v5 .modal-content {
        padding: 0.75rem;
        overflow-y: auto;
        max-height: calc(100vh - 80px);
    }

    /* Header daha kompakt */
    .modal-v5 .modal-header.compact-header {
        padding: 0.75rem 1rem;
    }

    .modal-v5 .modal-header.compact-header h2 {
        font-size: 1.1rem;
    }

    .modal-v5 .modal-header.compact-header .product-category {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    /* Görsel küçültülsün */
    .modal-v5 .product-image-panel {
        min-height: 180px;
        padding: 1rem;
    }

    .modal-v5 .product-main-image {
        max-height: 150px;
    }

    /* Details daha kompakt */
    .modal-v5 .product-details {
        padding: 1rem;
    }

    .modal-v5 .product-details p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    /* Tech specs 1 sütun mobilde */
    .modal-v5 .tech-specs {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .modal-v5 .spec-group {
        padding: 0.75rem;
    }

    /* Features daha küçük */
    .modal-v5 .product-features li {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }

    /* Navigation arrows */
    .modal-v5 .navigation-arrows {
        width: 36px;
        height: 36px;
        font-size: 0.8rem;
    }

    .modal-v5 .nav-prev {
        left: 5px;
    }

    .modal-v5 .nav-next {
        right: 5px;
    }

    /* Close ve share butonları */
    .modal-v5 .modal-close,
    .modal-v5 .native-share-btn {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-height: 36px;
    }

    /* Header row düzeni */
    .modal-v5 .header-title-row {
        flex: 1;
    }

    .modal-v5 .header-actions {
        gap: 0.5rem;
    }
}

/* Çok küçük ekranlar */
@media (max-width: 400px) {
    .modal-v5 .modal-header.compact-header h2 {
        font-size: 0.95rem;
    }

    .modal-v5 .product-features li {
        font-size: 0.65rem;
        padding: 0.35rem 0.6rem;
    }

    .modal-v5 .product-details p {
        font-size: 0.8rem;
    }

    .modal-v5 .native-share-btn span {
        display: none;
    }
}