/**
 * SayMISSING Platform Responsive Stylesheet
 * 
 * Responsive styles for the SayMISSING platform
 */

/* ========================================================================== */
/* Extra Large Devices (large desktops, 1200px and up)
/* ========================================================================== */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
}

/* ========================================================================== */
/* Large Devices (desktops, 992px to 1199px)
/* ========================================================================== */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }
    
    h1 {
        font-size: 2.25rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .statistic-number {
        font-size: 2.25rem;
    }
}

/* ========================================================================== */
/* Medium Devices (tablets, 768px to 991px)
/* ========================================================================== */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .hero h1 {
        font-size: 2.25rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    /* Header */
    .header-content {
        flex-wrap: wrap;
    }
    
    .logo {
        margin-right: auto;
    }
    
    .mobile-menu-toggle {
        display: block;
        order: 3;
    }
    
    .main-navigation {
        flex-basis: 100%;
        order: 4;
        margin-top: var(--spacing-md);
        display: none;
    }
    
    .main-navigation.active {
        display: block;
    }
    
    .nav-menu {
        flex-direction: column;
    }
    
    .nav-menu li {
        margin-right: 0;
        margin-bottom: var(--spacing-sm);
    }
    
    .nav-menu a {
        padding: var(--spacing-sm);
    }
    
    /* Statistics */
    .statistics-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Dashboard */
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-links {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
}

/* ========================================================================== */
/* Small Devices (landscape phones, 576px to 767px)
/* ========================================================================== */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    h2 {
        font-size: 1.375rem;
    }
    
    .hero {
        padding: var(--spacing-xl) 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    /* Search Form */
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .search-form .form-group:nth-child(1),
    .search-form .form-group:nth-child(2) {
        grid-column: span 1;
    }
    
    .search-form button {
        grid-column: span 1;
    }
    
    /* Statistics */
    .statistics-container {
        grid-template-columns: 1fr;
    }
    
    /* Cases Grid */
    .cases-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    /* Case Item */
    .case-item {
        grid-template-columns: 60px 1fr;
    }
    
    .case-item .case-image {
        height: 60px;
        width: 60px;
    }
    
    .case-actions {
        grid-column: span 2;
        justify-content: flex-end;
    }
    
    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
}

/* ========================================================================== */
/* Extra Small Devices (portrait phones, less than 576px)
/* ========================================================================== */
@media (max-width: 575px) {
    .container {
        width: 100%;
        padding-left: var(--spacing-md);
        padding-right: var(--spacing-md);
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.25rem;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .btn-lg {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }
    
    /* Form Row */
    .form-row {
        flex-direction: column;
        margin-right: 0;
        margin-left: 0;
    }
    
    .form-row > .form-group {
        padding-right: 0;
        padding-left: 0;
    }
    
    /* Notification Item */
    .notification-item {
        grid-template-columns: auto 1fr;
    }
    
    .notification-item form {
        grid-column: span 2;
        text-align: right;
    }
    
    /* Quick Actions */
    .quick-actions {
        grid-template-columns: 1fr;
    }
}

/* ========================================================================== */
/* Print Styles
/* ========================================================================== */
@media print {
    body {
        background-color: #fff;
        color: #000;
        font-size: 12pt;
    }
    
    .site-header,
    .site-footer,
    .search-section,
    .cta-section,
    .resources-section,
    .btn,
    .no-print {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    table {
        border-collapse: collapse;
    }
    
    table, th, td {
        border: 1px solid #000;
    }
    
    .case-details {
        page-break-inside: avoid;
    }
    
    .case-image {
        max-width: 3in;
        max-height: 3in;
    }
}