/* Responsive Design */

/* Tablet Styles */
@media screen and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }
    
    .main-nav ul {
        gap: 1.5rem;
    }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    /* Header Mobile */
    .header-content {
        padding: 0.8rem 0;
    }
    
    .logo-link {
        font-size: 1.3rem;
    }
    
    .logo-link i {
        font-size: 1.5rem;
        margin-right: 8px;
    }
    
    /* Mobile Navigation */
    .main-nav {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }
    
    .main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .main-nav ul {
        flex-direction: column;
        padding: 2rem;
        gap: 1.5rem;
    }
    
    .nav-link {
        font-size: 1.1rem;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
        display: block;
        width: 100%;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    /* Hero Mobile */
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .cta-button {
        padding: 12px 25px;
        font-size: 0.9rem;
    }
    
    /* Main Content Mobile */
    .main-content {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Posts Grid Mobile */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-image {
        height: 200px;
    }
    
    .post-content {
        padding: 1.2rem;
    }
    
    .post-title {
        font-size: 1.2rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
    
    .footer-section {
        margin-bottom: 1rem;
    }
    
    .footer-section h4 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer-section a {
        font-size: 0.9rem;
        display: block;
        padding: 5px 0;
    }
    
    .social-links {
        justify-content: center;
        gap: 1.5rem;
    }
    
    .social-links a {
        width: 48px;
        height: 48px;
        font-size: 1.2rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
        margin-top: 1rem;
    }
}

/* Small Mobile Styles */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .cta-button,
    .load-more-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .main-nav ul {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .nav-link {
        font-size: 1rem;
    }
}

/* Large Desktop Styles */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4rem;
    }
    
    .section-title {
        font-size: 3rem;
    }
    
    .posts-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2.5rem;
    }
}

/* Print Styles */
@media print {
    .header,
    .mobile-menu-toggle,
    .cta-button,
    .load-more-btn,
    .footer {
        display: none;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .main-content {
        padding: 0;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .post-image img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if dark mode is desired
    body {
        background-color: #1a1a1a;
        color: #e0e0e0;
    }
    
    .header {
        background: #2a2a2a;
    }
    
    .post-card {
        background: #2a2a2a;
        border: 1px solid #444;
    }
    
    .hero {
        background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    }
    */
}