/* Results Page Specific Styles */

/* Results Hero */
.results-hero {
    position: relative;
    padding: 12rem 0 6rem;
    text-align: center;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.floating-shields {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.shield {
    position: absolute;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 12px;
    animation: float 6s ease-in-out infinite;
}

.shield::before {
    content: '';
    position: absolute;
    inset: 15px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='1.5' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E") center/contain no-repeat;
    opacity: 0.5;
}

.shield.s1 { top: 15%; left: 10%; animation-delay: 0s; }
.shield.s2 { top: 25%; right: 15%; animation-delay: 1.5s; width: 40px; height: 40px; }
.shield.s3 { bottom: 30%; left: 8%; animation-delay: 3s; width: 50px; height: 50px; }
.shield.s4 { bottom: 20%; right: 10%; animation-delay: 4.5s; }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.results-hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge.pulse {
    animation: badge-pulse 2s ease-in-out infinite;
}

@keyframes badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
}

.results-hero .hero-title {
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 1rem;
}

.counter-wrapper {
    display: block;
}

.counter {
    display: inline-block;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-sub {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.results-hero .hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

/* Mega Stats */
.hero-mega-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
}

.mega-stat {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

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

.mega-stat-circle {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}

.mega-stat-circle svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.progress-ring {
    animation: progress-fill 2s ease-out 0.5s forwards;
}

@keyframes progress-fill {
    to {
        stroke-dashoffset: 0;
    }
}

.progress-ring-zero {
    stroke-dasharray: 339.29;
    stroke-dashoffset: 339.29;
}

.mega-stat-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.mega-stat-circle.zero .mega-stat-value {
    color: var(--accent-green);
}

.mega-stat-label {
    font-size: 0.9375rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* Test Sections */
.test-section {
    padding: var(--section-padding) 0;
}

.test-section.basic-attacks {
    background: var(--bg-secondary);
}

.test-section.advanced-attacks {
    background: linear-gradient(180deg, var(--bg-primary) 0%, rgba(139, 92, 246, 0.05) 100%);
}

/* Section Badges */
.section-badge.blue {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.section-badge.purple {
    background: rgba(139, 92, 246, 0.1);
    border-color: rgba(139, 92, 246, 0.2);
    color: var(--accent-purple);
}

/* Attacks Overview */
.attacks-overview {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    margin-bottom: 3rem;
}

.attacks-overview.purple {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(59, 130, 246, 0.1));
    border-color: rgba(139, 92, 246, 0.3);
}

.overview-stat {
    text-align: center;
}

.overview-value {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.overview-label {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.overview-divider {
    width: 1px;
    height: 60px;
    background: var(--border-color);
}

/* Attack Cards */
.attack-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.attack-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.attack-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-blue);
}

.attack-card:hover .attack-card-glow {
    opacity: 1;
}

.attack-card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.attack-card-content {
    position: relative;
    padding: 1.5rem;
}

.attack-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.attack-icon svg {
    width: 28px;
    height: 28px;
}

.attack-icon.sqli { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.attack-icon.xss { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.attack-icon.xxe { background: rgba(234, 179, 8, 0.15); color: #eab308; }
.attack-icon.cmdi { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.attack-icon.path { background: rgba(6, 182, 212, 0.15); color: #06b6d4; }
.attack-icon.lfi { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }
.attack-icon.ssrf { background: rgba(139, 92, 246, 0.15); color: #8b5cf6; }

.attack-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.attack-stats {
    margin-bottom: 1rem;
}

.attack-progress {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.attack-progress-bar {
    height: 100%;
    width: 0;
    background: var(--gradient-primary);
    border-radius: 4px;
    animation: progress-grow 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

@keyframes progress-grow {
    to {
        width: var(--progress, 100%);
    }
}

.attack-numbers {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.attack-numbers .blocked {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
}

.attack-numbers .separator {
    color: var(--text-muted);
}

.attack-numbers .total {
    font-size: 1rem;
    color: var(--text-muted);
}

.attack-types {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.attack-types li {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    padding: 0.25rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.attack-types li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--accent-green);
    border-radius: 50%;
}

.attack-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 0.75rem;
    background: rgba(34, 197, 94, 0.15);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-green);
}

/* Advanced Categories */
.advanced-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}

.advanced-category-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.advanced-category-card:hover {
    border-color: var(--accent-purple);
    transform: translateY(-2px);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.category-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
}

.category-icon.unicode {
    background: rgba(139, 92, 246, 0.15);
    color: var(--accent-purple);
    font-size: 1.25rem;
}

.category-icon.framework {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-blue);
    font-size: 0.875rem;
}

.category-icon.protocol {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    font-size: 0.875rem;
}

.category-icon.encoding {
    background: rgba(34, 197, 94, 0.15);
    color: var(--accent-green);
    font-size: 1.25rem;
}

.category-info {
    flex: 1;
}

.category-info h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.category-count {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.category-badge {
    padding: 0.375rem 0.75rem;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 700;
}

.category-attacks {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-attack {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    opacity: 0;
    transform: translateX(-10px);
    animation: slideIn 0.4s ease forwards;
}

.mini-attack:nth-child(1) { animation-delay: 0.1s; }
.mini-attack:nth-child(2) { animation-delay: 0.15s; }
.mini-attack:nth-child(3) { animation-delay: 0.2s; }
.mini-attack:nth-child(4) { animation-delay: 0.25s; }
.mini-attack:nth-child(5) { animation-delay: 0.3s; }
.mini-attack:nth-child(6) { animation-delay: 0.35s; }
.mini-attack:nth-child(7) { animation-delay: 0.4s; }

@keyframes slideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.mini-status {
    width: 16px;
    height: 16px;
    background: rgba(34, 197, 94, 0.2);
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.mini-status::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 5px;
    width: 4px;
    height: 2px;
    border-left: 2px solid var(--accent-green);
    border-bottom: 2px solid var(--accent-green);
    transform: rotate(-45deg);
}

/* Tools Section */
.tools-section {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.5rem;
}

.tool-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    transition: all 0.3s ease;
}

.tool-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-4px);
}

.tool-logo {
    width: 48px;
    height: 48px;
    margin: 0 auto 1rem;
    color: var(--accent-green);
}

.tool-logo svg {
    width: 100%;
    height: 100%;
}

.tool-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.tool-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Final Summary */
.final-summary {
    padding: var(--section-padding) 0;
    background: var(--gradient-primary);
    text-align: center;
}

.summary-content {
    max-width: 800px;
    margin: 0 auto;
}

.summary-badge {
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.3); }
    50% { box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); }
}

.summary-badge svg {
    width: 40px;
    height: 40px;
    color: white;
}

.summary-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.summary-content > p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}

.summary-stat-item {
    text-align: center;
}

.summary-stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.summary-stat-label {
    font-size: 0.9375rem;
    opacity: 0.8;
}

.final-summary .btn-primary {
    background: white;
    color: var(--accent-blue);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.final-summary .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Nav Results Highlight */
.nav-results.active {
    color: var(--accent-blue) !important;
    position: relative;
}

.nav-results.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    border-radius: 1px;
}

/* Responsive */
@media (max-width: 768px) {
    .results-hero {
        padding: 8rem 0 4rem;
        min-height: auto;
    }

    .results-hero .hero-title {
        font-size: 5rem;
    }

    .hero-mega-stats {
        gap: 2rem;
    }

    .mega-stat-circle {
        width: 100px;
        height: 100px;
    }

    .attacks-overview {
        flex-direction: column;
        gap: 1.5rem;
    }

    .overview-divider {
        width: 60px;
        height: 1px;
    }

    .overview-value {
        font-size: 2rem;
    }

    .summary-stats {
        gap: 2rem;
    }

    .summary-stat-value {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .results-hero .hero-title {
        font-size: 4rem;
    }

    .hero-mega-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .attack-categories,
    .advanced-categories {
        grid-template-columns: 1fr;
    }
}
