/* ============================================
   RESULTS PAGE STYLES
   KS Chemistry - Results Page Custom Styles
============================================ */

/* ============================================
   RESULTS SHOWCASE SECTION
============================================ */
.results-showcase-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(180deg, #f8f9fa 0%, #fff 50%, #f8f9fa 100%);
    overflow: hidden;
}

.showcase-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 80%, rgba(237, 59, 59, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(237, 59, 59, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 0 15px;
}

/* Glowing Badge Styles */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, var(--theme) 0%, #ff6b6b 100%);
    color: #fff;
    padding: 12px 30px;
    border-radius: 0;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 30px;
    position: relative;
    box-shadow:
        0 0 20px rgba(237, 59, 59, 0.5),
        0 0 40px rgba(237, 59, 59, 0.3),
        0 0 60px rgba(237, 59, 59, 0.2);
    animation: glowPulse 2s ease-in-out infinite;
}

.section-badge::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--theme), #ff6b6b, var(--theme));
    border-radius: 0;
    z-index: -1;
    opacity: 0.7;
    filter: blur(8px);
    animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        box-shadow:
            0 0 20px rgba(237, 59, 59, 0.5),
            0 0 40px rgba(237, 59, 59, 0.3),
            0 0 60px rgba(237, 59, 59, 0.2);
    }
    50% {
        box-shadow:
            0 0 30px rgba(237, 59, 59, 0.7),
            0 0 50px rgba(237, 59, 59, 0.5),
            0 0 80px rgba(237, 59, 59, 0.3);
    }
}

.section-badge i {
    font-size: 16px;
    animation: starTwinkle 1.5s ease-in-out infinite;
}

@keyframes starTwinkle {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.8;
    }
}

.section-title-sinhala {
    font-family: 'AF-Sigiri', sans-serif;
    font-size: 54px;
    font-weight: 700;
    color: var(--header);
    margin-bottom: 15px;
    line-height: 1.4;
    padding: 0 10px;
    white-space: nowrap;
}

.section-description-sinhala {
    font-family: 'YaldeviColombo', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #666;
    line-height: 1.8;
    margin-bottom: 0;
    padding: 0 15px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.title-underline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.title-underline span {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--theme), transparent);
    border-radius: 2px;
}

.title-underline i {
    color: var(--theme);
    font-size: 20px;
}

/* Image Wrapper */
.results-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 15px;
}

.image-frame {
    position: relative;
    background: #fff;
    padding: 15px;
    border-radius: 16px;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 0, 0, 0.05);
}

.frame-corner {
    position: absolute;
    width: 25px;
    height: 25px;
    border: 3px solid var(--theme);
}

.frame-corner.top-left {
    top: -4px;
    left: -4px;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
}

.frame-corner.top-right {
    top: -4px;
    right: -4px;
    border-left: none;
    border-bottom: none;
    border-radius: 0 8px 0 0;
}

.frame-corner.bottom-left {
    bottom: -4px;
    left: -4px;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 8px;
}

.frame-corner.bottom-right {
    bottom: -4px;
    right: -4px;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
}

.image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(237, 59, 59, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.results-main-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
}

/* ============================================
   RESPONSIVE STYLES
============================================ */

/* Extra Large Screens (1400px and up) */
@media (min-width: 1400px) {
    .results-showcase-section {
        padding: 120px 0;
    }

    .section-title-sinhala {
        font-size: 58px;
    }

    .section-badge {
        font-size: 18px;
        padding: 14px 35px;
    }

    .results-image-wrapper {
        max-width: 1600px;
    }

    .image-frame {
        padding: 20px;
    }

    .frame-corner {
        width: 30px;
        height: 30px;
    }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1399px) {
    .section-title-sinhala {
        font-size: 46px;
    }

    .results-image-wrapper {
        max-width: 1400px;
    }
}

/* Medium-Large Screens (992px - 1199px) */
@media (max-width: 1199px) {
    .results-showcase-section {
        padding: 90px 0;
    }

    .section-title-sinhala {
        font-size: 46px;
    }

    .section-description-sinhala {
        font-size: 19px;
    }

    .section-badge {
        font-size: 15px;
        padding: 11px 28px;
    }

    .section-header {
        margin-bottom: 45px;
    }

    .results-image-wrapper {
        max-width: 1200px;
    }
}

/* Tablet Screens (768px - 991px) */
@media (max-width: 991px) {
    .results-showcase-section {
        padding: 80px 0;
    }

    .section-title-sinhala {
        font-size: 42px;
    }

    .section-description-sinhala {
        font-size: 18px;
    }

    .section-badge {
        font-size: 14px;
        padding: 10px 25px;
        letter-spacing: 1.5px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .results-image-wrapper {
        max-width: 100%;
    }

    .image-frame {
        padding: 12px;
        border-radius: 14px;
    }

    .frame-corner {
        width: 22px;
        height: 22px;
    }
}

/* Small Tablet / Large Mobile (576px - 767px) */
@media (max-width: 767px) {
    .results-showcase-section {
        padding: 60px 0;
    }

    .section-title-sinhala {
        font-size: 36px;
        line-height: 1.5;
        white-space: normal;
    }

    .section-description-sinhala {
        font-size: 17px;
        padding: 0 10px;
    }

    .section-badge {
        font-size: 13px;
        padding: 10px 22px;
        letter-spacing: 1px;
        gap: 8px;
    }

    .section-badge i {
        font-size: 14px;
    }

    .section-header {
        margin-bottom: 35px;
    }

    .image-frame {
        padding: 10px;
        border-radius: 12px;
    }

    .frame-corner {
        width: 18px;
        height: 18px;
        border-width: 2px;
    }

    .results-main-image {
        border-radius: 8px;
    }

    /* Reduce glow intensity on mobile for performance */
    .section-badge {
        box-shadow:
            0 0 15px rgba(237, 59, 59, 0.4),
            0 0 30px rgba(237, 59, 59, 0.2);
    }

    .section-badge::before {
        filter: blur(5px);
    }
}

/* Mobile Screens (up to 575px) */
@media (max-width: 575px) {
    .results-showcase-section {
        padding: 50px 0;
    }

    .section-title-sinhala {
        font-size: 32px;
        line-height: 1.5;
        padding: 0 5px;
    }

    .section-description-sinhala {
        font-size: 16px;
        padding: 0 5px;
        line-height: 1.7;
    }

    .section-badge {
        font-size: 12px;
        padding: 8px 18px;
        letter-spacing: 1px;
        gap: 6px;
        margin-bottom: 20px;
    }

    .section-badge i {
        font-size: 12px;
    }

    .section-header {
        margin-bottom: 30px;
    }

    .results-image-wrapper {
        padding: 0 10px;
    }

    .image-frame {
        padding: 8px;
        border-radius: 10px;
    }

    .frame-corner {
        width: 15px;
        height: 15px;
        border-width: 2px;
    }

    .results-main-image {
        border-radius: 6px;
    }

    .title-underline span {
        width: 50px;
    }
}

/* Extra Small Mobile (up to 400px) */
@media (max-width: 400px) {
    .results-showcase-section {
        padding: 40px 0;
    }

    .section-title-sinhala {
        font-size: 28px;
    }

    .section-badge {
        font-size: 11px;
        padding: 7px 15px;
    }

    .image-frame {
        padding: 6px;
    }

    .frame-corner {
        width: 12px;
        height: 12px;
    }
}
