﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {

}

.container {
    max-width: 1000px;
    margin: 0;
}

/* زر العودة */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

    .back-button:hover {
        transform: translateX(-5px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

/* البطاقة الرئيسية */
.product-details-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.6s ease-out;
}

/* الهيدر مع الصورة */
.product-header {
    position: relative;
    height: 300px;
    overflow: hidden;
}

    .product-header img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .product-header:hover img {
        transform: scale(1.05);
    }

.header-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient( 45deg, rgba(225, 191, 119, 0.4) 0%, rgba(215, 181, 109, 0.4) 100% 100%);
    padding: 30px;
    color: white;
}

.product-title {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    background-color: #ffffff50;
}

.product-meta-header {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    opacity: 0.9;
}

/* المحتوى الرئيسي */
.product-content {
    padding: 40px;
}

/* معلومات المنتج */
.info-section {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
    border-radius: 15px;
}

.info-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5em;
}

.info-text {
    flex: 1;
}

.info-label {
    font-size: 0.85em;
    color: #666;
    margin-bottom: 5px;
}

.info-value {
    font-size: 1.1em;
    color: #333;
    font-weight: 600;
}

.admin-name {
    color: #667eea;
}

.date {
    color: #764ba2;
}

/* وصف المنتج */
.description-section {
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.8em;
    color: #333;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

    .section-title:after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 60px;
        height: 3px;
        background: linear-gradient(90deg, #667eea, #764ba2);
        border-radius: 2px;
    }

.product-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #444;
    background: #f9f9f9;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

/* قسم الفيديو */
.video-section {
    margin-bottom: 30px;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* نسبة 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: none;
    }

/* أزرار الإجراءات */
.action-buttons {
    display: flex;
    gap: 15px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.btn {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
    }

.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
}

    .btn-secondary:hover {
        background: #f0f4ff;
        transform: translateY(-2px);
    }

.btn-danger {
    background: white;
    color: #dc3545;
    border: 2px solid #dc3545;
}

    .btn-danger:hover {
        background: #fff5f5;
        transform: translateY(-2px);
    }

/* أنيميشن */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* رسالة خطأ الصورة */
.image-error {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient( 90deg, rgba(235, 201, 129, 0.4) 0%, rgba(225, 191, 119, 0.4) 100% 100%);
    color: white;
    font-size: 1.2em;
    gap: 10px;
}

/* تحسين للشاشات الصغيرة */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    .product-header {
        height: 200px;
    }

    .product-title {
        font-size: 1.8em;
    }

    .product-content {
        padding: 20px;
    }

    .info-section {
        flex-direction: column;
        gap: 15px;
    }

    .info-item {
        min-width: 100%;
    }

    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* تأثيرات إضافية */
.highlight {
    background: linear-gradient(120deg, #fff6b7 0%, #f8e8a0 100%);
    padding: 2px 5px;
    border-radius: 3px;
}

.product-stats {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #666;
    font-size: 0.9em;
}