/* أنماط صفحة رحلة مهاجر */
.journey-container {
    position: relative;
    min-height: 100vh;
    padding-top: 80px;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('images/hero.svg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
}

.journey-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.journey-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem;
}

.journey-header {
    text-align: center;
    color: var(--white);
    margin-bottom: 3rem;
    animation: fadeIn 1s ease;
}

.journey-header h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* تنسيق حاوية القصة */
.story-container {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    margin-bottom: 2rem;
    min-height: 500px;
    position: relative;
    transition: all 0.3s ease;
}

.story-screen {
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.story-screen.active {
    display: block;
    opacity: 1;
    animation: fadeIn 0.5s ease;
}

/* اختيار الشخصية */
.character-selection {
    text-align: center;
}

.character-selection h2 {
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.characters {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.character {
    width: 200px;
    padding: 1.5rem;
    border-radius: 10px;
    background-color: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.character.selected {
    border: 3px solid var(--primary-color);
    transform: translateY(-10px);
}

.character-img {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background-color: #f1f1f1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.character h3 {
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.character p {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* أزرار التفاعل */
.journey-button {
    background-color: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
    margin-top: 1rem;
}

.journey-button:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.journey-button:active {
    transform: translateY(-1px);
}

.decision-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* شريط التقدم */
.progress-bar-container {
    margin-top: 2rem;
    color: var(--white);
}

.progress-bar {
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px;
    transition: width 0.5s ease;
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
}

/* مرحلة القصة */
.story-phase {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.phase-header {
    text-align: center;
    margin-bottom: 1rem;
}

.phase-header h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.phase-content {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

.phase-image {
    flex: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.phase-image img {
    width: 100%;
    height: auto;
    display: block;
}

.phase-text {
    flex: 2;
}

.phase-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.character-status {
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.status-bars {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-bar {
    flex: 1;
    min-width: 150px;
}

.status-bar p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.3rem;
}

.status-progress {
    height: 8px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.status-fill {
    height: 100%;
    border-radius: 4px;
}

.status-fill.health {
    background-color: #27ae60;
}

.status-fill.money {
    background-color: #f1c40f;
}

.status-fill.morale {
    background-color: #3498db;
}

.status-fill.safety {
    background-color: #9b59b6;
}

/* النهايات المختلفة */
.ending {
    text-align: center;
    padding: 2rem;
}

.ending.success {
    background-color: rgba(46, 204, 113, 0.1);
    border: 2px solid #27ae60;
}

.ending.failure {
    background-color: rgba(231, 76, 60, 0.1);
    border: 2px solid #c0392b;
}

.ending.neutral {
    background-color: rgba(52, 152, 219, 0.1);
    border: 2px solid #2980b9;
}

.ending h2 {
    margin-bottom: 1.5rem;
    font-size: 2rem;
}

.ending-icon {
    font-size: 4rem;
    margin-bottom: 1.5rem;
}

.ending.success .ending-icon {
    color: #27ae60;
}

.ending.failure .ending-icon {
    color: #c0392b;
}

.ending.neutral .ending-icon {
    color: #2980b9;
}

.restart-button {
    background-color: var(--accent-color);
    margin-top: 2rem;
}

/* تحريكات */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* تصميم متجاوب */
@media screen and (max-width: 768px) {
    .characters {
        flex-direction: column;
        align-items: center;
    }
    
    .phase-content {
        flex-direction: column;
    }
    
    .phase-image {
        width: 100%;
    }
    
    .progress-labels {
        font-size: 0.7rem;
    }
}

