/* public/css/health-popup.css */

:root {
    --primary-color: #E62D5B;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
    backdrop-filter: blur(2px);
}

.popup-container {
    background: white;
    border-radius: 32px;
    width: 100%;
    max-width: 900px;
    max-height: 100vh;
    overflow-y: auto;
    position: relative;.main-title
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
    z-index: 10;
    background: lightgray;
    border-radius: 50%;
}

.close-btn:hover {
    color: #000;
}

.popup-header {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.warning-icon {
    width: 75px;
    height: 75px;
    flex-shrink: 0;
}

.header-content {
    flex: 1;
}

.alert-title {
    width: 100%;
    max-width: 642px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 150%;
    color: #FF0000;
    margin-bottom: 8px;
}

.main-title {
    width: 100%;
    max-width: 642px;
    font-family: 'Cal Sans', sans-serif;
    font-weight: 400;
    font-size: 32px;
    line-height: 150%;
    color: #000;
    margin-bottom: 20px;
}

.main-title .seasonal-viruses {
    color: var(--primary-color);
}

.description {
    width: 100%;
    max-width: 820px;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 150%;
    color: #000;
    margin-bottom: 20px;
}

.description .symptoms {
    font-weight: 700;
}

.description .medical-center {
    font-weight: 700;
}

.content-section {
    display: grid;
    grid-template-columns: 50% 50%;
    gap: 40px;
    margin-bottom: 30px;
}

.tips-section h3 {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 150%;
    color: #000;
    margin-bottom: 20px;
}

.tip-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 16px;
    transition: transform 0.2s ease;
}

.tip-item:hover {
    transform: translateX(5px);
}

.tip-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.tip-text {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #000;
}

.virus-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.virus-image {
    width: 100%;
    max-width: 239px;
    height: 280px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.cta-button {
    width: 100%;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50px;
    padding: 16px 32px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(230, 45, 91, 0.3);
}

.cta-button:hover {
    background: #c91e4a;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 45, 91, 0.4);
}

.cta-button:active {
    transform: translateY(0px);
}

/* Custom scrollbar for popup */
.popup-container::-webkit-scrollbar {
    width: 6px;
}

.popup-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.popup-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.popup-container::-webkit-scrollbar-thumb:hover {
    background: #bbb;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .popup-overlay {
        padding: 10px;
    }

    .popup-container {
        padding: 30px 20px;
        margin: 0;
        max-height: 95vh;
        border-radius: 24px;
    }

    .popup-header {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 0px;
        text-align: left;
    }

    .warning-icon {
        width: 60px;
        height: 60px;
    }

    .alert-title {
        font-size: 16px;
        max-width: 100%;
    }

    .main-title {
        font-size: 49px !important;
        max-width: 100%;
        text-align: center;
        display: block !important;
    }
    
    .alert-title{
        margin-top: -33px !important;
    }
    
    .header-content{
        margin: 0px auto;
    }
    
    .description {
        font-size: 16px;
        max-width: 100%;
    }

    .content-section {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .virus-image-container {
        order: 1;
    }

    .virus-image {
        max-width: 200px;
    }

    .tip-item {
        margin-bottom: 12px;
        justify-content: flex-start;
        text-align: left;
    }

    .tip-item:hover {
        transform: none;
    }

    .tip-icon {
        width: 35px;
        height: 35px;
    }

    .tip-text {
        font-size: 14px;
    }

    .tips-section h3 {
        font-size: 18px;
    }

    .close-btn {
        top: 15px;
        right: 20px;
        font-size: 20px;
        background: lightgray;
        border-radius: 50%;
    }
    
    .main-title{
        display: block !important;
    }
}

@media (max-width: 480px) {
    .popup-container {
        padding: 25px 15px;
        border-radius: 20px;
    }

    .main-title {
        font-size: 29px !important;
        display: block !important;
    }

    .description {
        font-size: 14px;
    }

    .cta-button {
        font-size: 16px;
        padding: 14px 28px;
    }

    .popup-header {
        gap: 10px;
    }

    .content-section {
        gap: 15px;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .popup-container {
        border: 2px solid #000;
    }

    .close-btn {
        border: 1px solid #000;
        background: lightgray;
        border-radius: 50%;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .popup-container {
        animation: none;
    }

    .virus-image {
        animation: none;
    }

    .tip-item {
        transition: none;
    }

    .cta-button {
        transition: background-color 0.2s ease;
    }
}