/**
 * Pharmacy 404 Page Styles
 * 
 * Responsive styling for the custom 404 page with pharmacy/doctor functionality
 * 
 * @package Railway_Info_Plugin
 * @since 1.0.0
 */

/* ==========================================================================
   404 Page Container
   ========================================================================== */

.pharmacy-404-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
}

/* ==========================================================================
   404 Header Section
   ========================================================================== */

.pharmacy-404-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border-left: 5px solid #dc3545;
}

.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.error-title {
    font-size: 2.5rem;
    color: #dc3545;
    margin-bottom: 15px;
    font-weight: 700;
}

.error-subtitle {
    font-size: 1.2rem;
    color: #6c757d;
    margin-bottom: 20px;
}

.error-breadcrumb {
    font-size: 0.9rem;
    color: #6c757d;
}

.error-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.error-breadcrumb a:hover {
    text-decoration: underline;
}

.error-breadcrumb .separator {
    margin: 0 8px;
    color: #adb5bd;
}

/* ==========================================================================
   Quick Actions Section
   ========================================================================== */

.pharmacy-404-quick-actions {
    margin-bottom: 40px;
}

.pharmacy-404-quick-actions h2 {
    font-size: 1.8rem;
    color: #343a40;
    margin-bottom: 25px;
    text-align: center;
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: inherit;
}

.pharmacy-card:hover {
    border-color: #28a745;
}

.doctor-card:hover {
    border-color: #007bff;
}

.emergency-card:hover {
    border-color: #dc3545;
}

.action-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.action-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #343a40;
}

.action-card p {
    color: #6c757d;
    text-align: center;
    margin-bottom: 15px;
}

.action-arrow {
    font-size: 1.5rem;
    color: #007bff;
    font-weight: bold;
}


/* ==========================================================================
   Popular Cities Section
   ========================================================================== */

.pharmacy-404-popular-cities {
    margin-bottom: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pharmacy-404-popular-cities h2 {
    font-size: 1.8rem;
    color: #343a40;
    margin-bottom: 15px;
    text-align: center;
}

.cities-description {
    text-align: center;
    color: #6c757d;
    margin-bottom: 25px;
}

.cities-grid {
    margin-bottom: 25px;
}

.more-cities {
    text-align: center;
}

.more-cities-link {
    display: inline-block;
    padding: 12px 24px;
    background: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.more-cities-link:hover {
    background: #218838;
    text-decoration: none;
    color: white;
}

/* ==========================================================================
   Helpful Links Section
   ========================================================================== */

.pharmacy-404-helpful-links {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.pharmacy-404-helpful-links h2 {
    font-size: 1.8rem;
    color: #343a40;
    margin-bottom: 25px;
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.helpful-link {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    text-decoration: none;
    color: #343a40;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.helpful-link:hover {
    background: #e9ecef;
    border-color: #007bff;
    text-decoration: none;
    color: #343a40;
}

.link-icon {
    font-size: 1.5rem;
    margin-right: 12px;
}

.link-text {
    font-weight: 500;
}

.contact-info {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
}

.contact-info h3 {
    font-size: 1.3rem;
    color: #343a40;
    margin-bottom: 10px;
}

.contact-info p {
    color: #6c757d;
    margin-bottom: 15px;
}

.contact-methods {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.contact-method {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.contact-method:hover {
    background: #0056b3;
    text-decoration: none;
    color: white;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .pharmacy-404-container {
        padding: 15px;
    }
    
    .pharmacy-404-header {
        padding: 30px 15px;
    }
    
    .error-title {
        font-size: 2rem;
    }
    
    .error-subtitle {
        font-size: 1rem;
    }
    
    .action-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-card {
        padding: 25px 15px;
    }
    
    .pharmacy-404-search,
    .pharmacy-404-popular-cities,
    .pharmacy-404-helpful-links {
        padding: 20px;
    }
    
    .search-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .search-tab {
        width: 100%;
        max-width: 300px;
        margin-bottom: 5px;
    }
    
    .search-input-group {
        flex-direction: column;
    }
    
    .quick-cities {
        justify-content: center;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
        align-items: center;
    }
}

@media (max-width: 480px) {
    .error-icon {
        font-size: 3rem;
    }
    
    .error-title {
        font-size: 1.8rem;
    }
    
    .action-icon {
        font-size: 2.5rem;
    }
    
    .action-card h3 {
        font-size: 1.1rem;
    }
    
    .pharmacy-404-search h2,
    .pharmacy-404-popular-cities h2,
    .pharmacy-404-helpful-links h2 {
        font-size: 1.5rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .pharmacy-404-container {
        box-shadow: none;
        background: white;
    }
    
    .action-card,
    .pharmacy-404-search,
    .pharmacy-404-popular-cities,
    .pharmacy-404-helpful-links {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .search-button,
    .more-cities-link,
    .contact-method {
        background: white !important;
        color: black !important;
        border: 1px solid black;
    }
}

/* ==========================================================================
   Accessibility Improvements
   ========================================================================== */

/* Focus styles for keyboard navigation */
.action-card:focus,
.search-tab:focus,
.search-input:focus,
.search-button:focus,
.quick-city:focus,
.more-cities-link:focus,
.helpful-link:focus,
.contact-method:focus {
    outline: 3px solid #007bff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .pharmacy-404-header {
        background: white;
        border: 2px solid black;
    }
    
    .action-card,
    .pharmacy-404-search,
    .pharmacy-404-popular-cities,
    .pharmacy-404-helpful-links {
        border: 2px solid black;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .error-icon {
        animation: none;
    }
    
    .action-card,
    .search-tab,
    .search-button,
    .quick-city,
    .more-cities-link,
    .helpful-link,
    .contact-method {
        transition: none;
    }
}
