/* ===== RESPONSIVE DESIGN - ANIME MODERN STYLE ===== */

/* Reduce Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== LARGE DESKTOP (1200px and up) ===== */
@media (min-width: 1200px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ===== DESKTOP (992px to 1199px) ===== */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===== TABLET (768px to 991px) ===== */
@media (max-width: 991px) and (min-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-image {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== MOBILE (up to 767px) ===== */
@media (max-width: 767px) {
    /* Typography */
    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .section-title {
        font-size: var(--font-size-2xl);
    }
    
    .section-description {
        font-size: var(--font-size-base);
    }
    
    /* Layout */
    .section {
        padding: var(--spacing-12) 0;
    }

    .section-header {
        text-align: center !important;
        margin-bottom: var(--spacing-8);
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .section-title,
    .section-description {
        text-align: center !important;
        width: 100%;
    }

    .section * {
        text-align: center !important;
    }
    
    /* Hero Section */
    .hero {
        padding: var(--spacing-16) 0;
    }

    .hero * {
        text-align: center !important;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-8);
        text-align: center !important;
    }

    .hero-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    .hero-title {
        text-align: center !important;
    }

    .hero-description {
        font-size: var(--font-size-base);
        text-align: center !important;
    }

    .hero-image {
        order: -1;
        display: flex !important;
        justify-content: center !important;
    }

    .hero-image img {
        max-width: 100%;
        height: auto;
    }

    .hero-buttons {
        display: flex !important;
        justify-content: center !important;
        flex-wrap: wrap;
        gap: var(--spacing-4);
    }
    
    /* Grids */
    .tools-grid,
    .blog-grid,
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-6);
    }
    
    .stats-section {
        text-align: center !important;
    }

    .stats-section * {
        text-align: center !important;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-4);
    }

    .stat-item {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .stat-number,
    .stat-label {
        text-align: center !important;
    }
    
    /* Cards - All content centered on mobile */
    .tool-card,
    .blog-card,
    .feature-card {
        padding: var(--spacing-5);
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .tool-card *,
    .blog-card *,
    .feature-card * {
        text-align: center !important;
    }

    .tool-icon,
    .feature-icon {
        width: 50px;
        height: 50px;
        font-size: var(--font-size-2xl);
        margin: 0 auto var(--spacing-3) !important;
    }

    .tool-card h3,
    .blog-card h3,
    .feature-card h3,
    .tool-card-title,
    .blog-card-title,
    .feature-card-title {
        text-align: center !important;
        width: 100%;
    }

    .tool-card p,
    .blog-card p,
    .feature-card p,
    .tool-card-description,
    .blog-card-excerpt,
    .feature-card-description {
        text-align: center !important;
        width: 100%;
    }

    .blog-card-content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .blog-card-category {
        margin: 0 auto var(--spacing-3) !important;
    }

    .blog-card-meta {
        justify-content: center !important;
    }

    .tool-card .btn,
    .blog-card .btn,
    .feature-card .btn {
        margin: 0 auto !important;
    }
    
    /* Footer - All content centered on mobile */
    .footer {
        padding: var(--spacing-12) 0 var(--spacing-6);
        text-align: center !important;
    }

    .footer * {
        text-align: center !important;
    }

    .footer-content {
        gap: var(--spacing-6);
        margin-bottom: var(--spacing-8);
    }

    .footer-section {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .footer-logo {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer-section h3,
    .footer-section h4 {
        font-size: var(--font-size-lg);
        margin-bottom: var(--spacing-4);
        text-align: center !important;
        justify-content: center !important;
        display: flex !important;
        width: 100%;
    }

    .footer-logo h3 {
        text-align: center !important;
        justify-content: center !important;
    }

    .footer-tagline {
        text-align: center !important;
        display: block;
        width: 100%;
    }

    .footer-section p {
        text-align: center !important;
        width: 100%;
    }

    .footer-section ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        list-style: none;
        padding: 0;
    }

    .footer-section li {
        text-align: center !important;
    }

    .footer-section a {
        justify-content: center !important;
        text-align: center !important;
    }

    .footer-social {
        justify-content: center !important;
    }

    .footer-stats {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        text-align: center !important;
    }

    .footer-bottom-content {
        align-items: center !important;
        justify-content: center !important;
    }

    .footer-bottom p {
        text-align: center !important;
    }

    .footer-badges {
        justify-content: center !important;
    }

    /* CTA Section */
    .cta-section {
        text-align: center !important;
    }

    .cta-section * {
        text-align: center !important;
    }

    .cta-content {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .cta-content h2,
    .cta-content p {
        text-align: center !important;
    }

    .cta-buttons {
        justify-content: center !important;
        flex-wrap: wrap;
        display: flex !important;
    }
}

/* ===== SMALL MOBILE (up to 480px) ===== */
@media (max-width: 480px) {
    /* Container */
    .container {
        padding: 0 var(--spacing-3);
    }
    
    /* Typography */
    .hero-title {
        font-size: 1.75rem;
    }
    
    .section-title {
        font-size: var(--font-size-xl);
    }
    
    /* Header */
    .logo h1 {
        font-size: var(--font-size-xl);
    }
    
    .logo .tagline {
        font-size: 0.65rem;
    }
    
    /* Buttons */
    .btn {
        padding: var(--spacing-2) var(--spacing-4);
        font-size: var(--font-size-sm);
    }
    
    /* Cards - Extra centering for small screens */
    .tool-card,
    .blog-card-content,
    .feature-card {
        padding: var(--spacing-4);
        text-align: center;
    }

    .tool-title,
    .blog-card-title,
    .feature-title {
        font-size: var(--font-size-lg);
        text-align: center;
    }

    .tool-description,
    .blog-card-excerpt,
    .feature-description {
        text-align: center;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-3);
    }

    .stat-item {
        padding: var(--spacing-4);
        text-align: center;
    }

    .stat-number,
    .stat-label {
        text-align: center;
    }
    
    /* Footer - Extra centering for small screens */
    .footer {
        text-align: center;
    }

    .footer-section {
        text-align: center;
    }

    .footer-section h3,
    .footer-section h4,
    .footer-section p {
        text-align: center;
    }

    .footer-badges {
        justify-content: center;
    }

    .badge {
        font-size: 0.65rem;
        padding: var(--spacing-1) var(--spacing-3);
    }

    .footer-social {
        justify-content: center;
    }
}

/* ===== EXTRA SMALL MOBILE (up to 375px) ===== */
@media (max-width: 375px) {
    .container {
        padding: 0 var(--spacing-2);
        height: 100%;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .section {
        padding: var(--spacing-10) 0;
    }
    
    .tool-card,
    .blog-card-content,
    .feature-card {
        padding: var(--spacing-3);
    }
    
    .footer {
        padding: var(--spacing-10) 0 var(--spacing-4);
    }
}

/* ===== LANDSCAPE ORIENTATION ===== */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        padding: var(--spacing-8) 0;
    }
    
    .section {
        padding: var(--spacing-12) 0;
    }
    
    .mobile-menu-overlay {
        overflow-y: auto;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .header,
    .footer,
    .mobile-menu-toggle,
    .mobile-menu-overlay,
    .cta-button,
    .btn {
        display: none;
    }
    
    .main {
        margin-top: 0;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .card,
    .tool-card,
    .blog-card,
    .feature-card {
        box-shadow: none;
        border: 1px solid #ddd;
        page-break-inside: avoid;
    }
}

