/* ===== صفحة إرشادات التعليقات ===== */

/* الصفحة الرئيسية */
.terms-main {
    min-height: calc(100vh - 140px);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem 0;
    position: relative;
}

.terms-main::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="guidelines-bg-pattern" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="1" fill="rgba(126,34,206,0.03)"/><circle cx="15" cy="15" r="0.5" fill="rgba(212,175,55,0.03)"/><circle cx="45" cy="20" r="0.5" fill="rgba(126,34,206,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23guidelines-bg-pattern)"/></svg>');
    opacity: 0.4;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* رأس الصفحة */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #7e22ce 0%, #581c87 100%);
    border-radius: 25px;
    border: 3px solid #d4af37;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="header-stars" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="rgba(212,175,55,0.2)"/><circle cx="10" cy="10" r="0.5" fill="rgba(212,175,55,0.2)"/><circle cx="30" cy="15" r="0.5" fill="rgba(212,175,55,0.2)"/></pattern></defs><rect width="100" height="100" fill="url(%23header-stars)"/></svg>');
    opacity: 0.3;
}

.page-header-content {
    position: relative;
    z-index: 1;
}

.page-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #d4af37;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.page-title i {
    font-size: 2.5rem;
    color: #d4af37;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.5);
}

.page-description {
    font-size: 1.3rem;
    color: #ffffff;
    opacity: 0.9;
    margin: 0;
}

/* حاوية المحتوى */
.terms-content {
    background: #ffffff;
    border-radius: 25px;
    padding: 3rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border: 3px solid #d4af37;
    position: relative;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.terms-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(126, 34, 206, 0.02) 0%, rgba(212, 175, 55, 0.02) 100%);
    border-radius: 25px;
    z-index: -1;
}

/* أقسام المحتوى */
.terms-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid #e2e8f0;
}

.terms-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.terms-section h2 {
    color: #7e22ce;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid #d4af37;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.terms-section h2 i {
    color: #d4af37;
    font-size: 1.5rem;
}

.terms-section h2::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 60px;
    height: 3px;
    background: #d4af37;
}

.terms-text {
    line-height: 1.8;
    color: #374151;
    position: relative;
    z-index: 1;
}

.terms-text h3 {
    color: #8b5cf6;
    font-size: 1.4rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    padding-right: 1rem;
    position: relative;
}

.terms-text h3::before {
    content: '▶';
    color: #d4af37;
    position: absolute;
    right: 0;
    font-size: 0.8rem;
}

.terms-text p {
    margin-bottom: 1.5rem;
    font-size: 1rem;
    text-align: justify;
    color: #4b5563;
}

.terms-text ul {
    margin: 1rem 0;
    padding-right: 2rem;
}

.terms-text li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-right: 1.5rem;
    color: #4b5563;
}

.terms-text li::before {
    content: '•';
    color: #d4af37;
    font-weight: bold;
    position: absolute;
    right: 0;
    font-size: 1.2rem;
}

.terms-text strong {
    color: #7e22ce;
    font-weight: 600;
}

/* تأثيرات الحركة */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.terms-content {
    animation: fadeInUp 0.6s ease-out;
}

.page-header {
    animation: fadeInUp 0.8s ease-out;
}

/* تأثيرات خاصة */
.terms-content::after {
    content: '💬';
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    opacity: 0.3;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.3; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.6; }
}

/* تأثيرات التحويم للعناصر */
.terms-section h2:hover {
    color: #581c87;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.terms-text h3:hover {
    color: #7e22ce;
    transform: translateX(-5px);
    transition: all 0.3s ease;
}

.terms-text li:hover {
    color: #8b5cf6;
    transform: translateX(-3px);
    transition: all 0.3s ease;
}

/* التجاوب */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .page-header {
        padding: 2rem 1.5rem;
        margin-bottom: 2rem;
    }
    
    .page-title {
        font-size: 2.2rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .page-title i {
        font-size: 2rem;
    }
    
    .page-description {
        font-size: 1.1rem;
    }
    
    .terms-content {
        padding: 2rem 1.5rem;
    }
    
    .terms-section h2 {
        font-size: 1.6rem;
    }
    
    .terms-text h3 {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        padding: 1.5rem 1rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .terms-content {
        padding: 1.5rem 1rem;
    }
    
    .terms-section h2 {
        font-size: 1.4rem;
    }
    
    .terms-text h3 {
        font-size: 1.1rem;
    }
    
    .terms-text p {
        font-size: 0.95rem;
    }
}

/* تحسينات إضافية للروابط */
.terms-text a {
    color: #d4af37;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.terms-text a:hover {
    color: #b8941f;
    border-bottom-color: #b8941f;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}
