/* css/popup.css - Welcome Popup Styling - Updated Design */

.welcome-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 40, 0.7); /* Darker, techy overlay */
    backdrop-filter: blur(8px); /* Slightly more blur */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease-in-out, visibility 0.4s ease-in-out;
}

.welcome-popup-overlay.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.welcome-popup {
    background: #1e2a3a; /* Darker background for the popup itself */
    color: #e0e6ed; /* Light text for dark background */
    border-radius: 12px; /* Consistent with other elements */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
    max-width: 600px; /* Slightly wider */
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.95) translateY(15px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease-in-out;
    border: 1px solid #34495e; /* Subtle border */
}

.welcome-popup-overlay.show .welcome-popup {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.welcome-popup-header {
    background: linear-gradient(135deg, #2c3e50, #1a2533); /* Dark gradient header */
    border-bottom: 1px solid #34495e;
    border-radius: 12px 12px 0 0;
    padding: 25px 30px; /* Adjusted padding */
    text-align: center;
    position: relative;
}

.welcome-popup-header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px; /* Slightly thicker accent */
    background: linear-gradient(90deg, #00aeff, #007bff, #34e89e); /* Techy gradient accent */
    border-radius: 12px 12px 0 0;
}

.popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 22px;
    color: #bdc3c7; /* Lighter close icon */
    cursor: pointer;
    padding: 0;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.welcome-icon {
    width: 70px; /* Adjusted size */
    height: 70px;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, #007bff, #00aeff); /* Primary tech blue gradient */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    box-shadow: 0 5px 18px rgba(0, 123, 255, 0.3);
}

.welcome-popup-header h2 {
    font-family: 'Orbitron', sans-serif; /* New design system font */
    font-weight: 700; /* Orbitron often looks good bold */
    color: #ffffff; /* White title on dark header */
    margin: 0 0 8px;
    font-size: 26px; /* Adjusted size */
}

.welcome-popup-header p {
    font-family: 'IBM Plex Sans', sans-serif; /* New design system font */
    color: #bdc3c7; /* Lighter paragraph text for dark header */
    margin: 0;
    font-size: 15px; /* Adjusted size */
    line-height: 1.6;
}

.welcome-popup-body {
    padding: 25px 30px; /* Adjusted padding */
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); /* Responsive columns */
    gap: 18px; /* Adjusted gap */
    margin-bottom: 25px;
}

.benefit-card {
    background: #2c3e50; /* Darker card background */
    border-radius: 10px; /* Consistent radius */
    padding: 20px;
    text-align: center;
    border: 1px solid #34495e; /* Subtle border */
    transition: all 0.25s ease;
    opacity: 0;
    transform: translateY(15px);
    animation: slideInUp 0.5s ease forwards; /* Keep animation */
}

.benefit-card:hover {
    transform: translateY(-3px) scale(1.02); /* Slightly more interactive hover */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    border-color: #00aeff;
}

.benefit-icon {
    width: 45px; /* Adjusted size */
    height: 45px;
    margin: 0 auto 12px;
    background: #1e2a3a; /* Match popup background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #00aeff; /* Tech blue icon color */
    box-shadow: 0 3px 10px rgba(0, 174, 255, 0.2);
}

.benefit-card h4 {
    font-family: 'Orbitron', sans-serif; /* New design system font */
    font-weight: 600;
    color: #ecf0f1; /* Light text for dark card */
    margin: 0 0 8px;
    font-size: 17px; /* Adjusted size */
}

.benefit-card p {
    font-family: 'IBM Plex Sans', sans-serif; /* New design system font */
    color: #bdc3c7; /* Lighter paragraph text for dark card */
    margin: 0;
    font-size: 13px; /* Adjusted size */
    line-height: 1.5;
}

.popup-actions {
    display: flex;
    gap: 15px;
    margin-top: 15px; /* Adjusted margin */
}

.popup-btn {
    flex: 1;
    padding: 12px 18px; /* Adjusted padding */
    border: none;
    border-radius: 8px; /* Consistent radius */
    font-family: 'IBM Plex Sans', sans-serif; /* New design system font */
    font-weight: 600;
    font-size: 15px; /* Adjusted size */
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    text-transform: uppercase; /* Uppercase for buttons */
    letter-spacing: 0.5px;
}

.popup-btn-primary {
    background: #007bff; /* Primary tech blue */
    color: white;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
}

.popup-btn-primary:hover {
    background: #0056b3; /* Darker shade on hover */
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 123, 255, 0.3);
    color: white;
}

.popup-btn-secondary {
    background: transparent;
    color: #bdc3c7; /* Lighter text */
    border: 2px solid #34495e; /* Border matching other elements */
}

.popup-btn-secondary:hover {
    background: #34495e; /* Darker background on hover */
    border-color: #00aeff; /* Accent border on hover */
    color: #ffffff;
}

.popup-footer {
    padding: 18px 30px; /* Adjusted padding */
    background: #1a2533; /* Darker footer */
    border-top: 1px solid #34495e;
    border-radius: 0 0 12px 12px;
    text-align: center;
}

.popup-footer p {
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif; /* New design system font */
    color: #95a5a6; /* Muted footer text */
    font-size: 12px; /* Adjusted size */
}

.popup-footer a {
    color: #00aeff; /* Tech blue for links */
    text-decoration: none;
    font-weight: 500;
}

.popup-footer a:hover {
    text-decoration: underline;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .welcome-popup {
        width: 95%;
        margin: 15px; /* Adjusted margin */
    }
    .welcome-popup-header,
    .welcome-popup-body {
        padding: 20px; /* Consistent padding */
    }
    .welcome-popup-header h2 {
        font-size: 22px; /* Adjusted size */
    }
    .welcome-popup-header p {
        font-size: 14px;
    }
    .benefits-grid {
        grid-template-columns: 1fr; /* Stack benefits on small screens */
        gap: 12px;
    }
    .popup-actions {
        flex-direction: column;
    }
    .welcome-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
        margin-bottom: 12px;
    }
    .benefit-card h4 {
        font-size: 16px;
    }
     .popup-btn {
        font-size: 14px;
        padding: 12px 15px;
    }
}
