/* public/introduction-styles.css */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=Aref+Ruqaa:wght@400;700&family=Rakkas&display=swap');

* {
    font-family: 'Times New Roman', 'Amiri', serif !important;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-y: auto;
    overflow-x: hidden;
}

body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: #2b323f; border-left: 1px solid #1a1f2e; }
body::-webkit-scrollbar-thumb { background: #8b7355; border-radius: 6px; border: 2px solid #2b323f; }
body::-webkit-scrollbar-thumb:hover { background: #6d5940; }

body {
    background-color: #2b323f;
    font-family: 'Amiri', serif;
    padding: 20px;
    direction: rtl;
}

.page {
    width: 210mm;
    min-height: 297mm;
    height: auto;
    background: #ffffff;
    margin: 0 auto 30px auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: visible;
    page-break-after: always;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.page::before { content: none; }

.introduction-page {
    padding: 18mm 20mm;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.page-no-header .intro-header-simple { display: none; }
.page-no-header { padding-top: 10mm; }

/* Header */
.intro-header {
    text-align: center;
    margin-bottom: 10mm;
    padding-bottom: 4mm;
}

.intro-header-simple {
    text-align: center;
    margin-bottom: 8mm;
    padding-bottom: 3mm;
    border-bottom: 2px solid #8b7355;
}

.ornament-line {
    width: 60mm;
    height: 2px;
    background: linear-gradient(to right, transparent, #8b7355, transparent);
    margin: 5mm auto;
}

.intro-title {
    font-family: 'Times New Roman', 'Amiri', serif;
    font-size: 16pt;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 2mm 0;
}

.intro-title-small {
    font-family: 'Times New Roman', 'Amiri', serif;
    font-size: 14pt;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 1px;
}

/* Image Frame */
.intro-image-frame {
    width: 100%;
    margin: 0 auto 6mm auto;
    padding: 4mm;
    background: linear-gradient(145deg, #faf8f3, #f5f0e8);
    border: 2px solid #8b7355;
    box-shadow: inset 0 0 15px rgba(139,115,85,0.08), 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.intro-image-frame::before {
    content: '';
    position: absolute;
    top: 2mm; left: 2mm; right: 2mm; bottom: 2mm;
    border: 1px solid rgba(139,115,85,0.3);
    pointer-events: none;
}

.intro-image {
    width: 100%;
    height: 55mm;
    object-fit: cover;
    display: block;
    border: 1px solid #8b7355;
    filter: sepia(10%) contrast(1.05);
}

.image-caption {
    text-align: center;
    font-size: 10px;
    color: #666;
    margin-top: 2mm;
    font-style: italic;
    font-family: 'Aref Ruqaa', serif;
}

/* Text */
.intro-text { flex: 1; overflow: visible !important; }

.intro-paragraph {
    font-size: 14pt;
    font-family: 'Times New Roman', 'Amiri', serif;
    line-height: 1.15;
    color: #2c3e50;
    text-align: justify;
    margin-bottom: 3mm;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

/* Quote Box */
.quote-box {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f0e8 100%);
    border-right: 3px solid #8b7355;
    border-left: 3px solid #8b7355;
    padding: 4mm 6mm;
    margin: 4mm 0;
    position: relative;
    box-shadow: 0 2px 6px rgba(139,115,85,0.1);
}

.quote-mark-right { position: absolute; top: -5px; right: 10px; font-size: 40px; color: #8b7355; opacity: 0.3; }
.quote-mark-left { position: absolute; bottom: -15px; left: 10px; font-size: 40px; color: #8b7355; opacity: 0.3; }

.quote-text {
    font-family: 'Times New Roman', 'Amiri', serif;
    font-size: 14pt;
    line-height: 1.15;
    color: #2c3e50;
    text-align: center;
    font-weight: 600;
    margin: 0;
}

/* Section Headers */
.section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4mm;
    margin: 2mm 0 1.5mm 0;
}

.header-ornament { color: #8b7355; font-size: 18px; }

.section-title {
    font-family: 'Times New Roman', 'Amiri', serif;
    font-size: 14pt;
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
}

/* Sections List */
.sections-container {
    background: linear-gradient(145deg, #faf8f3, #f8f5ef);
    border: 2px solid #8b7355;
    padding: 2mm;
    margin: 2mm 0;
    box-shadow: 0 2px 8px rgba(139,115,85,0.08);
    page-break-inside: avoid;
    break-inside: avoid;
}

.section-row {
    display: flex;
    align-items: flex-start;
    gap: 1mm;
    margin-bottom: 1mm;
    padding: 0.5mm;
    background: rgba(255,255,255,0.6);
    border-right: 2px solid #d4c4a8;
}

.section-row:last-child { margin-bottom: 0; }
.section-dot { color: #8b7355; font-size: 12px; flex-shrink: 0; margin-top: 1px; }

.section-content {
    font-size: 12pt;
    font-family: 'Times New Roman', 'Amiri', serif;
    line-height: 1.15;
    color: #2c3e50;
    text-align: justify;
}

.section-content strong { color: #8b7355; font-weight: 700; }

/* About Page */
.about-page {
    padding: 14mm 18mm;
    display: flex;
    flex-direction: column;
}

.about-header { text-align: center; margin-bottom: 8mm; }
.about-ornament-top { color: #8b7355; font-size: 16px; letter-spacing: 6px; margin-bottom: 3mm; }

.about-title {
    font-family: 'Times New Roman', 'Amiri', serif;
    font-size: 16pt;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 2mm 0 4mm 0;
}

.about-ornament-line {
    width: 80mm;
    height: 1.5px;
    background: linear-gradient(to right, transparent, #8b7355, transparent);
    margin: 0 auto;
}

.about-paragraph {
    font-size: 14pt;
    font-family: 'Times New Roman', 'Amiri', serif;
    line-height: 1.15;
    color: #111 !important;
    text-align: justify;
    margin-bottom: 3mm;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.about-section {
    margin-bottom: 4mm;
    padding-bottom: 3mm;
    border-bottom: 1px solid rgba(139,115,85,0.2);
}

.about-section:last-of-type { border-bottom: none; }

.about-section-title {
    font-family: 'Times New Roman', 'Amiri', serif;
    font-size: 14pt;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 2mm;
    display: block;
    text-align: right;
    background: none;
    border: none;
    padding: 0;
}

.about-section-icon { color: #8b7355; font-size: 13px; }

.about-axes {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4mm;
    flex-wrap: wrap;
    margin-top: 2mm;
}

.about-axis {
    font-family: 'Times New Roman', 'Amiri', serif;
    font-size: 12pt;
    color: #2c3e50;
    background: linear-gradient(135deg, #faf8f3, #f0ebe0);
    border: 1px solid #c4a882;
    padding: 1.5mm 5mm;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.about-axis-sep { color: #8b7355; font-size: 10px; opacity: 0.6; }

/* Team */
.team-container {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f0e8 100%);
    border: 2px solid #8b7355;
    padding: 2mm;
    margin: 4mm 0;
}

.team-item {
    font-size: 14pt;
    font-family: 'Times New Roman', 'Amiri', serif;
    line-height: 1.15;
    color: #2c3e50;
    text-align: center;
    padding: 1mm 0;
}

.team-item strong { color: #8b7355; font-weight: 700; }

/* Signature */
.closing-signature {
    text-align: center;
    margin-top: 1mm;
    padding-top: 1mm;
    border-top: 2px solid #8b7355;
}

.signature-ornament { color: #8b7355; font-size: 20px; margin-bottom: 0mm; }

.signature-name {
    font-family: 'Times New Roman', 'Amiri', serif;
    font-size: 14pt;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0mm;
}

.signature-title {
    font-size: 12pt;
    font-family: 'Times New Roman', 'Amiri', serif;
    color: #666;
    font-style: italic;
    margin-bottom: 0mm;
}

.contact-box {
    background: #faf8f3;
    border: 1px solid #8b7355;
    padding: 2mm;
    margin-top: 3mm;
}

.contact-line {
    font-size: 12pt;
    font-family: 'Times New Roman', 'Amiri', serif;
    color: #666;
    text-align: center;
    margin: 1mm 0;
    direction: ltr;
}

.small-text {
    font-size: 12pt;
    font-family: 'Times New Roman', 'Amiri', serif;
    line-height: 1.15;
}

/* Copyright */
.copyright-page { display: flex; flex-direction: column; justify-content: flex-start; }
.copyright-content { margin-top: 3mm; }

.copyright-subtitle {
    font-family: 'Times New Roman', 'Amiri', serif;
    font-size: 14pt;
    color: #8b7355;
    text-align: center;
    margin-bottom: 4mm;
    font-weight: 700;
}

.copyright-box {
    background: linear-gradient(135deg, #faf8f3 0%, #f5f0e8 100%);
    border: 2px solid #8b7355;
    padding: 3mm 4mm;
    margin: 4mm 0 2mm 0;
    text-align: center;
}

.copyright-notice {
    font-size: 12pt;
    font-family: 'Times New Roman', 'Amiri', serif;
    line-height: 1.15;
    color: #2c3e50;
    margin: 0;
}

.pub-rules-section { margin-top: 2mm; }

.pub-rule-block {
    margin-bottom: 1.5mm;
    border: 1px solid #d4c4a8;
    border-radius: 3px;
    overflow: hidden;
}

.pub-rule-title {
    background: linear-gradient(135deg, #8b7355, #6d5940);
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    padding: 1.5mm 1.5mm;
    letter-spacing: 0.5px;
}

.pub-rule-list {
    background: linear-gradient(145deg, #faf8f3, #f8f5ef);
    padding: 1.5mm 2mm;
}

.pub-rule-item {
    display: flex;
    align-items: flex-start;
    gap: 2mm;
    padding: 0.8mm 1mm;
    font-size: 12pt;
    font-family: 'Times New Roman', 'Amiri', serif;
    line-height: 1.15;
    color: #2c3e50;
    border-bottom: 1px dotted #e0d5c5;
}

.pub-rule-item.no-border { border-bottom: none; }
.pub-rule-item:last-child { border-bottom: none; }
.pub-rule-item strong { color: #6d5940; font-weight: 700; }
.pub-dot { color: #8b7355; font-size: 11px; flex-shrink: 0; margin-top: 1px; line-height: 1.7; }

/* Acknowledgments */
.acknowledgments-page {
    padding: 18mm 20mm;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.acknowledgments-header {
    text-align: center;
    margin-bottom: 8mm;
    padding-bottom: 4mm;
    border-bottom: 3px double #8b7355;
}

.acknowledgments-title {
    font-family: 'Times New Roman', 'Amiri', serif;
    font-size: 16pt;
    color: #2c3e50;
    font-weight: 700;
    letter-spacing: 1px;
    margin: 2mm 0;
}

.acknowledgments-content { flex: 1; }

.acknowledgments-text {
    font-size: 14pt;
    font-family: 'Times New Roman', 'Amiri', serif;
    line-height: 1.15;
    color: #2c3e50;
    text-align: justify;
    margin-bottom: 3mm;
    hyphens: none;
    word-break: normal;
    overflow-wrap: normal;
}

.acknowledgments-signature {
    text-align: center;
    margin-top: 8mm;
    padding-top: 4mm;
    border-top: 2px solid #8b7355;
}

.acknowledgments-signature .signature-name {
    font-family: 'Aref Ruqaa', 'Amiri', serif;
    font-size: 16px;
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 2mm;
}

.acknowledgments-signature .signature-title {
    font-size: 12px;
    color: #666;
    font-style: italic;
}

.keep-together {
    page-break-inside: avoid;
    break-inside: avoid;
}

/* Navigation buttons (shared with styles.css) */
.btn-issues-wrapper {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1001;
    font-family: 'Amiri', serif;
}

.btn-issues-main {
    background: #302504;
    color: white;
    border: 2px solid rgba(255,255,255,0.2);
    padding: 6px 18px;
    border-radius: 20px;
    font-family: 'Amiri', serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-issues-main:hover { background: #4a3806; }

.btn-issues-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
    overflow: hidden;
    min-width: 140px;
    border: 1px solid #ddd;
    flex-direction: column;
}

.btn-issues-dropdown.open { display: flex; }

.btn-issues-option {
    display: block;
    padding: 12px 20px;
    color: #302504;
    text-decoration: none;
    font-family: 'Amiri', serif;
    font-size: 15px;
    font-weight: 600;
    text-align: right;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.btn-issues-option:last-child { border-bottom: none; }
.btn-issues-option:hover { background: #f9f4ec; color: #4a3806; }

.menu-button {
    position: fixed;
    top: 20px;
    left: 20px;
    min-width: 65px;
    height: 32px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    z-index: 1001;
    border: 2px solid #333;
}

.menu-button:hover { background: #f5f5f5; }

.menu-text { font-family: 'Amiri', serif; font-size: 0; font-weight: 600; color: #333; white-space: nowrap; }
html[dir="rtl"] .menu-text::before { content: 'القائمة'; font-size: 13px; }
html[dir="ltr"] .menu-text::before { content: 'Menu'; font-size: 13px; }

.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: white;
    box-shadow: 2px 0 15px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: left 0.3s ease;
    padding: 50px 20px 20px 20px;
    overflow-y: auto;
}

.side-menu.active { left: 0; }

.menu-header {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
}

.menu-item {
    width: 100%;
    padding: 15px 20px;
    margin-bottom: 10px;
    background: #f5f5f5;
    border: none;
    border-radius: 5px;
    font-family: 'Amiri', serif;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: right;
    color: #333;
}

.menu-item:hover { background: #e0e0e0; }
.menu-item.active { background: #333; color: white; font-weight: 700; }

/* Page logo header */
.page-logo-header {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    padding: 4px 0;
    margin-bottom: 4px;
    border-bottom: 0.5px solid #3a3636;
    font-size: 10pt;
    font-family: 'Times New Roman', 'Amiri', serif;
}

.page-logo-header img {
    height: 30px;
    width: auto;
    object-fit: contain;
    margin-right: 14px;
}

@media screen and (max-width: 900px) {
    .page {
        width: 100%;
        height: auto;
        min-height: unset;
    }
    .introduction-page,
    .about-page,
    .acknowledgments-page,
    .copyright-page {
        padding: 14px 12px;
    }
    .menu-button { top: 8px; left: 8px; }
    .btn-issues-wrapper { top: 8px; right: 8px; }
}

@media print {
    body { background: #2b323f; padding: 0; }
    .page { box-shadow: none; margin: 0; page-break-after: always; }
    .menu-button, .btn-issues-wrapper, .side-menu { display: none !important; }
}
