/* assets/css/responsive.css - Mobile and responsive styles */

@media (max-width: 1024px) {
    .hero-simple {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        padding: 3rem 1rem;
    }
    
    .hero-card {
        order: -1;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .how-it-works {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .how-it-works-content {
        text-align: center;
    }
    
    .code-demo {
        transform: none !important;
        animation: float 6s ease-in-out infinite;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
        flex-wrap: wrap;
    }

    .nav-menu {
        gap: 1rem;
        order: 3;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
    }

    .nav-controls {
        gap: 0.5rem;
    }

    .auth-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    /* Simple Hero Mobile */
    .hero-simple {
        gap: 2rem;
        padding: 2rem 1rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .stat {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        background: #F9FAFB;
        border-radius: 8px;
        border: 2px solid #FFD700;
        width: 100%;
        max-width: 200px;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .hero-card {
        max-width: 100%;
    }
    
    .card-header {
        padding: 1rem;
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .code-block {
        font-size: 0.75rem;
    }
    
    .problem-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 100%;
    }
    
    /* Posts Section Mobile */
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .post-card.featured {
        grid-column: span 1;
        display: block;
    }
    
    .post-card.featured .post-image {
        min-height: 200px;
    }
    
    .post-meta {
        justify-content: space-between;
    }
    
    .post-stats {
        justify-content: space-between;
    }
    
    .hero-features {
        justify-content: center;
    }
    
    .code-preview {
        margin: 0 auto;
    }
    
    .code-body {
        font-size: 0.8rem;
    }
    
    .how-it-works {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .how-it-works-content {
        text-align: center;
    }
    
    .code-demo {
        margin: 2rem 0;
        transform: none !important;
        animation: none;
    }
    
    .code-demo:hover {
        transform: translateY(-5px) !important;
    }
    
    .code-content {
        font-size: 0.8rem;
        padding: 1rem;
        margin: 1rem;
    }
    
    .code-header {
        padding: 0 1rem;
    }
    
    .code-result, .code-stars {
        margin: 1rem;
        padding: 1rem;
    }
    
    .features-list {
        margin: 1.5rem 0;
    }
    
    .feature-item {
        padding: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .feature-content h4 {
        font-size: 1rem;
    }
    
    .feature-content p {
        font-size: 0.85rem;
    }
    
    .stats-grid-small {
        grid-template-columns: 1fr;
        gap: 0.8rem;
        margin: 1.5rem 0;
    }
    
    .stat-item-small {
        padding: 1rem;
    }
    
    .stat-number-small {
        font-size: 1.8rem;
    }
    
    .stat-label-small {
        font-size: 0.85rem;
    }

    .welcome-section h1 {
        font-size: 2rem;
    }

    .main-content {
        padding: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
        line-height: 1.1;
    }

    .card {
        padding: 1.5rem;
        margin: 1rem 0;
        border-radius: 12px;
    }
    
    .card h3 {
        font-size: 1.1rem;
    }
    
    .card p {
        font-size: 0.9rem;
    }
    
    .card ul li {
        font-size: 0.85rem;
        padding-left: 1.25rem;
    }
}

@media (max-width: 480px) {
    .navbar {
        padding: 0.5rem;
    }

    .logo {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
        line-height: 1.1;
    }
    
    /* Simple Hero Small Mobile */
    .hero-simple {
        padding: 1.5rem 0.5rem;
        gap: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-description {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .stat {
        padding: 0.75rem;
        max-width: 180px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.8rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        max-width: 250px;
    }
    
    .card-content {
        padding: 1rem;
    }
    
    .problem-title {
        font-size: 1.1rem;
    }
    
    .problem-description {
        font-size: 0.9rem;
    }
    
    .code-header {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
    
    .code-block {
        padding: 0.75rem;
        font-size: 0.7rem;
        line-height: 1.3;
    }
    
    .action-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Posts Section Small Mobile */
    .posts-header {
        margin-bottom: 2rem;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .post-content {
        padding: 1rem;
    }
    
    .post-title {
        font-size: 1.1rem;
    }
    
    .post-card.featured .post-title {
        font-size: 1.2rem;
    }
    
    .post-excerpt {
        font-size: 0.9rem;
    }
    
    .post-meta {
        gap: 0.5rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .post-stats {
        gap: 0.75rem;
    }
    
    .load-more-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }

    .nav-menu {
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .nav-menu li a {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }

    .welcome-section {
        padding: 2rem 0;
    }

    .welcome-section h1 {
        font-size: 1.8rem;
    }

    .welcome-section p {
        font-size: 1rem;
    }
}

@media (max-width: 360px) {
    .section-title {
        font-size: 1.3rem;
        line-height: 1.1;
    }
    
    .hero-simple {
        padding: 1rem 0.25rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .stat {
        padding: 0.6rem;
        max-width: 160px;
    }
    
    .stat-number {
        font-size: 1.3rem;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 0.7rem 1.2rem;
        font-size: 0.85rem;
        max-width: 220px;
    }
    
    .card-content {
        padding: 0.75rem;
    }
    
    .code-block {
        font-size: 0.65rem;
        padding: 0.5rem;
    }
    
    /* Posts Section Extra Small Mobile */
    .posts-subtitle {
        font-size: 1rem;
    }
    
    .post-content {
        padding: 0.75rem;
    }
    
    .post-title {
        font-size: 1rem;
    }
    
    .post-card.featured .post-title {
        font-size: 1.1rem;
    }
    
    .post-excerpt {
        font-size: 0.85rem;
    }
    
    .post-category {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .post-icon {
        font-size: 3rem;
    }
    
    .tag {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
    
    .how-it-works-content {
        padding: 0 0.5rem;
    }
}
