/* ØªØ­Ø³ÙŠÙ†Ø§Øª Ø¥Ø¶Ø§ÙÙŠØ© Ù„Ù„Ø¬ÙˆØ§Ù„ */
@media (max-width: 767px) {
    /* Ø§Ù„Ù‡ÙŠØ¯Ø± ÙˆØ§Ù„Ù‚Ø§Ø¦Ù…Ø© */
    .top-bar {
        padding: 5px 0;
    }
    
    .breaking-news {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .top-bar-left {
        width: 100%;
        justify-content: space-between;
    }
    
    .currency-rates {
        margin-right: 0;
    }
    
    .main-header {
        padding: 10px 0;
    }
    
    .logo img {
        max-width: 150px;
    }
    
    .main-nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100vh;
        background-color: white;
        z-index: 1000;
        box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
        padding: 20px;
        overflow-y: auto;
    }
    
    .main-nav.active {
        display: block;
    }
    
    .main-nav ul {
        flex-direction: column;
    }
    
    .main-nav li {
        margin: 0 0 15px 0;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .hot-files-bar {
        overflow-x: auto;
        padding: 10px 0;
    }
    
    .hot-files {
        flex-wrap: nowrap;
        padding-bottom: 5px;
    }
    
    .hot-file {
        white-space: nowrap;
        margin-left: 10px;
    }
    
    /* Ø³ØªÙˆØ±ÙŠØ§Øª Ø§Ù„Ø¨Ù„Ø¯Ø§Ù† */
    .country-stories-container {
        padding: 10px 0;
        margin-bottom: 15px;
    }
    
    .country-stories {
        overflow-x: auto;
        padding-bottom: 5px;
        justify-content: flex-start;
        gap: 12px;
        scroll-snap-type: x mandatory;
    }
    
    .country-story {
        margin: 0;
        scroll-snap-align: start;
        min-width: 80px;
    }
    
    .country-flag {
        width: 55px;
        height: 55px;
        margin-bottom: 6px;
        border-width: 2px;
    }
    
    .country-name {
        font-size: 11px;
        line-height: 1.2;
    }
    
    .active-indicator {
        width: 12px;
        height: 12px;
        top: -1px;
        right: -1px;
    }
    
    /* Ø§Ù„Ù…Ø­ØªÙˆÙ‰ Ø§Ù„Ø±Ø¦ÙŠØ³ÙŠ */
    .main-content {
        flex-direction: column;
    }
    
    .content-column {
        width: 100%;
        margin-left: 0;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 20px;
    }
    
    /* Ø§Ù„Ù‚Ø³Ù… Ø§Ù„Ù…Ù…ÙŠØ² */
    .featured-section {
        flex-direction: column;
    }
    
    .main-article {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .side-articles {
        width: 100%;
        flex-direction: column;
    }
    
    .side-article {
        width: 100%;
        margin-bottom: 15px;
    }
    
    /* Ø§Ù„Ø£Ù‚Ø³Ø§Ù… Ø§Ù„Ø®Ø§ØµØ© */
    .special-section {
        margin-bottom: 20px;
    }
    
    .propaganda-items,
    .disappeared-persons {
        flex-direction: column;
    }
    
    .propaganda-item,
    .person-card {
        width: 100%;
        margin-bottom: 15px;
    }
    
    .propaganda-item:last-child,
    .person-card:last-child {
        margin-bottom: 0;
    }
    
    /* Ù‚Ø³Ù… Ø§Ù„ÙÙŠØ¯ÙŠÙˆ */
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .video-item.featured {
        grid-column: auto;
    }
    
    /* Ø§Ù„ÙÙˆØªØ± */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-section {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .footer-section:last-child {
        margin-bottom: 0;
    }
    
    /* Ù…ÙÙƒØ±Ø© Ø³ØªÙŠØ¨ */
    .notebook-popup {
        width: 90%;
        max-width: 350px;
    }
    
    .notebook-popup-content {
        max-height: 80vh;
    }
    
    /* ØªØ­Ø³ÙŠÙ†Ø§Øª Ù„Ù„Ø£Ù‚Ø³Ø§Ù… Ø§Ù„Ø¬Ø¯ÙŠØ¯Ø© */
    .open-investigation .investigation-stats {
        flex-wrap: wrap;
    }
    
    .open-investigation .stat-item {
        width: 50%;
        margin-bottom: 10px;
    }
    
    .open-investigation .investigation-actions {
        flex-direction: column;
    }
    
    .open-investigation .action-btn {
        margin-bottom: 10px;
    }
    
    .audience-grid {
        grid-template-columns: 1fr;
    }
    
    .accidents-list .accident-item {
        flex-direction: column;
    }
    
    .accidents-list .accident-time {
        margin-bottom: 10px;
        padding-left: 0;
        display: flex;
        align-items: center;
        justify-content: flex-start;
    }
    
    .accidents-list .accident-hour {
        margin-left: 10px;
    }
    
    .reporter-reports .reports-grid {
        grid-template-columns: 1fr;
    }
    
    .reels-container {
        padding-bottom: 10px;
    }
    
    .reel-item {
        width: 120px;
    }
    
    .reel-thumbnail {
        width: 120px;
        height: 120px;
    }
    
    .opinion-grid {
        grid-template-columns: 1fr;
    }
    
    /* Ù…Ø¤Ø´Ø± Ø§Ù„ØªÙˆØªØ± Ø§Ù„Ø³ÙŠØ§Ø³ÙŠ */
    .political-tension .tension-tooltip {
        width: 80%;
        max-width: 250px;
    }
}

/* ØªØ­Ø³ÙŠÙ†Ø§Øª Ù„Ù„Ø£Ø¬Ù‡Ø²Ø© Ø§Ù„Ù„ÙˆØ­ÙŠØ© */
@media (min-width: 768px) and (max-width: 991px) {
    .main-content {
        flex-direction: column;
    }
    
    .content-column {
        width: 100%;
        margin-left: 0;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 20px;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .sidebar-section, .political-tension {
        margin-bottom: 0;
    }
    
    .featured-section {
        flex-direction: column;
    }
    
    .main-article {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .side-articles {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .side-article {
        width: 100%;
        margin-bottom: 0;
    }
    
    .propaganda-items,
    .disappeared-persons {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .propaganda-item,
    .person-card {
        width: 100%;
        margin-bottom: 0;
    }
    
    .audience-grid,
    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .opinion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ØªØ­Ø³ÙŠÙ†Ø§Øª Ù„Ù„Ø´Ø§Ø´Ø§Øª Ø§Ù„ÙƒØ¨ÙŠØ±Ø© */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .audience-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .reports-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .opinion-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ØªØ­Ø³ÙŠÙ†Ø§Øª Ù„Ø¯Ø¹Ù… Ø§Ù„Ø§ØªØ¬Ø§Ù‡ Ù…Ù† Ø§Ù„ÙŠÙ…ÙŠÙ† Ø¥Ù„Ù‰ Ø§Ù„ÙŠØ³Ø§Ø± */
html[dir="rtl"] .breaking-news-content {
    animation: marquee-rtl 20s linear infinite;
}

@keyframes marquee-rtl {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* ØªØ­Ø³ÙŠÙ†Ø§Øª Ù„Ù…ÙÙƒØ±Ø© Ø³ØªÙŠØ¨ */
.floating-notebook-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    background-color: #003366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 99;
}

.notebook-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.notebook-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.notebook-popup.active {
    display: flex;
}

.notebook-popup-content {
    background-color: white;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    overflow: hidden;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.notebook-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.notebook-popup-header h3 {
    margin: 0;
    color: #003366;
}

.close-notebook {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #666;
}

.notebook-popup-body {
    padding: 15px;
    overflow-y: auto;
    flex: 1;
}

.empty-notebook {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 0;
    color: #666;
}

.empty-notebook i {
    font-size: 48px;
    margin-bottom: 15px;
    color: #e0e0e0;
}

.notebook-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notebook-article {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
}

.notebook-article:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notebook-article-image {
    width: 80px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    margin-left: 10px;
}

.notebook-article-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.notebook-article-content {
    flex: 1;
}

.notebook-article-content h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
}

.notebook-article-content .article-date {
    font-size: 12px;
    color: #666;
}

.notebook-article-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.notebook-article-actions button {
    background: none;
    border: none;
    color: #003366;
    cursor: pointer;
    font-size: 12px;
    padding: 0;
}

.notebook-article-actions button.remove-btn {
    color: #ff0000;
}
