/* Story Page Styles */

/* Story Header */
.story-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #303434, #303434);
    border-radius: 20px;
    color: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.3s ease-in-out;
}
a {
    text-decoration: none;
    color: inherit; /* Rengi değiştirmek isterseniz, burada belirtebilirsiniz */
}
.story-header:hover {
    transform: scale(1.02);
}

.story-header h1 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.story-description {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.story-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    flex-wrap: wrap;
}

.story-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.story-meta .level {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
    color: white;
}

.story-meta .reading-time {
    background: linear-gradient(45deg, var(--accent-color), var(--primary-color));
}

/* 🌟 Mobil uyumluluk */
@media (max-width: 768px) {
    .story-header {
        padding: 2rem;
        
    }
    
    .story-header h1 {
        font-size: 2.2rem;
    }

    .story-meta {
        gap: 1rem;
    }
}

/* Story Controls */
.story-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.control-btn {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.control-btn:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

.control-btn i {
    font-size: 1.1rem;
}

/* Story Text */
.story-text {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.story-paragraphs {
    max-width: 800px;
    margin: 0 auto;
}

.paragraph-container {
    position: relative;
    min-height: 400px; /* Minimum yükseklik ekledim */
}

.english-text, .turkish-text {
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 10px;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.3s ease;
    opacity: 0;

}

.english-text {
    opacity: 1;
    visibility: visible;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Dikeyde ortalama */
    align-items: center; /* Yatayda ortalama */
    height: 110vh; /* Sayfa yüksekliği kadar yer kaplar */
}
@media (max-width: 768px) {
    .english-text {
        display: flex;
        flex-direction: column;
        justify-content: center; /* Dikeyde ortalama */
        align-items: center; /* Yatayda ortalama */
        height: auto; /* Yüksekliği sayfa yüksekliğine sınırlama */
        padding: 10px; /* Kenar boşluğu */
        text-align: center; /* Metni ortalama */
    }

    .english-text p {
        font-size: 16px; /* Metin boyutunu mobil için ayarlama */
        line-height: 1.5; /* Satır aralığını ayarlama */
    }
}
.turkish-text {
    opacity: 0;
    visibility: hidden;
}

.english-text.hide {
    opacity: 0;
    visibility: hidden;
}

.turkish-text.show {
    opacity: 1;
    visibility: visible;
}

.english-text p, .turkish-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
    font-size: 1.1rem;
    text-align: justify;
}

.english-text span {
    cursor: pointer;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.english-text span:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--secondary-color);
}

/* Word Translation Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: var(--dark-bg);
    padding: 2rem;
    border-radius: 15px;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    color: var(--text-color);
    font-size: 1.2rem;
    line-height: 1.6;
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: var(--primary-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .paragraph-container {
        min-height: 300px; /* Mobil için daha az minimum yükseklik */
    }


    .story-header {
        padding: 1.5rem;
    }

    .story-header h1 {
        font-size: 2rem;
    }

    .story-description {
        font-size: 1rem;
    }

    .story-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }

    .story-controls {
        flex-direction: column;
    }

    .control-btn {
        width: 100%;
        justify-content: center;
    }

    .story-text {
        padding: 1rem;
    }

    .english-text p, .turkish-text p {
        font-size: 1rem;
    }

    .modal-content {
        width: 95%;
        padding: 1.5rem;
    }
}

@media (max-width: 576px) {
    .story-content {
        padding: 6rem 1rem;
    }

    .story-header h1 {
        font-size: 1.8rem;
    }

    .story-description {
        font-size: 1rem;
    }

    .story-meta {
        flex-direction: column;
        align-items: center;
    }

    .story-text {
        padding: 1rem;
    }
} 