/* Ürün Detay Sayfası CSS */
.detail-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 20px 0;
}

.detail-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
}

.detail-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></svg>');
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.detail-title {
    flex: 1;
    position: relative;
    z-index: 2;
}

.detail-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.detail-meta {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.detail-actions {
    position: relative;
    z-index: 2;
}

.detail-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    padding: 12px 24px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
}

.detail-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    padding: 40px;
    background: #f8fafc;
}

.detail-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.detail-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.detail-section:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.detail-section h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-section h3::before {
    content: '';
    width: 8px;
    height: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

.detail-info {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 15px 0;
    border-bottom: 1px solid #f1f5f9;
    transition: all 0.3s ease;
}

.info-item:last-child {
    border-bottom: none;
}

.info-item:hover {
    background: #f8fafc;
    margin: 0 -15px;
    padding: 15px;
    border-radius: 8px;
}

.info-label {
    font-weight: 600;
    color: #4a5568;
    min-width: 120px;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 20px;
}

.info-value {
    flex: 1;
    color: #2d3748;
    font-weight: 500;
    font-size: 1rem;
    line-height: 1.5;
}

.info-value.price {
    font-size: 1.4rem;
    font-weight: 700;
    color: #38a169;
    display: flex;
    align-items: center;
    gap: 8px;
}

.category-badge {
    background: linear-gradient(135deg, #e6f3ff 0%, #cce7ff 100%);
    color: #2b6cb0;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #bee3f8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-var {
    background: linear-gradient(135deg, #c6f6d5 0%, #9ae6b4 100%);
    color: #22543d;
    border: 1px solid #9ae6b4;
}

.status-var::before {
    background: #38a169;
}

.status-az {
    background: linear-gradient(135deg, #fed7aa 0%, #fbb464 100%);
    color: #c05621;
    border: 1px solid #fbb464;
}

.status-az::before {
    background: #ed8936;
}

.status-yok {
    background: linear-gradient(135deg, #fed7d7 0%, #fc8181 100%);
    color: #c53030;
    border: 1px solid #fc8181;
}

.status-yok::before {
    background: #e53e3e;
}

.image-container {
    text-align: center;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px dashed #e2e8f0;
    transition: all 0.3s ease;
}

.image-container:hover {
    border-color: #667eea;
    background: #f0f4f8;
}

.product-image {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    object-fit: cover;
}

.product-image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .detail-header {
        flex-direction: column;
        gap: 20px;
        padding: 25px 20px;
    }

    .detail-title h2 {
        font-size: 1.8rem;
    }

    .detail-meta {
        justify-content: flex-start;
    }

    .detail-actions {
        align-self: flex-start;
    }

    .detail-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 25px 20px;
    }

    .detail-section {
        padding: 20px;
    }

    .info-item {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .info-label {
        min-width: auto;
        margin-right: 0;
        margin-bottom: 5px;
    }

    .info-value.price {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .detail-title h2 {
        font-size: 1.5rem;
    }

    .detail-meta {
        flex-direction: column;
        gap: 10px;
    }

    .detail-section h3 {
        font-size: 1.1rem;
    }

    .category-badge,
    .status-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
}

/* Loading Animation */
.detail-container.loading {
    opacity: 0.7;
    pointer-events: none;
}

.detail-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Hover Effects */
.detail-section {
    position: relative;
    overflow: hidden;
}

.detail-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.detail-section:hover::after {
    left: 100%;
}

/* Print Styles */
@media print {
    .detail-header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
    }

    .detail-actions {
        display: none;
    }

    .detail-grid {
        background: white !important;
    }

    .detail-section {
        box-shadow: none;
        border: 1px solid #e2e8f0;
    }
}