/* Robotics Story Page Specific Styles */

/* Story Introduction */
.story-intro {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 2px solid #eee;
}

.intro-text {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #444;
    font-style: italic;
}

/* Story Timeline */
.story-timeline {
    position: relative;
    padding-left: 30px;
}

.story-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #3d7ed9, #6a11cb);
    border-radius: 2px;
}

.story-chapter {
    position: relative;
    margin-bottom: 60px;
    padding-left: 30px;
}

.story-chapter::before {
    content: '';
    position: absolute;
    left: -38px;
    top: 0;
    width: 16px;
    height: 16px;
    background-color: #3d7ed9;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 0 3px #3d7ed9;
    z-index: 1;
}

.chapter-header {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.chapter-year {
    background-color: #3d7ed9;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 1.1rem;
    min-width: 80px;
    text-align: center;
}

.chapter-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.chapter-content {
    background-color: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-left: 4px solid #3d7ed9;
}

.chapter-content p {
    margin-bottom: 20px;
    line-height: 1.8;
    color: #444;
}

.chapter-content p:last-child {
    margin-bottom: 0;
}

/* Story Images */
.story-image-container {
    margin: 30px 0;
    text-align: center;
}

.story-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.story-image:hover {
    transform: scale(1.02);
}

.image-caption {
    margin-top: 10px;
    font-size: 0.9rem;
    color: #666;
    font-style: italic;
}

/* Highlight Box */
.highlight-box {
    background-color: #f0f7ff;
    border-left: 4px solid #3d7ed9;
    padding: 25px;
    margin: 30px 0;
    border-radius: 8px;
}

.highlight-box h4 {
    color: #3d7ed9;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.highlight-box ul {
    margin-left: 20px;
}

.highlight-box li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.highlight-box strong {
    color: #333;
}

/* Future Goals */
.future-goals {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.goal-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #e0e0e0;
}

.goal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.goal-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.goal-card h4 {
    color: #3d7ed9;
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.goal-card p {
    color: #555;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Conclusion Text */
.conclusion-text {
    font-size: 1.2rem;
    line-height: 1.8;
    color: #333;
    font-weight: 500;
    text-align: center;
    padding: 30px;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-top: 40px;
    border-left: 4px solid #6a11cb;
}

/* Story Navigation */
.story-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.nav-button {
    display: inline-block;
    padding: 15px 25px;
    background-color: #3d7ed9;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s;
    min-width: 200px;
    text-align: center;
}

.nav-button:hover {
    background-color: #2c5fb4;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.prev-button {
    background-color: #6c757d;
}

.prev-button:hover {
    background-color: #545b62;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.story-chapter {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.story-chapter:nth-child(1) { animation-delay: 0.1s; }
.story-chapter:nth-child(2) { animation-delay: 0.3s; }
.story-chapter:nth-child(3) { animation-delay: 0.5s; }
.story-chapter:nth-child(4) { animation-delay: 0.7s; }

/* Responsive Design */
@media (max-width: 768px) {
    .story-timeline {
        padding-left: 20px;
    }
    
    .story-chapter {
        padding-left: 20px;
    }
    
    .story-chapter::before {
        left: -30px;
    }
    
    .chapter-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .chapter-header h2 {
        font-size: 1.5rem;
    }
    
    .future-goals {
        grid-template-columns: 1fr;
    }
    
    .story-navigation {
        flex-direction: column;
        gap: 20px;
    }
    
    .nav-button {
        width: 100%;
        min-width: auto;
    }
    
    .chapter-content {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .story-timeline::before {
        background: #ccc;
    }
    
    .story-chapter::before {
        border: 2px solid #fff;
        box-shadow: 0 0 0 2px #3d7ed9;
    }
    
    .nav-button, .lang-toggle {
        display: none !important;
    }
    
    .story-image {
        max-width: 400px;
    }
}