/* element-game.css - استایل بازی عنصر شناسی */
.game-single-page {
    padding: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* هدر بازی */
.game-header {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.game-title-section {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.game-icon {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
}

.game-title-section h1 {
    font-size: 28px;
    font-weight: 700;
    color: #2d3436;
    margin: 0 0 5px 0;
}

.game-title-section p {
    color: #636e72;
    font-size: 16px;
    margin: 0;
    max-width: 500px;
}

.game-actions {
    display: flex;
    gap: 15px;
}

.start-game-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.start-game-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.info-btn {
    background: white;
    color: #6c757d;
    border: 2px solid #dee2e6;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-btn:hover {
    border-color: #3498db;
    color: #3498db;
}

/* آمار بازی */
.game-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 20px;
}

.stat-info {
    flex: 1;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2d3436;
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
}

/* پیش نمایش بازی */
.game-preview {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.preview-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 30px;
    text-align: center;
}

.overlay h3 {
    font-size: 24px;
    margin: 0 0 10px 0;
    color: white;
}

.overlay p {
    margin: 0;
    opacity: 0.9;
}

.preview-description {
    padding: 30px;
}

.preview-description h3 {
    font-size: 22px;
    color: #2d3436;
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-description p {
    color: #636e72;
    line-height: 1.8;
    margin-bottom: 25px;
}

.learning-objectives {
    margin: 25px 0;
}

.learning-objectives h4 {
    font-size: 18px;
    color: #2d3436;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.learning-objectives ul {
    margin: 0;
    padding-right: 20px;
}

.learning-objectives li {
    margin-bottom: 10px;
    color: #636e72;
    display: flex;
    align-items: center;
    gap: 10px;
}

.learning-objectives li i {
    color: #2ecc71;
}

.game-instructions {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-top: 25px;
}

.game-instructions h4 {
    font-size: 18px;
    color: #2d3436;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-instructions ol {
    margin: 0;
    padding-right: 20px;
}

.game-instructions li {
    margin-bottom: 10px;
    color: #636e72;
    padding: 5px 0;
}

/* ویژگی‌های بازی */
.game-features {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.game-features h3 {
    font-size: 22px;
    color: #2d3436;
    margin: 0 0 25px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature {
    display: flex;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    background: white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-content {
    flex: 1;
}

.feature-content h4 {
    font-size: 18px;
    color: #2d3436;
    margin: 0 0 8px 0;
}

.feature-content p {
    color: #6c757d;
    font-size: 14px;
    margin: 0;
    line-height: 1.5;
}

/* بخش شروع بازی */
.game-start-section {
    background: linear-gradient(135deg, #3498db 0%, #2c3e50 100%);
    border-radius: 16px;
    padding: 50px;
    text-align: center;
    color: white;
    margin-top: 30px;
}

.start-content h3 {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.start-content p {
    font-size: 18px;
    margin: 0 0 30px 0;
    opacity: 0.9;
}

.main-start-btn {
    background: white;
    color: #3498db;
    border: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.main-start-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* مدال اطلاعات */
.game-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-content {
    background: white;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: #2d3436;
    font-size: 22px;
}

.close-modal {
    background: none;
    border: none;
    font-size: 30px;
    color: #6c757d;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 25px;
}

.game-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 14px;
}

.detail-item i {
    color: #3498db;
    font-size: 16px;
    min-width: 20px;
}

.full-description {
    margin-bottom: 25px;
}

.full-description h4 {
    font-size: 18px;
    color: #2d3436;
    margin: 0 0 10px 0;
}

.full-description p {
    color: #636e72;
    line-height: 1.8;
    margin-bottom: 10px;
}

.requirements {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
}

.requirements h4 {
    font-size: 18px;
    color: #2d3436;
    margin: 0 0 15px 0;
}

.requirements ul {
    margin: 0;
    padding-right: 20px;
}

.requirements li {
    margin-bottom: 8px;
    color: #636e72;
}

.modal-footer {
    padding: 25px;
    border-top: 1px solid #eee;
    text-align: center;
}

.modal-start-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px 40px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.modal-start-btn:hover {
    background: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .game-header {
        flex-direction: column;
        text-align: center;
    }

    .game-title-section {
        flex-direction: column;
        text-align: center;
    }

    .game-actions {
        width: 100%;
        justify-content: center;
    }

    .game-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .game-start-section {
        padding: 30px 20px;
    }

    .main-start-btn {
        width: 100%;
        padding: 15px 20px;
        font-size: 18px;
    }

    .modal-content {
        margin: 10px;
    }
}

@media (max-width: 480px) {
    .game-stats {
        grid-template-columns: 1fr;
    }

    .game-details-grid {
        grid-template-columns: 1fr;
    }
}