/* daddla - Responsive Design CSS */

/* ===== TABLET: 768px ===== */
@media (max-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero-content h1 {
        font-size: 48px;
        line-height: 1.1;
    }

    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .hero-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-top: 30px;
    }

    .stat-card {
        padding: 25px 20px;
        min-height: auto;
    }

    .stat-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .stat-card h3 {
        font-size: 15px;
    }

    .stat-card p {
        font-size: 11px;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
        margin-bottom: 30px;
    }

    .hero-cta .btn {
        max-width: 100%;
    }

    .mockup {
        max-width: 350px;
    }

    .section-title {
        font-size: 42px;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .feature-card {
        padding: 25px;
        background: rgba(139, 92, 246, 0.08) !important;
        opacity: 1 !important;
    }

    .feature-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .feature-card h3 {
        font-size: 18px;
    }

    .feature-card p {
        font-size: 13px;
    }

    .nav-menu {
        display: none;
    }

    .logo {
        height: 30px;
        width: auto;
    }

    .gradient-text {
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
        color: #ec4899;
    }
}

/* ===== MOBILE: 480px ===== */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    .navbar {
        padding: 12px 0;
        height: auto;
    }

    .nav-brand {
        flex: 1;
    }

    .logo {
        height: 35px;
        width: auto;
    }

    .btn.btn-primary,
    .btn.btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }

    .hero {
        min-height: auto;
        padding: 40px 0;
        margin-top: 50px;
    }

    .hero .container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero-content h1 {
        font-size: 36px;
        line-height: 1.2;
        margin-bottom: 12px;
    }

    .gradient-text {
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
        color: #ec4899;
    }

    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 15px;
        line-height: 1.6;
    }

    .hero-cta {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 25px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: none;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 25px;
    }

    .stat-card {
        padding: 18px 14px;
        min-height: 160px;
    }

    .stat-icon {
        font-size: 36px;
        margin-bottom: 8px;
    }

    .stat-card h3 {
        font-size: 14px;
        margin-bottom: 6px;
    }

    .stat-card p {
        font-size: 11px;
        line-height: 1.3;
    }

    .mockup {
        max-width: 250px;
    }

    .features {
        padding: 60px 0;
    }

    .section-title {
        font-size: 32px;
        margin-bottom: 30px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-card {
        padding: 20px;
        background: rgba(139, 92, 246, 0.10) !important;
        opacity: 1 !important;
    }

    .feature-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .feature-card p {
        font-size: 12px;
        line-height: 1.5;
    }

    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .blog-card {
        padding: 15px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .social-links {
        gap: 10px;
    }

    .social-links a {
        width: 36px;
        height: 36px;
    }

    .footer-logo {
        width: 50px;
    }
}

/* ===== SMALL MOBILE: 360px ===== */
@media (max-width: 360px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .navbar {
        padding: 10px 0;
    }

    .logo {
        height: 40px;
        width: auto;
    }

    .btn.btn-primary,
    .btn.btn-secondary {
        padding: 10px 16px;
        font-size: 13px;
    }

    .hero {
        min-height: auto;
        padding: 30px 0;
        margin-top: 50px;
    }

    .hero-content h1 {
        font-size: 28px;
        line-height: 1.2;
        margin-bottom: 10px;
        word-wrap: break-word;
    }

    .gradient-text {
        background: none !important;
        -webkit-background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        background-clip: unset !important;
        animation: none !important;
        color: #ec4899;
    }

    .hero-subtitle {
        font-size: 13px;
        margin-bottom: 12px;
        line-height: 1.5;
    }

    .hero-cta {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 20px;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: none;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 20px;
    }

    .stat-card {
        padding: 15px 12px;
        min-height: 140px;
    }

    .stat-icon {
        font-size: 40px;
        margin-bottom: 10px;
    }

    .stat-card h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .stat-card p {
        font-size: 12px;
        line-height: 1.3;
    }

    .mockup {
        max-width: 200px;
    }

    .features {
        padding: 50px 0;
    }

    .section-title {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 15px;
        background: rgba(139, 92, 246, 0.12) !important;
        opacity: 1 !important;
    }

    .feature-icon {
        font-size: 32px;
        margin-bottom: 8px;
    }

    .feature-card h3 {
        font-size: 14px;
    }

    .feature-card p {
        font-size: 11px;
        line-height: 1.4;
    }

    .footer-logo {
        width: 40px;
    }
}

/* ===== Print ===== */
@media print {
    .navbar,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

/* Tablet (768px and below) */
@media (max-width: 768px) {
    :root {
        font-size: 14px;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* Navbar */
    .navbar {
        padding: 10px 0;
    }
    
    .navbar .container {
        padding: 0 12px;
    }
    
    .nav-brand {
        gap: 8px;
    }
    
    .logo {
        height: 36px;
    }
    
    .logo-fallback {
        font-size: 20px;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        background: rgba(15, 23, 42, 0.98);
        gap: 0;
        padding: 15px;
        list-style: none;
        border-bottom: 1px solid var(--border-color);
    }
    
    .nav-menu.active .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid rgba(139, 92, 246, 0.1);
    }
    
    .menu-toggle {
        display: flex;
    }
    
    /* Hero */
    .hero {
        min-height: 80vh;
        margin-top: 60px;
    }
    
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-content h1 {
        font-size: 36px;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 16px;
        margin-bottom: 25px;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-cta .btn {
        max-width: 100%;
        width: 100%;
    }
    
    .hero-stats {
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-icon {
        font-size: 28px;
    }
    
    .stat-card h3 {
        font-size: 14px;
    }
    
    .stat-card p {
        font-size: 12px;
    }
    
    .mockup {
        max-width: 300px;
    }
    
    /* Sections */
    .features,
    .about,
    .blog {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 32px;
        margin-bottom: 40px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .feature-card {
        padding: 25px;
    }
    
    .feature-icon {
        font-size: 40px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .about-text h2 {
        font-size: 32px;
    }
    
    .about-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
    
    .about-stat strong {
        font-size: 24px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .blog-card-image {
        height: 160px;
    }
    
    .blog-card-content {
        padding: 20px;
    }
    
    .blog-card h3 {
        font-size: 16px;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .footer-section h4 {
        font-size: 14px;
    }
    
    .social-links {
        gap: 10px;
    }
    
    .social-links a {
        width: 36px;
        height: 36px;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        font-size: 13px;
    }
    
    .container {
        padding: 0 12px;
    }
    
    /* Navbar */
    .navbar {
        padding: 8px 0;
    }
    
    .navbar .container {
        gap: 10px;
        padding: 0 10px;
    }
    
    .logo {
        height: 32px;
    }
    
    .logo-fallback {
        font-size: 18px;
    }
    
    .nav-right {
        gap: 12px;
    }
    
    .btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .menu-toggle {
        width: 26px;
    }
    
    .menu-toggle span {
        width: 20px;
        height: 2px;
        gap: 5px;
    }
    
    /* Hero */
    .hero {
        min-height: auto;
        padding-top: 20px;
    }
    
    .hero-content h1 {
        font-size: 26px;
        line-height: 1.15;
    }
    
    .hero-subtitle {
        font-size: 14px;
        margin-bottom: 20px;
    }
    
    .hero-cta {
        margin-bottom: 30px;
    }
    
    .mockup {
        max-width: 250px;
    }
    
    /* Sections */
    .features,
    .about,
    .blog {
        padding: 40px 0;
    }
    
    .section-title {
        font-size: 24px;
        margin-bottom: 30px;
    }
    
    .feature-card {
        padding: 20px;
    }
    
    .feature-icon {
        font-size: 32px;
    }
    
    .feature-card h3 {
        font-size: 16px;
    }
    
    .feature-card p {
        font-size: 13px;
    }
    
    .about-text h2 {
        font-size: 24px;
        margin-bottom: 15px;
    }
    
    .about-text p {
        font-size: 14px;
        margin-bottom: 15px;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .about-stat strong {
        font-size: 20px;
    }
    
    /* Blog */
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .blog-card {
        min-height: auto;
    }
    
    .blog-card-image {
        height: 150px;
    }
    
    .blog-card-content {
        padding: 15px;
    }
    
    .blog-card h3 {
        font-size: 15px;
    }
    
    .blog-excerpt {
        font-size: 13px;
    }
    
    /* Footer */
    .footer {
        padding: 40px 0 15px;
        margin-top: 60px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .footer-section h4 {
        font-size: 13px;
        margin-bottom: 12px;
    }
    
    .footer-section ul li {
        margin-bottom: 8px;
    }
    
    .footer-bottom {
        font-size: 11px;
        padding-top: 15px;
    }
}

/* Small Mobile (320px and below) */
@media (max-width: 320px) {
    :root {
        font-size: 12px;
    }
    
    .hero-content h1 {
        font-size: 22px;
    }
    
    .hero-subtitle {
        font-size: 13px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .btn {
        padding: 8px 14px;
        font-size: 12px;
    }
    
    .stat-card {
        padding: 12px;
    }
    
    .stat-icon {
        font-size: 24px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .menu-toggle,
    .nav-right,
    .hero-cta,
    .social-links,
    .footer {
        display: none;
    }
    
    .modal-content {
        max-width: 100%;
        background: white;
        color: black;
    }
    
    .modal-body h2,
    .modal-body h3,
    .modal-body h4 {
        color: black;
    }
    
    .modal-body p,
    .modal-body li {
        color: #333;
    }
}

/* High DPI Screens */
@media (min-width: 1440px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-content h1 {
        font-size: 72px;
    }
    
    .section-title {
        font-size: 56px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-link,
    .feature-card,
    .blog-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    .btn:active,
    .nav-link:active,
    .feature-card:active,
    .blog-card:active {
        transform: scale(0.98);
    }
}

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

/* Dark Mode (already implemented) */
@media (prefers-color-scheme: dark) {
    /* All styles use dark theme by default */
}

/* Light Mode Fallback (if needed) */
@media (prefers-color-scheme: light) {
    :root {
        --dark-bg: #FFFFFF;
        --darker-bg: #F5F5F5;
        --card-bg: #F9F9F9;
        --surface-bg: #E8E8E8;
        --text-primary: #1F1F1F;
        --text-secondary: #4A4A4A;
        --text-muted: #888;
        --border-color: rgba(139, 92, 246, 0.15);
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
    
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-image {
        max-width: 200px;
    }
    
    .mockup {
        max-width: 150px;
    }
}
