/* ============================================
   FREEDOM FIGHTERS - COMMON CSS
   File: assets/css/freedom-fighters.css
   Use: सभी 20 Freedom Fighters के topics के लिए
   ============================================ */

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

.page-container {
    max-width: 1200px;
    margin: 20px auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    position: relative;
    contain: content;
}

/* ============================================
   HEADER SECTION
   ============================================ */
.page-header-section {
    background: linear-gradient(135deg, #138808 0%, #ffffff 50%, #ff9933 100%);
    color: #1a5276;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header-section::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" fill="rgba(26,82,118,0.06)"><circle cx="50" cy="50" r="40"/><circle cx="20" cy="20" r="15"/><circle cx="80" cy="80" r="20"/></svg>');
    animation: float 30s linear infinite;
    will-change: transform;
}

@keyframes float {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.page-main-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 1;
    color: #1a5276;
}

.page-sub-title {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto 10px;
    line-height: 1.5;
    position: relative;
    z-index: 1;
    color: #2c3e50;
    font-weight: 600;
}

.page-tagline {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    position: relative;
    z-index: 1;
    margin-top: 10px;
}

/* ============================================
   QUOTE BOX
   ============================================ */
.quote-box {
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    margin: 30px 40px;
    border-radius: 15px;
    padding: 30px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(26, 82, 118, 0.25);
}

.quote-box::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.15);
    font-family: Georgia, serif;
    line-height: 1;
}

.quote-text {
    font-size: 1.3rem;
    color: white;
    font-style: italic;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    line-height: 1.6;
}

.quote-author {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* ============================================
   QUICK FACTS GRID
   ============================================ */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 0 40px 30px;
}

.info-card {
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    color: white;
    padding: 22px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(26, 82, 118, 0.25);
    transition: transform 0.25s ease;
    text-align: center;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card .card-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: 8px;
}

.info-card h4 {
    font-size: 0.95rem;
    margin-bottom: 10px;
    opacity: 0.95;
    font-weight: 500;
}

.info-card p {
    font-size: 1.15rem;
    font-weight: 700;
}

/* ============================================
   CONTENT SECTION
   ============================================ */
.content-section {
    background: #f8f9fa;
    margin: 0 40px 30px;
    padding: 35px;
    border-radius: 15px;
    border-left: 5px solid #1a5276;
}

.content-title {
    color: #2c3e50;
    font-size: 2rem;
    margin-bottom: 25px;
    padding-bottom: 12px;
    border-bottom: 3px solid #1a5276;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-body p {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #444;
}

/* ============================================
   INFO BOXES
   ============================================ */
.info-box {
    background: white;
    padding: 25px 30px;
    border-radius: 12px;
    margin: 20px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    border-left: 5px solid;
    transition: box-shadow 0.25s ease;
}

.info-box:hover {
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
}

.box-1 { border-left-color: #e74c3c; }
.box-2 { border-left-color: #f39c12; }
.box-3 { border-left-color: #3498db; }
.box-4 { border-left-color: #2ecc71; }
.box-5 { border-left-color: #9b59b6; }
.box-6 { border-left-color: #16a085; }
.box-7 { border-left-color: #f1c40f; }
.box-8 { border-left-color: #e67e22; }
.box-9 { border-left-color: #27ae60; }
.box-10 { border-left-color: #8e44ad; }
.box-conclusion { border-left-color: #2c3e50; }

.box-title {
    color: #2c3e50;
    font-size: 1.35rem;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

/* ============================================
   BULLET LIST
   ============================================ */
.info-list {
    list-style-type: none;
    padding-left: 0;
}

.info-list li {
    padding: 9px 0;
    padding-left: 32px;
    position: relative;
    margin-bottom: 6px;
    border-bottom: 1px dashed #eee;
    font-size: 1.02rem;
}

.info-list li:last-child {
    border-bottom: none;
}

.info-list li::before {
    content: "★";
    position: absolute;
    left: 0;
    top: 9px;
    width: 24px;
    height: 24px;
    background: #1a5276;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.75rem;
}

/* ============================================
   TIMELINE STYLE LIST
   ============================================ */
.timeline-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 15px 0;
    position: relative;
}

.timeline-item {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 15px;
    padding: 12px 18px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #1a5276;
    align-items: center;
    transition: all 0.25s ease;
}

.timeline-item:hover {
    background: #e8f4f8;
    transform: translateX(5px);
}

.timeline-year {
    font-weight: 800;
    color: #e67e22;
    font-size: 1.05rem;
}

.timeline-event {
    color: #444;
    font-size: 1rem;
}

/* ============================================
   BOOKS LIST
   ============================================ */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin: 15px 0;
}

.book-card {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    padding: 18px 20px;
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

.book-card:hover {
    border-color: #1a5276;
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(26, 82, 118, 0.15);
}

.book-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.book-info h5 {
    color: #1a5276;
    font-size: 1rem;
    margin-bottom: 4px;
    font-weight: 700;
}

.book-info p {
    color: #666;
    font-size: 0.85rem;
    margin: 0;
}

/* ============================================
   EXAM SPECIAL HIGHLIGHT BOX
   ============================================ */
.exam-special-box {
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    padding: 25px 30px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 5px solid #f39c12;
    border: 2px dashed #f39c12;
}

.exam-special-box .box-title {
    color: #856404;
}

.exam-special-box .info-list li::before {
    background: #f39c12;
    content: "✓";
}

/* ============================================
   REMEMBER BOX (याद रखने योग्य)
   ============================================ */
.remember-box {
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    padding: 25px 30px;
    border-radius: 12px;
    margin: 20px 0;
    border-left: 5px solid #27ae60;
    border: 2px solid #27ae60;
}

.remember-box .box-title {
    color: #1e7e34;
}

.remember-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    margin-top: 15px;
}

.remember-item {
    background: white;
    padding: 12px 18px;
    border-radius: 8px;
    border-left: 4px solid #27ae60;
    font-size: 0.98rem;
    font-weight: 500;
    color: #1e7e34;
}

/* ============================================
   NAVIGATION BUTTONS
   ============================================ */
.page-nav-buttons {
    display: flex;
    gap: 15px;
    margin: 0 40px 20px;
}

.page-btn {
    flex: 1;
    padding: 16px;
    text-align: center;
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.25s ease;
    box-shadow: 0 5px 15px rgba(26, 82, 118, 0.3);
}

.page-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(26, 82, 118, 0.4);
}

/* ============================================
   TOPICS LINK
   ============================================ */
.topics-link-container {
    margin: 0 40px 30px;
    text-align: center;
}

.topics-link {
    display: inline-block;
    padding: 18px 36px;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.25s ease;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.3);
}

.topics-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(44, 62, 80, 0.4);
    background: linear-gradient(135deg, #1a252f 0%, #2c3e50 100%);
}

/* ============================================
   RELATED TOPICS
   ============================================ */
.page-section-title {
    font-size: 1.6rem;
    color: #2c3e50;
    margin: 0 40px 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #1a5276;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 40px 30px;
}

.link-tag {
    padding: 10px 22px;
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    color: #2c3e50;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.25s ease;
    border: 2px solid transparent;
    font-size: 0.95rem;
}

.link-tag:hover {
    background: linear-gradient(135deg, #1a5276 0%, #2980b9 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(26, 82, 118, 0.3);
}

/* ============================================
   PAGE BREADCRUMB
   ============================================ */
.page-path {
    margin: 0 40px 20px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 10px;
    font-size: 0.92rem;
}

.page-path a {
    color: #1a5276;
    text-decoration: none;
}

.page-path a:hover {
    text-decoration: underline;
}

.page-path span {
    color: #7f8c8d;
}

/* ============================================
   UPDATE INFO
   ============================================ */
.update-info {
    text-align: center;
    margin: 20px 40px;
    padding: 14px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    color: #7f8c8d;
    font-style: italic;
    font-size: 0.92rem;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    body { padding: 10px; }
    .page-container { margin: 10px; border-radius: 15px; }
    .page-header-section { padding: 35px 18px; }
    .page-main-title { font-size: 1.9rem; }
    .page-sub-title { font-size: 1.05rem; }

    .quote-box { margin: 20px; padding: 25px 22px; }
    .quote-text { font-size: 1.1rem; }

    .info-grid,
    .content-section,
    .page-nav-buttons,
    .topics-link-container,
    .page-section-title,
    .related-links,
    .page-path,
    .update-info {
        margin-left: 18px;
        margin-right: 18px;
    }

    .info-grid { grid-template-columns: 1fr 1fr; }
    .content-section { padding: 22px; }
    .content-title { font-size: 1.6rem; }
    .page-nav-buttons { flex-direction: column; }
    .topics-link { padding: 14px 25px; font-size: 1rem; }
    .related-links { justify-content: center; }

    .timeline-item {
        grid-template-columns: 70px 1fr;
        gap: 10px;
        padding: 10px 14px;
    }
    .timeline-year { font-size: 0.95rem; }
    .timeline-event { font-size: 0.92rem; }

    .books-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .page-main-title { font-size: 1.5rem; }
    .page-sub-title { font-size: 0.95rem; }
    .info-grid { grid-template-columns: 1fr; }
    .info-card { padding: 18px; }
    .info-card p { font-size: 1rem; }
    .topics-link { padding: 12px 22px; font-size: 0.95rem; }
    .link-tag { padding: 8px 16px; font-size: 0.85rem; }
    .info-list li { font-size: 0.95rem; padding-left: 28px; }
    .box-title { font-size: 1.15rem; }

    .remember-list { grid-template-columns: 1fr; }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    body { background: white; padding: 0; }
    .page-container { box-shadow: none; margin: 0; border-radius: 0; }
    .page-btn, .topics-link { display: none; }
}

/* ============================================
   DARK MODE
   ============================================ */
@media (prefers-color-scheme: dark) {
    body { background: #1a1a1a; color: #e0e0e0; }
    .page-container { background: #2d2d2d; color: #e0e0e0; }
    .content-section { background: #3d3d3d; }
    .info-box { background: #353535; color: #e0e0e0; }
    .content-title, .box-title { color: #ffffff; }
    .content-body p { color: #d0d0d0; }
    .page-path { background: #3d3d3d; }
    .update-info { background: #3d3d3d; color: #b0b0b0; }
    .timeline-item { background: #353535; }
    .timeline-event { color: #d0d0d0; }
    .book-card { background: #353535; border-color: #555; }
    .book-info p { color: #b0b0b0; }
    .exam-special-box { background: #3d3520; }
    .remember-box { background: #1f3d24; }
    .remember-item { background: #2d2d2d; color: #a5d6a7; }
    .page-header-section { background: linear-gradient(135deg, #0d3d1a 0%, #2d2d2d 50%, #8a4d00 100%); }
    .page-main-title { color: #a5d6a7; }
    .page-sub-title { color: #e0e0e0; }
    .page-tagline { color: #b0b0b0; }
}