/* TSP Solver Page Styles - 2025 CYBERPUNK Edition */

/* ============================================
   DISABLE AURORA FOR TSP SOLVER PAGE
   ============================================ */
#tsp-solver-hero::before,
#tsp-solver-hero::after {
    display: none !important;
}

/* ============================================
   CYBERPUNK OVERRIDES FOR TSP SOLVER PAGE
   ============================================ */

/* Wider container for TSP Solver */
#tsp-solver-hero~* .container,
.tsp-page .container {
    max-width: 1600px;
}

/* Override about-content width for TSP page */
#about-tsp .about-content {
    max-width: 1600px;
    text-align: left;
}

#about-tsp .about-content p {
    max-width: 100%;
}

/* Screenshots Grid - Cyberpunk Style */
.screenshots .screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

.screenshots .screenshot {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: rgba(10, 186, 181, 0.05);
    border: 1px solid rgba(10, 186, 181, 0.2);
    transition: all 0.3s ease;
}

.screenshots .screenshot:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(10, 186, 181, 0.2);
}

.screenshots .screenshot img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.screenshots .screenshot:hover img {
    transform: scale(1.05);
}

.screenshots .screenshot p {
    padding: 1rem;
    margin: 0;
    text-align: center;
    font-size: 0.9rem;
    color: var(--light-text);
    background: rgba(11, 17, 33, 0.8);
}

@media screen and (max-width: 992px) {
    .screenshots .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .screenshots .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

/* Cyberpunk Background - Clean grid without glow spots */
#tsp-solver-hero {
    background:
        /* Animated scan line */
        linear-gradient(0deg, transparent 49%, rgba(10, 186, 181, 0.03) 50%, transparent 51%),
        /* Grid pattern */
        linear-gradient(90deg, rgba(10, 186, 181, 0.02) 1px, transparent 1px),
        linear-gradient(0deg, rgba(10, 186, 181, 0.02) 1px, transparent 1px),
        /* Base gradient only - no glow spots */
        linear-gradient(180deg, #0a0e1a 0%, #0b1121 50%, #0d1526 100%);
    background-size:
        100% 4px,
        50px 50px,
        50px 50px,
        100% 100%;
    animation: cyberScan 8s linear infinite;
}

@keyframes cyberScan {
    0% {
        background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }

    100% {
        background-position: 0 100vh, 0 0, 0 0, 0 0, 0 0, 0 0, 0 0;
    }
}

/* Hide fractal canvas on TSP page - using cyberpunk background instead */
#tsp-solver-hero #fractalCanvas {
    display: none;
}

/* Animated divider - uses the same style as index.html from style.css */

/* ============================================
   CYBERPUNK SECTION STYLES
   ============================================ */

/* All sections on TSP page */
#about-tsp,
.screenshots,
.how-it-works,
.technical-details,
.download,
.faq {
    background:
        linear-gradient(90deg, rgba(10, 186, 181, 0.01) 1px, transparent 1px),
        linear-gradient(0deg, rgba(10, 186, 181, 0.01) 1px, transparent 1px),
        linear-gradient(180deg, rgba(11, 17, 33, 0.95) 0%, rgba(11, 17, 33, 0.98) 100%);
    background-size: 80px 80px, 80px 80px, 100% 100%;
    position: relative;
}

/* Section glow accent */
#about-tsp::before,
.screenshots::before,
.how-it-works::before,
.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(10, 186, 181, 0.3) 50%,
            transparent 100%);
}

/* ============================================
   ORIGINAL STYLES (REFINED)
   ============================================ */

/* Refined vs LKH Example */
.refined-example {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid var(--border-color);
    text-align: center;
}

.refined-example h4 {
    font-size: 1.3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.refined-example p {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.refined-example-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

.refined-example-img:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(10, 186, 181, 0.2);
}

.refined-example .example-caption {
    font-size: 0.95rem;
    color: var(--light-text);
    opacity: 0.8;
    margin-top: 1rem;
    margin-bottom: 0;
    font-style: italic;
}

/* Features section - CYBERPUNK STYLE */
.tsp-features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
    max-width: 1600px;
    margin-left: auto;
    margin-right: auto;
}

@media screen and (max-width: 1200px) {
    .tsp-features {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .tsp-features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 600px) {
    .tsp-features {
        grid-template-columns: 1fr;
    }
}

.feature-card {
    background: rgba(10, 20, 40, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.5rem 1.25rem;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(10, 186, 181, 0.15);
    position: relative;
    overflow: hidden;
}

/* Cyberpunk corner accents */
.feature-card::before,
.feature-card::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.feature-card::before {
    top: 8px;
    left: 8px;
    border-top-color: rgba(10, 186, 181, 0.3);
    border-left-color: rgba(10, 186, 181, 0.3);
}

.feature-card::after {
    bottom: 8px;
    right: 8px;
    border-bottom-color: rgba(10, 186, 181, 0.3);
    border-right-color: rgba(10, 186, 181, 0.3);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 15px 30px rgba(0, 0, 0, 0.4),
        0 0 30px rgba(10, 186, 181, 0.2),
        inset 0 0 20px rgba(10, 186, 181, 0.05);
    border-color: var(--primary-color);
    background: rgba(10, 25, 50, 0.8);
}

.feature-card:hover::before {
    border-top-color: var(--primary-color);
    border-left-color: var(--primary-color);
    width: 30px;
    height: 30px;
}

.feature-card:hover::after {
    border-bottom-color: var(--primary-color);
    border-right-color: var(--primary-color);
    width: 30px;
    height: 30px;
}

.feature-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(10, 186, 181, 0.5));
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: #fff;
}

.feature-card p {
    color: var(--light-text);
    line-height: 1.7;
}

/* Screenshots section */
.screenshots {
    background: transparent;
    padding: 5rem 2rem;
    position: relative;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.screenshot {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.screenshot::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-blue), var(--primary-color), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.screenshot:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(10, 186, 181, 0.2);
    border-color: transparent;
}

.screenshot:hover::after {
    opacity: 1;
}

.screenshot img {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16/9;
    transition: transform 0.5s ease;
}

.screenshot:hover img {
    transform: scale(1.05);
}

.screenshot p {
    padding: 1.5rem;
    text-align: center;
    color: var(--light-text);
    font-weight: 500;
    border-top: 1px solid var(--border-color);
}

/* How it works section */
.how-it-works {
    padding: 5rem 2rem;
    background: transparent;
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.step {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 2.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
}

.step::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-pink), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 10;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 15px rgba(10, 186, 181, 0.15);
    border-color: transparent;
}

.step:hover::before {
    opacity: 1;
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    font-weight: bold;
    margin: 0 auto 1.5rem auto;
    box-shadow: 0 0 25px rgba(10, 186, 181, 0.4);
}

.step h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #fff;
}

.step p {
    color: var(--light-text);
    line-height: 1.7;
}

/* Technical details section */
.technical-details {
    background: rgba(11, 17, 33, 0.5);
    padding: 5rem 2rem;
}

.details-accordion {
    max-width: 900px;
    margin: 3rem auto 0 auto;
}

.detail-accordion-item {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.detail-accordion-item:hover {
    border-color: rgba(10, 186, 181, 0.3);
}

.detail-accordion-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(10, 186, 181, 0.1);
}

.detail-header {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.detail-header:hover {
    background: rgba(10, 186, 181, 0.05);
}

.detail-header h3 {
    font-size: 1.15rem;
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.detail-header i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.detail-body {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--light-text);
}

.detail-body p {
    margin-bottom: 1rem;
}

.detail-body ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
    list-style: none;
}

.detail-body li {
    margin-bottom: 0.75rem;
    color: var(--light-text);
    padding-left: 1.5rem;
    position: relative;
}

.detail-body li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.detail-accordion-item.active .detail-body {
    padding: 0 2rem 2rem 2rem;
    max-height: 1200px;
}

.detail-accordion-item.active .detail-header i {
    transform: rotate(180deg);
}

/* Download section */
.download {
    padding: 5rem 2rem;
    background: transparent;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.download-card {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 3rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.download-card.premium {
    border: 2px solid var(--primary-color);
    transform: scale(1.03);
    box-shadow: 0 0 40px rgba(10, 186, 181, 0.2);
}

.download-card.premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(10, 186, 181, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.download-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4),
        0 0 20px rgba(10, 186, 181, 0.15);
}

.download-card.premium:hover {
    transform: translateY(-10px) scale(1.03);
}

.ribbon {
    position: absolute;
    top: 25px;
    right: -35px;
    padding: 0.5rem 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-blue));
    color: white;
    font-weight: bold;
    font-size: 0.85rem;
    transform: rotate(45deg);
    z-index: 1;
    box-shadow: 0 5px 15px rgba(10, 186, 181, 0.4);
}

.download-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.download-card .price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.download-card p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

.features-list {
    text-align: left;
    margin-bottom: 2rem;
    list-style: none;
    padding: 0;
}

.features-list li {
    margin-bottom: 1rem;
    color: var(--light-text);
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list i {
    width: 20px;
    text-align: center;
}

.features-list .fa-check {
    color: var(--primary-color);
}

.features-list .fa-times {
    color: #ef4444;
    opacity: 0.5;
}

.download-card .btn {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

/* FAQ section */
.faq {
    background: rgba(11, 17, 33, 0.5);
    padding: 5rem 2rem;
}

.faq-items {
    max-width: 900px;
    margin: 3rem auto 0 auto;
}

.faq-item {
    background: var(--surface-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(10, 186, 181, 0.3);
}

.faq-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(10, 186, 181, 0.1);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(10, 186, 181, 0.05);
}

.faq-question h3 {
    font-size: 1.15rem;
    margin: 0;
    color: #fff;
    font-weight: 600;
}

.faq-question i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 2rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
    color: var(--light-text);
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul,
.faq-answer ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: var(--light-text);
}

.faq-item.active .faq-answer {
    padding: 0 2rem 2rem 2rem;
    max-height: 1200px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

/* Responsive adjustments */
@media screen and (max-width: 768px) {
    .download-options {
        grid-template-columns: 1fr;
    }

    .download-card.premium {
        transform: scale(1);
    }

    .download-card.premium:hover {
        transform: translateY(-10px);
    }

    .ribbon {
        right: -25px;
        top: 20px;
        padding: 0.4rem 2.5rem;
        font-size: 0.8rem;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .faq-question h3 {
        font-size: 1rem;
    }
}

@media screen and (max-width: 480px) {
    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   Hero Feature Ticker - Animated Carousel
   ============================================ */
.hero-feature-ticker {
    margin-top: 2.5rem;
    text-align: center;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-ticker-wrapper {
    position: relative;
    display: inline-block;
    padding: 0.8rem 2rem;
    background: rgba(10, 186, 181, 0.08);
    border: 1px solid rgba(10, 186, 181, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        0 0 20px rgba(10, 186, 181, 0.15),
        inset 0 0 20px rgba(10, 186, 181, 0.05);
}

.feature-tick {
    display: none !important;
    font-size: 1.1rem;
    font-weight: 500;
    color: #fff;
    text-shadow: 0 0 10px rgba(10, 186, 181, 0.5);
    animation: featureGlow 3s ease-in-out infinite;
}

.feature-tick.active {
    display: inline-block !important;
    animation: featureFadeIn 0.5s ease-out;
}

@keyframes featureFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes featureGlow {

    0%,
    100% {
        text-shadow: 0 0 10px rgba(10, 186, 181, 0.5);
    }

    50% {
        text-shadow: 0 0 20px rgba(10, 186, 181, 0.8), 0 0 30px rgba(10, 186, 181, 0.4);
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .hero-feature-ticker {
        margin-top: 1.5rem;
    }

    .feature-ticker-wrapper {
        padding: 0.6rem 1.5rem;
        max-width: 90%;
    }

    .feature-tick {
        font-size: 0.95rem;
    }
}