/**
 * Responsive CSS for STI Newsroom Flow Theme
 * @package STI_Newsroom_Flow
 * @since 1.0.0
 */

/* Tablet and below */
@media (max-width: 1024px) {
    .container {
        padding: 0 1rem;
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-widgets {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile devices */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    
    /* Header */
    .header-main {
        flex-direction: column;
        padding: 1rem 0;
    }
    
    .site-logo img {
        max-height: 50px;
    }
    
    /* Top bar */
    .top-bar {
        font-size: 0.75rem;
    }
    
    .top-bar-left,
    .top-bar-right {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    /* Navigation */
    .main-navigation {
        position: relative;
    }
    
    .menu-toggle {
        display: block;
        background: var(--color-primary-red);
        color: var(--color-white);
        border: none;
        padding: 0.75rem 1.5rem;
        cursor: pointer;
        width: 100%;
    }
    
    .menu-wrapper {
        display: none;
    }
    
    .main-navigation ul {
        flex-direction: column;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    /* Content */
    .row {
        flex-direction: column;
    }
    
    .sidebar-left,
    .sidebar {
        max-width: 100%;
        margin-top: 2rem;
    }
    
    /* News grid */
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid-2-col,
    .news-grid-3-col,
    .news-grid-4-col {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-widgets {
        grid-template-columns: 1fr;
    }
    
    .site-info {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    /* Social share buttons */
    .social-share-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .share-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* Breaking news ticker */
    .ticker-label {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    /* Weather widget */
    .weather-content {
        flex-direction: column;
        text-align: center;
    }
    
    /* Social counter */
    .social-counter-widget {
        grid-template-columns: 1fr;
    }
    
    /* User dashboard */
    .dashboard-stats {
        grid-template-columns: 1fr;
    }
    
    .posts-table {
        font-size: 0.875rem;
    }
    
    .posts-table th,
    .posts-table td {
        padding: 0.5rem;
    }
    
    /* Hide some elements on mobile */
    .posts-table th:nth-child(3),
    .posts-table td:nth-child(3) {
        display: none;
    }
}

/* Small mobile devices */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
    
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .container {
        padding: 0 0.75rem;
    }
    
    .entry-title {
        font-size: 1.75rem;
    }
    
    .news-card-title {
        font-size: 1rem;
    }
    
    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 1.25rem;
    }
}