/*
Theme Name: Cultural Questions
Description: قالب أسئلة ثقافية تفاعلي مع نظام إدارة محتوى متكامل
Version: 1.0.0
Author: Your Name
Text Domain: cultural-questions
Requires at least: 5.8
Tested up to: 6.3
Requires PHP: 7.4
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

/* الأنماط الأساسية موجودة في main.css */
@import url('assets/css/main.css');

/* أنماط ووردبريس الأساسية */
.wp-block {
    max-width: 100%;
}

.alignwide {
    margin-left: -100px;
    margin-right: -100px;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

/* أنماط الإشعارات */
.cultural-notification {
    position: fixed;
    top: 100px;
    left: 20px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 15px;
    z-index: 10000;
    transform: translateY(-20px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
}

.cultural-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.cultural-notification.success {
    border-right: 4px solid #28a745;
}

.cultural-notification.error {
    border-right: 4px solid #dc3545;
}

.cultural-notification.warning {
    border-right: 4px solid #ffc107;
}

.cultural-notification.info {
    border-right: 4px solid #17a2b8;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.notification-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 5px;
    margin-right: auto;
}

/* أنماط التحميل */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* تحسينات للشاشات الكبيرة */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
}

/* طباعة */
@media print {
    .site-header,
    .site-footer,
    .question-interactions {
        display: none !important;
    }
    
    .question-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}