/* COMIC READER STYLES - BRUTALIST DESIGN */

.reader-body {
    background-color: #2C1810;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* === READER NAVIGATION === */
.reader-nav {
    background-color: #2C1810;
    border-bottom: 4px solid #F5F1E8;
}

.reader-nav .nav-container {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
}

.back-link {
    color: #F5F1E8;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 16px 20px;
    border: 2px solid #F5F1E8;
    transition: all 0.2s ease;
}

.back-link:hover {
    background-color: #CD853F;
    border-color: #CD853F;
    color: #F5F1E8;
}

/* Reader burger menu styles */
.reader-burger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-line {
    width: 100%;
    height: 3px;
    background-color: #F5F1E8;
    margin: 3px 0;
    transition: all 0.3s ease;
    transform-origin: center;
}

.reader-burger.active .burger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.reader-burger.active .burger-line:nth-child(2) {
    opacity: 0;
}

.reader-burger.active .burger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.reader-info {
    text-align: center;
    color: #F5F1E8;
}

.comic-title {
    display: block;
    font-size: 20px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #CD853F;
    margin-bottom: 4px;
}

.issue-info {
    display: block;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 1px;
    color: #DAA520;
    text-transform: uppercase;
}

.reader-controls {
    display: flex;
    gap: 12px;
}

.control-btn {
    background-color: #CD853F;
    color: #F5F1E8;
    border: 2px solid #F5F1E8;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.control-btn:hover {
    background-color: #F5F1E8;
    color: #2C1810;
    border-color: #CD853F;
}

/* === COMIC READER CONTAINER === */
.reader-container {
    margin-top: 80px;
    margin-bottom: 0;
    height: calc(100vh - 80px - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    overflow: hidden;
}

.comic-pages {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.comic-page {
    display: none;
    width: 100%;
    height: 100%;
}

.comic-page.active {
    display: flex !important;
    flex-direction: column;
}

.page-image {
    width: 100%;
    background-color: #F5F1E8;
    border: 6px solid #2C1810;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-image:hover {
    box-shadow: 8px 8px 0px #CD853F;
    transform: translate(-4px, -4px);
}

.comic-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background-color: #2C1810;
}

.page-number {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: 800;
    color: #2C1810;
    background-color: #DAA520;
    padding: 8px 12px;
    border: 2px solid #2C1810;
    z-index: 10;
}

.page-caption {
    background-color: #2C1810;
    border: 4px solid #F5F1E8;
    border-top: none;
    padding: 8px 12px;
    text-align: center;
    flex-shrink: 0;
    max-height: 100px;
    overflow-y: auto;
}

.page-caption p {
    color: #F5F1E8;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
    margin: 0 0 8px 0;
}

.caption-description {
    font-size: 22px !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
    line-height: 1.4 !important;
    color: #DAA520 !important;
    margin-top: 8px !important;
}

/* === INTERACTIVE CHOICE BUTTONS === */
.choice-buttons {
    display: flex;
    gap: 16px;
    padding: 16px;
    background-color: #2C1810;
    border: 4px solid #F5F1E8;
    border-top: none;
    justify-content: center;
    flex-shrink: 0;
}

.choice-btn {
    flex: 1;
    max-width: 220px;
    padding: 12px 20px;
    background-color: #F5F1E8;
    border: 4px solid #2C1810;
    color: #2C1810;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
    transition: all 0.2s ease;
    min-height: 50px;
}

.choice-btn:hover {
    transform: translate(-4px, -4px);
    box-shadow: 8px 8px 0px #CD853F;
}

.choice-title {
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.choice-desc {
    font-size: 12px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 1px;
    line-height: 1.3;
    color: #8B6F47;
}

.greet-btn:hover {
    background-color: #DAA520;
    color: #2C1810;
}

.hide-btn:hover {
    background-color: #CD853F;
    color: #F5F1E8;
}

/* Hand choice buttons */
.hand-btn:hover {
    background-color: #8B6F47;
    color: #F5F1E8;
}

/* Respect/Refill choice buttons */
.respect-btn:hover {
    background-color: #DAA520;
    color: #2C1810;
}

.refill-btn:hover {
    background-color: #5D4E37;
    color: #F5F1E8;
}

/* === STORY END SCREEN === */
.story-end-screen {
    background-color: #2C1810;
    border: 6px solid #CD853F;
    padding: 60px 40px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.end-message h2 {
    color: #CD853F;
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 30px;
}

.end-message p {
    color: #F5F1E8;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 20px;
    text-transform: none;
    letter-spacing: 1px;
}

.arabic-text {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #DAA520 !important;
    margin: 30px 0 10px 0 !important;
    font-family: 'Times New Roman', serif !important;
}

.translation {
    font-style: italic !important;
    color: #8B6F47 !important;
    font-size: 14px !important;
    margin-bottom: 30px !important;
}

.cultural-lesson {
    background-color: #F5F1E8;
    color: #2C1810;
    padding: 20px;
    border: 2px solid #CD853F;
    margin: 30px 0;
    font-size: 14px;
    line-height: 1.6;
    text-align: left;
}

.cultural-lesson p {
    color: #2C1810 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
}

.restart-btn {
    background-color: #CD853F;
    color: #F5F1E8;
    border: 4px solid #F5F1E8;
    padding: 16px 32px;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 30px;
}

.restart-btn:hover {
    background-color: #F5F1E8;
    color: #2C1810;
    border-color: #CD853F;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px #DAA520;
}

/* === STORY COMPLETION SECTION === */
.story-completion {
    background-color: #2C1810;
    border: 4px solid #CD853F;
    border-radius: 0;
    padding: 20px;
    margin-top: 16px;
    text-align: center;
}

.completion-message {
    margin-bottom: 20px;
}

.completion-message .arabic-text {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #DAA520 !important;
    margin: 16px 0 8px 0 !important;
    font-family: 'Times New Roman', serif !important;
}

.completion-message .translation {
    font-style: italic !important;
    color: #8B6F47 !important;
    font-size: 12px !important;
    margin-bottom: 16px !important;
}

.completion-text {
    color: #F5F1E8 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    margin: 0 !important;
    text-transform: none !important;
    letter-spacing: 1px !important;
}

/* Remove old placeholder styles */
.page-placeholder,
.page-content,
.panel,
.speech-bubble {
    display: none;
}

/* === PAGE NAVIGATION === */
.page-navigation {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #2C1810;
    border-top: 4px solid #F5F1E8;
    padding: 20px 0;
    z-index: 1000;
}

.nav-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 20px;
    padding: 0 40px;
}

.nav-left,
.nav-right {
    display: flex;
}

.nav-right {
    justify-content: flex-end;
}

.nav-btn {
    background-color: #CD853F;
    color: #F5F1E8;
    border: 2px solid #F5F1E8;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 16px 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-btn:hover:not(:disabled) {
    background-color: #F5F1E8;
    color: #2C1810;
    border-color: #CD853F;
}

.nav-btn:disabled {
    background-color: #5D4E37;
    color: #8B6F47;
    border-color: #8B6F47;
    cursor: not-allowed;
}

.btn-icon {
    font-size: 20px;
    font-weight: 800;
}

.nav-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.page-counter {
    font-size: 24px;
    font-weight: 800;
    color: #F5F1E8;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.current-page {
    color: #CD853F;
}

.separator {
    color: #DAA520;
    margin: 0 8px;
}

.page-dots {
    display: flex;
    gap: 12px;
}

.dot {
    width: 16px;
    height: 16px;
    background-color: #5D4E37;
    border: 2px solid #F5F1E8;
    cursor: pointer;
    font-size: 0;
}

.dot:hover {
    background-color: #DAA520;
}

.dot.active {
    background-color: #CD853F;
}

/* === PROGRESS BAR === */
.progress-bar {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 4px;
    background-color: #5D4E37;
    z-index: 999;
}

.progress-fill {
    height: 100%;
    background-color: #CD853F;
    transition: width 0.3s ease;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .reader-nav .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 0 20px;
    }
    
    /* Show burger menu on mobile */
    .reader-burger {
        display: flex;
        order: 2;
    }
    
    /* Hide reader info on mobile */
    .reader-info {
        display: none;
    }
    
    /* Back link stays visible */
    .back-link {
        font-size: 14px;
        padding: 12px 16px;
        order: 1;
    }
    
    /* Hide reader controls by default on mobile, show as dropdown */
    .reader-controls {
        position: fixed;
        top: 80px;
        right: 0;
        width: 200px;
        background-color: #2C1810;
        flex-direction: column;
        gap: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        border-left: 4px solid #F5F1E8;
        border-bottom: 4px solid #F5F1E8;
        z-index: 1000;
        order: 3;
    }
    
    /* Show reader controls when active */
    .reader-controls.active {
        max-height: 140px;
    }
    
    .control-btn {
        font-size: 14px;
        padding: 18px 20px;
        border: none;
        border-bottom: 2px solid #F5F1E8;
        text-align: center;
        width: 100%;
        background-color: #CD853F;
        color: #F5F1E8;
        transition: all 0.2s ease;
        min-height: 50px;
    }
    
    .control-btn:last-child {
        border-bottom: none;
    }
    
    .control-btn:hover, .control-btn:active {
        background-color: #F5F1E8;
        color: #2C1810;
    }
    
    .comic-title {
        font-size: 16px;
    }
    
    .issue-info {
        font-size: 10px;
    }
    
    .reader-container {
        padding: 10px;
        height: calc(100vh - 80px - 120px);
    }
    
    .page-caption {
        padding: 12px;
        max-height: 140px;
        overflow-y: auto;
    }
    
    .page-caption p {
        font-size: 12px;
        letter-spacing: 1px;
        margin: 0 0 6px 0;
    }
    
    .caption-description {
        font-size: 11px !important;
        line-height: 1.3 !important;
        margin-top: 6px !important;
    }
    
    .page-number {
        font-size: 18px;
        padding: 4px 8px;
        top: 10px;
        right: 10px;
    }
    
    .choice-buttons {
        padding: 16px 12px;
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }
    
    .choice-btn {
        padding: 12px 20px;
        max-width: none;
        width: 100%;
        max-width: 320px;
        min-height: 50px;
        font-size: 14px;
    }
    
    .choice-title {
        font-size: 16px;
        letter-spacing: 1px;
        margin-bottom: 4px;
    }
    
    .choice-desc {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .nav-content {
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        padding: 0 20px;
    }
    
    .nav-btn {
        font-size: 14px;
        padding: 12px 16px;
        gap: 4px;
    }
    
    .page-counter {
        font-size: 18px;
    }
    
    .page-dots {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 250px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .reader-nav .nav-container {
        padding: 0 15px;
        gap: 8px;
    }
    
    .back-link {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .reader-burger {
        width: 25px;
        height: 25px;
    }
    
    .burger-line {
        height: 2px;
        margin: 2px 0;
    }
    
    .reader-controls {
        width: 180px;
    }
    
    .control-btn {
        font-size: 13px;
        padding: 16px 15px;
        min-height: 48px;
    }
    
    .reader-container {
        padding: 8px;
        height: calc(100vh - 80px - 110px);
    }
    
    .page-caption {
        padding: 8px 12px;
        max-height: 100px;
        overflow-y: auto;
    }
    
    .page-caption p {
        font-size: 11px;
        letter-spacing: 1px;
        line-height: 1.3;
        margin: 0 0 5px 0;
    }
    
    .caption-description {
        font-size: 16px !important;
        line-height: 1.3 !important;
        margin-top: 5px !important;
    }
    
    .page-number {
        font-size: 16px;
        padding: 3px 6px;
        top: 8px;
        right: 8px;
    }
    
    .choice-buttons {
        padding: 12px 10px;
        gap: 12px;
        flex-direction: column;
        align-items: center;
    }
    
    .choice-btn {
        padding: 12px 20px;
        max-width: none;
        width: 100%;
        max-width: 320px;
        min-height: 50px;
        font-size: 14px;
    }
    
    .choice-title {
        font-size: 14px;
        margin-bottom: 3px;
    }
    
    .choice-desc {
        font-size: 12px;
        line-height: 1.3;
    }
    
    .nav-content {
        padding: 0 15px;
    }
    
    .nav-btn {
        font-size: 12px;
        padding: 10px 12px;
    }
    
    .btn-text {
        display: none;
    }
    
    .page-counter {
        font-size: 16px;
    }
    
    .page-dots {
        gap: 4px;
        max-width: 200px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Story completion mobile styling */
.story-completion {
    padding: 16px;
    margin-top: 12px;
}

.completion-message .arabic-text {
    font-size: 18px !important;
}

.completion-message .translation {
    font-size: 11px !important;
}

.completion-text {
    font-size: 12px !important;
    line-height: 1.4 !important;
}

.nav-content {
    padding: 0 20px;
} 