/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * G25 Advanced Tools product page styling.
 * Extends the V6 dark theme design system with tool-specific layouts.
 */

/* ========================================
   PROSE READABILITY
   ======================================== */
/* Override g25-prose for better contrast on dark background - text was unreadable */
.g25-page .g25-prose,
.g25adv-tool-section .g25-prose {
    color: var(--g25-text-primary, #e8e4dd);
}

.g25-page .g25-prose strong,
.g25adv-tool-section .g25-prose strong {
    color: var(--g25-text-primary, #e8e4dd);
}

/* ========================================
   HERO SECTION
   ======================================== */

.g25adv-hero {
    text-align: center;
    padding-top: 140px;
    padding-bottom: 100px;
}

.g25adv-hero-badge {
    display: inline-block;
    margin-bottom: 24px;
}

.g25adv-hero-badge span {
    display: inline-block;
    padding: 6px 18px;
    border: 1px solid var(--g25-accent-primary, #c9a430);
    color: var(--g25-accent-primary, #c9a430);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    border-radius: 2px;
}

.g25adv-hero-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 40px 0 48px;
}

.g25adv-tool-pill {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid rgba(232, 228, 221, 0.15);
    border-radius: 24px;
    color: var(--g25-text-secondary, #a8a098);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.g25adv-tool-pill:hover {
    border-color: var(--g25-accent-primary, #c9a430);
    color: var(--g25-accent-primary, #c9a430);
    text-decoration: none;
}

.g25adv-hero-cta {
    margin-top: 16px;
}

/* ========================================
   OVERVIEW SECTION
   ======================================== */

.g25adv-overview-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 48px;
}

.g25adv-overview-stat {
    text-align: center;
}

.g25adv-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--g25-accent-primary, #c9a430);
    line-height: 1;
    margin-bottom: 8px;
}

.g25adv-stat-label {
    display: block;
    font-size: 0.8rem;
    color: var(--g25-text-secondary, #a8a098);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ========================================
   TOOL DEEP-DIVE SECTIONS
   ======================================== */

.g25adv-tool-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.g25adv-tool-alt {
    background: rgba(232, 228, 221, 0.02);
}

.g25adv-tool-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    margin-top: 16px;
}

.g25adv-layout-reverse {
    direction: rtl;
}

.g25adv-layout-reverse > * {
    direction: ltr;
}

.g25adv-tool-illustration {
    display: flex;
    align-items: center;
    justify-content: center;
}

.g25adv-tool-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
    color: var(--g25-text-secondary, #a8a098);
}

.g25adv-tool-badge {
    display: inline-block;
    padding: 4px 14px;
    background: var(--g25-accent-primary, #c9a430);
    color: #0a1418;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 2px;
    margin-bottom: 16px;
}

.g25adv-tool-power {
    font-size: 1.05rem;
    color: var(--g25-accent-primary, #c9a430);
    font-weight: 400;
    margin-bottom: 24px;
    line-height: 1.5;
}

.g25adv-capabilities {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
}

.g25adv-capabilities li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: var(--g25-text-secondary, #a8a098);
    line-height: 1.6;
}

.g25adv-capabilities li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--g25-accent-primary, #c9a430);
    border-radius: 50%;
}

/* ========================================
   COMPARISON GRID
   ======================================== */

.g25adv-comparison {
    padding-top: 80px;
    padding-bottom: 80px;
}

.g25adv-comparison-table {
    margin-top: 48px;
    border: 1px solid rgba(232, 228, 221, 0.08);
    border-radius: 4px;
    overflow-x: auto;
}

.g25adv-comparison-header,
.g25adv-comparison-row {
    display: grid;
    grid-template-columns: 1.8fr repeat(5, 1fr);
    min-width: 640px;
}

.g25adv-comparison-header {
    background: rgba(232, 228, 221, 0.04);
    border-bottom: 1px solid rgba(232, 228, 221, 0.08);
}

.g25adv-comparison-row {
    border-bottom: 1px solid rgba(232, 228, 221, 0.04);
}

.g25adv-comparison-row:last-child {
    border-bottom: none;
}

.g25adv-comparison-cell {
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.g25adv-cell-label {
    justify-content: flex-start;
    color: var(--g25-text-primary, #e8e4dd);
    font-weight: 500;
}

.g25adv-comparison-header .g25adv-cell-tool {
    color: var(--g25-accent-primary, #c9a430);
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-align: center;
}

.g25adv-cell-check {
    opacity: 1;
}

.g25adv-cell-empty::after {
    content: '\2014';
    color: rgba(232, 228, 221, 0.12);
    font-size: 0.8rem;
}

/* ========================================
   PRICING SECTION
   ======================================== */

.g25adv-pricing {
    text-align: center;
}

.g25adv-pricing-card {
    position: relative;
    max-width: 520px;
    margin: 48px auto 0;
    border: 1px solid var(--g25-accent-primary, #c9a430);
    border-radius: 4px;
    padding: 48px 40px 40px;
    background: rgba(201, 164, 48, 0.03);
    text-align: left;
}

.g25adv-pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--g25-accent-primary, #c9a430);
    color: #0a1418;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 2px;
    white-space: nowrap;
}

.g25adv-pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.g25adv-pricing-header h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--g25-text-primary, #e8e4dd);
    margin: 0 0 12px;
}

.g25adv-pricing-amount {
    font-size: 2.2rem;
    font-weight: 300;
    color: var(--g25-accent-primary, #c9a430);
    line-height: 1;
    margin-bottom: 8px;
}

.g25adv-pricing-period {
    font-size: 0.8rem;
    color: var(--g25-text-secondary, #a8a098);
    letter-spacing: 0.03em;
}

.g25adv-pricing-tools {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 16px;
    margin-bottom: 24px;
}

.g25adv-pricing-tool-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--g25-text-primary, #e8e4dd);
}

.g25adv-pricing-extras {
    border-top: 1px solid rgba(232, 228, 221, 0.08);
    padding-top: 16px;
    margin-bottom: 28px;
}

.g25adv-pricing-extras p {
    font-size: 0.8rem;
    color: var(--g25-text-secondary, #a8a098);
    margin: 0;
    line-height: 1.5;
}

.g25adv-pricing-cta {
    display: block;
    text-align: center;
    padding: 14px 32px;
    background: var(--g25-accent-primary, #c9a430);
    color: #0a1418;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: opacity 0.2s ease;
}

.g25adv-pricing-cta:hover {
    opacity: 0.9;
    text-decoration: none;
    color: #0a1418;
}

/* ========================================
   FINALE SECTION
   ======================================== */

.g25adv-finale {
    text-align: center;
    padding-top: 100px;
    padding-bottom: 120px;
}

.g25adv-finale-ctas {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* ========================================
   CTA BUTTONS (shared)
   ======================================== */

.g25-cta-primary {
    display: inline-block;
    padding: 14px 36px;
    background: var(--g25-accent-primary, #c9a430);
    color: #0a1418;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
    transition: opacity 0.2s ease;
}

.g25-cta-primary:hover {
    opacity: 0.9;
    text-decoration: none;
    color: #0a1418;
}

.g25-cta-secondary {
    display: inline-block;
    padding: 14px 36px;
    border: 1px solid rgba(232, 228, 221, 0.2);
    color: var(--g25-text-primary, #e8e4dd);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 2px;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.g25-cta-secondary:hover {
    border-color: var(--g25-accent-primary, #c9a430);
    color: var(--g25-accent-primary, #c9a430);
    text-decoration: none;
}

/* ========================================
   RESPONSIVE: TABLET
   ======================================== */

@media (max-width: 991px) {
    .g25adv-tool-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .g25adv-layout-reverse {
        direction: ltr;
    }

    .g25adv-tool-illustration {
        order: -1;
    }

    .g25adv-tool-svg {
        max-width: 260px;
    }

    .g25adv-overview-grid {
        gap: 32px;
    }
}

/* ========================================
   RESPONSIVE: MOBILE
   ======================================== */

@media (max-width: 767px) {
    .g25adv-hero {
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .g25adv-hero-tools {
        gap: 8px;
        margin: 28px 0 36px;
    }

    .g25adv-tool-pill {
        font-size: 0.78rem;
        padding: 6px 14px;
    }

    .g25adv-overview-grid {
        flex-direction: column;
        gap: 24px;
    }

    .g25adv-stat-number {
        font-size: 2rem;
    }

    .g25adv-tool-section {
        padding-top: 48px;
        padding-bottom: 48px;
    }

    .g25adv-tool-svg {
        max-width: 200px;
    }

    .g25adv-comparison-table {
        margin-left: -16px;
        margin-right: -16px;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }

    .g25adv-pricing-card {
        padding: 40px 24px 32px;
    }

    .g25adv-pricing-tools {
        grid-template-columns: 1fr;
    }

    .g25adv-pricing-amount {
        font-size: 1.8rem;
    }

    .g25adv-finale {
        padding-top: 64px;
        padding-bottom: 100px;
    }

    .g25adv-finale-ctas {
        flex-direction: column;
        align-items: center;
    }

    /* Ensure bottom nav doesn't overlap content */
    .g25-page {
        padding-bottom: 80px;
    }
}

/* ========================================
   RELATED PRODUCTS SECTION
   ======================================== */

.g25adv-related-products {
    padding: 80px 0;
    background: rgba(232, 228, 221, 0.02);
}

.g25adv-related-title {
    text-align: center;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    color: var(--g25-text-primary, #e8e4dd);
    margin-bottom: 48px;
    font-weight: 600;
}

.g25adv-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

@media (max-width: 991px) {
    .g25adv-related-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 575px) {
    .g25adv-related-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.g25adv-related-card {
    background: rgba(232, 228, 221, 0.03);
    border: 1px solid rgba(232, 228, 221, 0.08);
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.g25adv-related-card:hover {
    transform: translateY(-4px);
    border-color: var(--g25-accent-primary, #c9a430);
    box-shadow: 0 8px 24px rgba(201, 164, 48, 0.15);
}

.g25adv-related-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid rgba(232, 228, 221, 0.08);
    background: rgba(232, 228, 221, 0.02);
}

.g25adv-related-content {
    padding: 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.g25adv-related-content h4 {
    font-size: 1.15rem;
    color: var(--g25-text-primary, #e8e4dd);
    margin-bottom: 10px;
    font-weight: 600;
    line-height: 1.3;
}

.g25adv-related-content p {
    font-size: 0.9rem;
    color: var(--g25-text-secondary, #a8a098);
    line-height: 1.6;
    margin-bottom: 18px;
    flex-grow: 1;
}

.g25adv-related-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--g25-accent-primary, #c9a430);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.g25adv-related-link:hover {
    color: var(--g25-accent-primary, #c9a430);
    text-decoration: none;
    gap: 12px;
}

.g25adv-related-link i {
    transition: transform 0.3s ease;
    font-size: 0.85rem;
}

.g25adv-related-link:hover i {
    transform: translateX(4px);
}

/* ========================================
   PRINT
   ======================================== */

@media print {
    .g25adv-hero-cta,
    .g25adv-finale-ctas,
    .g25adv-pricing-cta {
        display: none;
    }

    .g25adv-tool-layout {
        grid-template-columns: 1fr;
    }

    .g25adv-layout-reverse {
        direction: ltr;
    }

    .g25adv-related-products {
        display: none;
    }
}
