/* Responsive CSS for ProjectScope */


/* Container */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}


/* Extra large devices (large desktops, 1200px and up) */

@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}


/* Large devices (desktops, 992px to 1199px) */

@media (min-width: 992px) and (max-width: 1199.98px) {
    .container {
        max-width: 960px;
    }
}


/* Medium devices (tablets, 768px to 991px) */

@media (min-width: 768px) and (max-width: 991.98px) {
    .container {
        max-width: 720px;
    }
}


/* Small devices (landscape phones, 576px to 767px) */

@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px;
    }
}


/* Extra small devices (portrait phones, less than 576px) */

@media (max-width: 575.98px) {
    .container {
        padding: 0 12px;
    }
}


/* Common Responsive Utilities */

.hide-on-mobile {
    display: none !important;
}

.show-on-mobile {
    display: block !important;
}

@media (min-width: 768px) {
    .hide-on-mobile {
        display: block !important;
    }
    .show-on-mobile {
        display: none !important;
    }
}


/* Responsive Images */

img {
    max-width: 100%;
    height: auto;
}


/* Responsive Typography */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem !important;
    }
    h2 {
        font-size: 1.75rem !important;
    }
    h3 {
        font-size: 1.5rem !important;
    }
    h4 {
        font-size: 1.25rem !important;
    }
    p,
    li,
    a {
        font-size: 0.95rem !important;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.75rem !important;
    }
    h2 {
        font-size: 1.5rem !important;
    }
    h3 {
        font-size: 1.25rem !important;
    }
    h4 {
        font-size: 1.1rem !important;
    }
    p,
    li,
    a {
        font-size: 0.9rem !important;
    }
}


/* Responsive Grids */

.responsive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

@media (max-width: 480px) {
    .responsive-grid {
        grid-template-columns: 1fr;
    }
}


/* Touch-friendly button sizes */

@media (max-width: 768px) {
    .btn,
    button,
    a.btn {
        min-height: 44px;
        min-width: 44px;
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    input,
    select,
    textarea {
        font-size: 16px !important;
        /* Prevents iOS zoom on focus */
    }
}


/* Safe area for notched devices */

@supports (padding: max(0px)) {
    .container,
    .main-header,
    .main-footer {
        padding-left: max(15px, env(safe-area-inset-left));
        padding-right: max(15px, env(safe-area-inset-right));
    }
}


/* Reduced motion preference */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* Dark mode support */

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: #ffffff;
    }
}


/* Print styles */

@media print {
    .no-print {
        display: none !important;
    }
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
    }
    a {
        color: #000;
        text-decoration: underline;
    }
    a[href^="http"]::after {
        content: " (" attr(href) ")";
    }
}