/* ========================================
   SUMMER SPLASH POPUP - SEO OPTIMIZED
   ======================================== */

/* Popup Overlay */
.summer-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    padding: 20px;
}

.summer-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Popup Container */
.summer-popup {
    background: #ffffff;
    border-radius: 20px;
    max-width: 600px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: popupSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

@keyframes popupSlideIn {
    from {
        transform: scale(0.8) translateY(-40px);
        opacity: 0;
    }

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

/* Close Button */
.summer-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.summer-popup-close:hover {
    background: #f47c2a;
    transform: rotate(90deg);
}

.summer-popup-close svg {
    width: 20px;
    height: 20px;
    stroke: #4A5565;
    transition: stroke 0.3s ease;
}

.summer-popup-close:hover svg {
    stroke: #ffffff;
}

/* Header Section with Decorative Elements */
.summer-popup-header {
    background: linear-gradient(135deg, #FF6B9D 0%, #FFA07A 50%, #FFD93D 100%);
    padding: 28px 24px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.summer-popup-header::before {
    content: '🌈';
    position: absolute;
    font-size: 100px;
    top: -25px;
    right: -15px;
    opacity: 0.2;
    transform: rotate(15deg);
}

.summer-popup-header::after {
    content: '⭐';
    position: absolute;
    font-size: 60px;
    bottom: -15px;
    left: -10px;
    opacity: 0.3;
    animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.summer-badge {
    display: inline-block;
    background: linear-gradient(135deg, #FF6B9D, #C060A1);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 15px rgba(255, 107, 157, 0.3);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {

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

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

.summer-popup-title {
    font-size: clamp(20px, 4vw, 26px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 8px 0;
    position: relative;
    z-index: 1;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.summer-popup-dates {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
}

.summer-popup-title {
    font-size: clamp(28px, 5vw, 36px);
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 12px 0;
    position: relative;
    z-index: 1;
    line-height: 1.2;
}

.summer-popup-dates {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    margin: 0;
    position: relative;
    z-index: 1;
}

/* Content Section */
.summer-popup-content {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
}

/* Course Info */
.summer-course-info {
    background: linear-gradient(135deg, #FFF9E6 0%, #FFE8F0 100%);
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 16px;
    border: 2px solid #FFD93D;
    position: relative;
}

.summer-course-info.summer-splash-program {
    background: linear-gradient(135deg, #E3F2FD 0%, #F3E5F5 100%);
    border-color: #64B5F6;
}

.summer-course-info.phonics-program {
    background: linear-gradient(135deg, #FFF3E0 0%, #FCE4EC 100%);
    border-color: #FFB74D;
}

.summer-course-title {
    font-size: 18px;
    font-weight: 800;
    color: #4A5565;
    margin: 0 0 12px 0;
    text-align: center;
    text-shadow: 2px 2px 0px rgba(255, 217, 61, 0.3);
}

/* Timing Badge */
.summer-timing-badge {
    background: linear-gradient(135deg, #64B5F6, #42A5F5);
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    text-align: center;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 14px;
    box-shadow: 0 3px 12px rgba(100, 181, 246, 0.4);
}

.summer-timing-badge.evening {
    background: linear-gradient(135deg, #9C27B0, #7B1FA2);
    box-shadow: 0 3px 12px rgba(156, 39, 176, 0.4);
}

/* Splash Options */
.splash-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0;
}

.splash-option {
    background: white;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    border: 2px solid #FFD93D;
    transition: all 0.3s ease;
    cursor: pointer;
}

.splash-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(255, 107, 157, 0.3);
    border-color: #FF6B9D;
}

.splash-icon {
    font-size: 36px;
    margin-bottom: 6px;
    animation: float 3s ease-in-out infinite;
}

.splash-option:nth-child(2) .splash-icon {
    animation-delay: 0.5s;
}

@keyframes float {

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

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

.splash-name {
    font-size: 15px;
    font-weight: 800;
    color: #FF6B9D;
    margin-bottom: 3px;
}

.splash-detail {
    font-size: 11px;
    color: #6b7c8c;
    font-weight: 600;
}

/* Program Features */
.program-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

.feature-item {
    background: white;
    padding: 8px 12px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #4A5565;
    border: 2px solid #E3F2FD;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: scale(1.05);
    border-color: #64B5F6;
    box-shadow: 0 3px 10px rgba(100, 181, 246, 0.2);
}

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

/* Program Divider */
.program-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
}

.program-divider::before,
.program-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 2px;
    background: linear-gradient(to right, transparent, #FFD93D, transparent);
}

.program-divider::before {
    left: 0;
}

.program-divider::after {
    right: 0;
}

.program-divider span {
    font-size: 24px;
    display: inline-block;
    animation: spin 3s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.summer-details-grid {
    display: grid;
    gap: 12px;
}

.summer-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #2d3748;
}

.summer-detail-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #f47c2a, #ff9554);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summer-detail-icon svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    fill: none;
}

.summer-detail-text {
    flex: 1;
}

.summer-detail-label {
    font-weight: 600;
    color: #4A5565;
    display: block;
}

.summer-detail-value {
    color: #6b7c8c;
    font-size: 14px;
}

/* Learning Outcomes */
.summer-learning {
    margin-bottom: 18px;
    background: linear-gradient(135deg, #E8F5E9 0%, #FFF9C4 100%);
    padding: 16px;
    border-radius: 14px;
    border: 2px dashed #81C784;
}

.summer-learning-title {
    font-size: 16px;
    font-weight: 800;
    color: #4A5565;
    margin: 0 0 12px 0;
    text-align: center;
}

.summer-learning-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.summer-learning-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #2d3748;
    line-height: 1.4;
    font-weight: 600;
}

.summer-learning-list li::before {
    content: '✓';
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: linear-gradient(135deg, #66BB6A, #43A047);
    color: #ffffff;
    border-radius: 50%;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
    box-shadow: 0 2px 8px rgba(102, 187, 106, 0.3);
    font-size: 12px;
}

.summer-details-grid {
    display: grid;
    gap: 10px;
}

.summer-detail-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #2d3748;
}

.summer-detail-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #f47c2a, #ff9554);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.summer-detail-icon svg {
    width: 16px;
    height: 16px;
    stroke: #ffffff;
    fill: none;
}

.summer-detail-text {
    flex: 1;
}

.summer-detail-label {
    font-weight: 600;
    color: #4A5565;
    display: block;
    font-size: 13px;
}

.summer-detail-value {
    color: #6b7c8c;
    font-size: 12px;
}

/* CTA Section */
.summer-popup-cta {
    padding: 0 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summer-cta-btn {
    background: linear-gradient(135deg, #FF6B9D, #FFA07A);
    color: #ffffff;
    padding: 14px 24px;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.4);
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.summer-cta-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.summer-cta-btn:hover::before {
    width: 300px;
    height: 300px;
}

.summer-cta-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 30px rgba(255, 107, 157, 0.5);
}

.summer-cta-secondary {
    background: linear-gradient(135deg, #64B5F6, #42A5F5);
    box-shadow: 0 4px 20px rgba(100, 181, 246, 0.4);
}

.summer-cta-secondary:hover {
    box-shadow: 0 8px 30px rgba(100, 181, 246, 0.5);
}

/* Don't show again checkbox */
.summer-popup-footer {
    padding: 0 24px 16px;
    text-align: center;
}

.summer-dont-show {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 11px;
    color: #6b7c8c;
    cursor: pointer;
}

.summer-dont-show input[type="checkbox"] {
    width: 14px;
    height: 14px;
    cursor: pointer;
    accent-color: #f47c2a;
}

/* Responsive Design */
@media (max-width: 640px) {
    .summer-popup {
        border-radius: 16px;
        max-height: 95vh;
    }

    .summer-popup-header {
        padding: 32px 24px 24px;
    }

    .summer-popup-title {
        font-size: 24px;
    }

    .summer-popup-dates {
        font-size: 16px;
    }

    .summer-popup-content {
        padding: 24px;
    }

    .summer-course-info {
        padding: 20px;
    }

    .splash-options {
        grid-template-columns: 1fr;
    }

    .program-features {
        grid-template-columns: 1fr;
    }

    .summer-popup-cta {
        padding: 0 24px 24px;
    }

    .summer-cta-btn {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Accessibility */
.summer-popup-overlay:focus-within .summer-popup {
    outline: 3px solid #f47c2a;
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {

    .summer-popup-overlay,
    .summer-popup,
    .summer-popup-close,
    .summer-cta-btn {
        animation: none !important;
        transition: none !important;
    }
}