/* شاشات متوسطة (أجهزة لوحية) */
@media (max-width: 1024px) {
    .nav-menu {
        display: none;
    }
    
    .nav-toggle {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

/* شاشات صغيرة (هواتف) */
@media (max-width: 768px) {
    .navbar {
        height: 70px;
        padding: 0 0.5rem;
    }
    
    .nav-logo img {
        height: 50px;
        width: 180px;
    }
    
    .user-name {
        display: none;
    }
    
    .hero {
        padding: 2rem 1rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .theme-toggle {
        bottom: 1rem;
        left: 1rem;
        width: 40px;
        height: 40px;
    }
    
    .form-container {
        padding: 1.5rem;
    }
    
    .comments-section {
        padding: 1.5rem;
    }
    
    .comment-replies {
        margin-right: 1rem;
    }
}

/* شاشات صغيرة جداً */
@media (max-width: 480px) {
    .nav-container {
        padding: 0 0.5rem;
    }
    
    .auth-buttons {
        gap: 0.5rem;
    }
    
    .btn-login, .btn-register {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .user-avatar {
        width: 40px;
        height: 40px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .post-card {
        border-radius: 8px;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .post-actions {
        justify-content: space-around;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}