/**
 * Srabon Learning Popup - Styles
 * Version: 1.0.0
 */

#srabon-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    animation: srabonFadeIn 0.5s ease;
}

@keyframes srabonFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#srabon-popup-container {
    position: relative;
    max-width: 560px;
    width: 92%;
    margin: 20px;
    animation: srabonSlideUp 0.6s ease;
}

@keyframes srabonSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#srabon-popup-content {
    background: #1a472a;
    border-radius: 24px;
    padding: 40px 35px 30px;
    text-align: center;
    color: #ffffff;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

/* Decorative background pattern */
#srabon-popup-content::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

#srabon-popup-content::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -80px;
    width: 250px;
    height: 250px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 50%;
}

#srabon-popup-close {
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
    z-index: 10;
    font-weight: 300;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

#srabon-popup-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
    transform: rotate(90deg);
}

.popup-icon {
    font-size: 56px;
    margin-bottom: 8px;
    display: block;
}

.popup-title {
    font-size: 28px;
    font-weight: 700;
    margin: 10px 0 8px;
    line-height: 1.2;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.popup-subtitle {
    font-size: 16px;
    font-weight: 400;
    margin: 0 0 20px;
    opacity: 0.9;
    line-height: 1.5;
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.popup-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0 25px;
}

.popup-feature {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.2s ease;
}

.popup-feature:hover {
    background: rgba(255, 255, 255, 0.18);
}

.feature-icon {
    font-size: 20px;
}

.popup-button {
    display: inline-block;
    padding: 16px 48px;
    background: #f4a261;
    color: #1a472a;
    border: none;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(244, 162, 97, 0.35);
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin-top: 5px;
}

.popup-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(244, 162, 97, 0.5);
}

.popup-button:active {
    transform: scale(0.98);
}

.popup-footer {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.popup-dismiss {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    cursor: pointer;
    padding: 4px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    font-family: inherit;
    font-weight: 500;
}

.popup-dismiss:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.popup-dismiss-info {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

.srabon-popup-trigger {
    padding: 12px 24px;
    background: #f4a261;
    color: #1a472a;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
}

.srabon-popup-trigger:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(244, 162, 97, 0.4);
}

/* Responsive */
@media (max-width: 600px) {
    #srabon-popup-content {
        padding: 30px 20px 25px;
        border-radius: 20px;
    }

    .popup-title {
        font-size: 22px;
    }

    .popup-subtitle {
        font-size: 14px;
    }

    .popup-features {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .popup-feature {
        font-size: 12px;
        padding: 10px 6px;
    }

    .feature-icon {
        font-size: 16px;
    }

    .popup-button {
        padding: 14px 30px;
        font-size: 16px;
        width: 100%;
    }

    .popup-footer {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 400px) {
    .popup-features {
        grid-template-columns: 1fr;
    }

    .popup-title {
        font-size: 20px;
    }
}
