/**
 * Brand Single Page CSS
 * 
 * Stili per la pagina dettaglio del singolo brand (single-brand.php)
 * Include: titolo, badge, descrizione, key features, media, gallery, related brands
 * 
 * @package CreateAI
 * @since 1.0.0
 */

/* ==========================================
   WRAPPER & CONTAINER
   Layout principale della pagina brand
   ========================================== */

.tool-page-wrapper {
    width: 100%;
    padding: var(--page-padding-desktop);
    min-height: 60vh;
    position: relative;
    overflow: visible; /* Allow SALE badge to overflow */
}

/* Add extra space at top when seasonal theme is active (for SALE badge) */
body.seasonal-theme .tool-page-wrapper {
    padding-top: calc(var(--page-padding-desktop, 2rem) + 30px);
}

/* Background image from gallery - REMOVED */

.tool-page-container {
    max-width: var(--box-max-width);
    margin: 0 auto;
    padding: var(--wrapper-padding-desktop);
}

/* ==========================================
   CONTENT BOX
   Box principale con effetto glassmorphism
   ========================================== */

.tool-page-content {
    position: relative;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-top: none;
    border-radius: var(--box-border-radius);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 24px 64px rgba(0, 0, 0, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    padding: 2rem;
    margin: 0 auto var(--section-gap);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    overflow: visible;
}

.tool-page-content > .tool-hero-section,
.tool-page-content > .tool-section-box,
.tool-page-content > .tool-collapsible-section,
.tool-page-content > .tool-made-with-box,
.tool-page-content > .tool-main-cta-section {
    margin-top: 0;
    margin-bottom: 0;
}

.tool-page-content > .tool-hero-section + .tool-section-box,
.tool-page-content > .tool-hero-section + .tool-collapsible-section,
.tool-page-content > .tool-hero-section + .tool-made-with-box,
.tool-page-content > .tool-hero-section + .tool-main-cta-section {
    margin-top: 0.35rem;
}

/* Gradient fade line at top using accent color */
.tool-page-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        var(--tool-accent-color, rgba(255, 255, 255, 0.3)) 50%,
        transparent 100%);
    border-radius: var(--box-border-radius) var(--box-border-radius) 0 0;
    pointer-events: none;
}

/* ==========================================
   TITLE
   Titolo H1 del brand (SEO importante)
   ========================================== */

.tool-page-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #ffffff;
    -webkit-text-fill-color: #ffffff;
    margin: 0 0 0.75rem 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2;
    text-shadow:
        0 0 24px var(--tool-accent-color, rgba(255, 255, 255, 0.2)),
        0 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 1;
}

/* Badge below title - Glass style, prominent */
.tool-page-badge-below-title {
    display: block;
    width: fit-content;
    margin: 0 auto 2rem auto;
    padding: 0.6rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* ==========================================
   BADGE
   Etichetta "Popular", "New", "Top Rated" etc.
   Posizionata nell'angolo del media container
   ========================================== */

.tool-page-media-container {
    position: relative;
}

.brand-page-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
    padding: 0.35rem 0.75rem;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    opacity: 0.85;
    width: auto;
    display: inline-block;
    white-space: nowrap;
}

/* Badge Color Variants - Muted colors (applies to both positions) */
.tool-page-badge-popular,
.tool-page-badge-below-title.tool-page-badge-popular {
    background: rgba(255, 215, 0, 0.7);
    color: #000;
}

.tool-page-badge-new,
.tool-page-badge-below-title.tool-page-badge-new {
    background: rgba(0, 200, 83, 0.7);
    color: #fff;
}

.tool-page-badge-top-rated,
.tool-page-badge-below-title.tool-page-badge-top-rated {
    background: rgba(255, 87, 34, 0.7);
    color: #fff;
}

.tool-page-badge-editor-choice,
.tool-page-badge-below-title.tool-page-badge-editor-choice {
    background: rgba(156, 39, 176, 0.7);
    color: #fff;
}

.tool-page-badge-free,
.tool-page-badge-below-title.tool-page-badge-free {
    background: rgba(0, 188, 212, 0.7);
    color: #fff;
}

.tool-page-badge-premium,
.tool-page-badge-below-title.tool-page-badge-premium {
    background: rgba(147, 112, 219, 0.7);
    color: #fff;
}

/* ==========================================
   SCORE STICKER — Overlapping the media container
   ========================================== */

/* The media container needs relative positioning for the sticker */
.tool-page-media-container.has-score-sticker {
    position: relative;
}

.tool-hero-title-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.tool-hero-title-row .tool-page-title {
    margin: 0;
}

/* Sticker beside title: hidden on mobile, shown on desktop two-col */
.tool-score-sticker--beside-title {
    display: none !important;
    position: relative;
    bottom: auto;
    right: auto;
    flex-shrink: 0;
}

/* Sticker on image: always absolute inside media container */
.tool-score-sticker--on-image {
    position: absolute;
    bottom: 16px;
    right: 16px;
}

@media (min-width: 769px) {
    .tool-hero-two-col .tool-score-sticker--beside-title { display: flex !important; }
    .tool-hero-two-col .tool-score-sticker--on-image     { display: none !important; }
}

.tool-score-sticker {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(18, 18, 24, 0.82);
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    border: 2px solid rgba(255,255,255,0.14);
    box-shadow:
        0 6px 24px rgba(0,0,0,0.45),
        0 1px 0 rgba(255,255,255,0.08) inset;
    z-index: 10;
    gap: 0;
    line-height: 1;
    transform: rotate(-6deg);
    transition: transform 0.25s ease;
}

.tool-score-sticker:hover {
    transform: rotate(0deg) scale(1.06);
}

.sticker-value {
    font-size: 1.45rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
}

.sticker-denom {
    font-size: 0.6rem;
    font-weight: 700;
    opacity: 0.5;
    margin-top: -1px;
    letter-spacing: 0;
}

.sticker-label {
    font-size: 0.42rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    opacity: 0.45;
    margin-top: 2px;
}

/* Color variants */
.tool-score-sticker.score-excellent .sticker-value {
    background: linear-gradient(160deg, #c8f5b0, #52c41a);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tool-score-sticker.score-excellent {
    border-color: rgba(82, 196, 26, 0.35);
    box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 16px rgba(82,196,26,0.18), 0 1px 0 rgba(255,255,255,0.08) inset;
}

.tool-score-sticker.score-good .sticker-value {
    background: linear-gradient(160deg, #f5e4b8, #d4ae73);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.tool-score-sticker.score-good {
    border-color: rgba(212, 174, 115, 0.35);
    box-shadow: 0 6px 24px rgba(0,0,0,0.45), 0 0 16px rgba(212,174,115,0.15), 0 1px 0 rgba(255,255,255,0.08) inset;
}

.tool-score-sticker.score-average .sticker-value {
    color: rgba(255,255,255,0.75);
}

/* Standalone version (no image) */
.tool-score-sticker-standalone {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 1.5rem auto;
    background: rgba(18,18,24,0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 2px solid rgba(255,255,255,0.14);
    box-shadow: 0 6px 24px rgba(0,0,0,0.4);
    transform: rotate(-6deg);
}
.tool-score-sticker-standalone .sticker-value { font-size: 1.6rem; font-weight: 900; letter-spacing: -1px; }
.tool-score-sticker-standalone .sticker-denom { font-size: 0.65rem; opacity: 0.5; }
.tool-score-sticker-standalone .sticker-label { font-size: 0.45rem; letter-spacing: 1.2px; text-transform: uppercase; opacity: 0.45; margin-top: 2px; }

@media (max-width: 768px) {
    .tool-score-sticker {
        width: 60px;
        height: 60px;
        bottom: -14px;
        right: 14px;
    }
    .sticker-value { font-size: 1.2rem; }
    .sticker-denom { font-size: 0.52rem; }
    .sticker-label { font-size: 0.38rem; }
}

/* ==========================================
   STATS MINIMAL - Icon + Value only, one line
   ========================================== */

.brand-stats-minimal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    margin: 0 0 2rem 0;
    padding: 0;
}

.stat-minimal-item {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.stat-minimal-icon {
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6)) 
            drop-shadow(0 0 15px rgba(255, 255, 255, 0.2));
}

.stat-minimal-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.5px;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.9),
        0 0 15px rgba(255, 255, 255, 0.2);
}

/* ==========================================
   SECTION SPACER
   Spaziatura tra sezioni
   ========================================== */

.tool-page-section-spacer {
    height: var(--section-gap);
    width: 100%;
}

/* ==========================================
   SECTION TITLES - Stile unificato per tutti i titoli
   Collegano visivamente il titolo al box sottostante
   ========================================== */

.brand-description-title,
.tool-key-features-title,
.tool-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 3px;
    text-align: center;
    margin: 0 0 1rem 0;
    padding-top: 0.25rem;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* First section title has no top margin */
.tool-section-box:first-child .tool-section-title,
.tool-collapsible-section:first-child .tool-section-title {
    margin-top: 0;
}

/* Prima sezione non ha margine sopra extra */
.brand-description-title:first-of-type {
    margin-top: 2rem;
}

/* ==========================================
   DESCRIPTION BOX
   Box centrato contenente la descrizione
   ========================================== */

.tool-description-box {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 2.5rem;
    background: transparent;
    border: none;
}

/* Engraved/debossed text effect - like carved in stone */
.tool-page-description {
    text-shadow: 
        0 1px 2px rgba(0, 0, 0, 0.9),
        0 -1px 1px rgba(255, 255, 255, 0.03);
}

.tool-page-description h2,
.tool-page-description h3,
.tool-page-description h4 {
    text-shadow: 
        0 2px 3px rgba(0, 0, 0, 0.8),
        0 -1px 1px rgba(255, 255, 255, 0.04);
}

/* ==========================================
   DESCRIPTION
   Contenuto WYSIWYG auto-stilizzato
   Include: headings, paragraphs, lists, quotes
   ========================================== */

.tool-page-description {
    width: 100%;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.85;
    text-align: left;
}

/* Headings dentro la descrizione */
.tool-page-description h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 2rem 0 1rem 0;
    padding-bottom: 0;
    border-bottom: none;
}

.tool-page-description h2:first-child {
    margin-top: 0;
}

.tool-page-description h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 1.75rem 0 0.75rem 0;
}

.tool-page-description h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin: 1.5rem 0 0.5rem 0;
}

/* Paragrafi */
.tool-page-description p {
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
}

.tool-page-description p:last-child {
    margin-bottom: 0;
}

.tool-page-description strong {
    color: #ffffff;
    font-weight: 600;
}

.tool-page-description em {
    color: rgba(255, 255, 255, 0.9);
}

/* Link */
.tool-page-description a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
}

.tool-page-description a:hover {
    color: #E1BEE7;
    border-bottom-color: #E1BEE7;
}

/* Liste */
.tool-page-description ul,
.tool-page-description ol {
    margin: 1rem 0 1.5rem 0;
    padding-left: 1.5rem;
}

.tool-page-description li {
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
}

.tool-page-description ul li::marker {
    color: rgba(255, 255, 255, 0.5);
}

.tool-page-description ol li::marker {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
}

/* Blockquote */
.tool-page-description blockquote {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 0 12px 12px 0;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
}

.tool-page-description blockquote p {
    margin: 0;
}

/* Immagini nella descrizione */
.tool-page-description img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.5rem 0;
}

/* Tabelle */
.tool-page-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.tool-page-description th,
.tool-page-description td {
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: left;
}

.tool-page-description th {
    background: rgba(156, 39, 176, 0.15);
    color: #ffffff;
    font-weight: 600;
}

.tool-page-description td {
    color: rgba(255, 255, 255, 0.85);
}

/* Codice */
.tool-page-description code {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.9);
}

.tool-page-description pre {
    background: rgba(0, 0, 0, 0.3);
    padding: 1rem;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1rem 0;
}

.tool-page-description pre code {
    background: none;
    padding: 0;
}

/* ==========================================
   KEY FEATURES
   Tag/pill con le funzionalità principali
   Stile glassmorphism elegante
   ========================================== */

.tool-key-features-section {
    width: 100%;
}

/* Key Features box style - già incluso in .tool-collapsible-section generale */

/* .tool-key-features-title stili in sezione SECTION TITLES */

.tool-key-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    max-width: 900px;
    margin: 0 auto;
}

.tool-key-feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    transition: all 0.3s ease;
    white-space: nowrap;
    text-align: center;
}

.tool-key-feature-item .feature-icon {
    font-size: 0.9rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.tool-key-feature-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-1px);
}

/* ==========================================
   CONTENT TEXT
   Testo generico della pagina
   ========================================== */

.tool-page-content-text {
    color: #ffffff;
    font-size: 1.125rem;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.tool-page-content-text p {
    margin-bottom: 1.5rem;
}

/* ==========================================
   BACK LINK
   Link per tornare alla lista brands
   ========================================== */

.tool-page-back {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.tool-page-back-link {
    display: inline-block;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
}

.tool-page-back-link:hover {
    color: rgba(255, 255, 255, 0.95);
    background: rgba(44, 44, 46, 0.75);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ==========================================
   HERO — TWO COLUMN LAYOUT
   ========================================== */

.tool-hero-two-col {
    display: grid;
    grid-template-columns: 55% 1fr;
    gap: 2.5rem;
    align-items: center;
    margin-bottom: 0;
}

/* Image column */
.tool-hero-image-col {
    position: relative;
}

.tool-hero-image-col .tool-page-media-container {
    margin: 0;
    max-width: 100%;
}

/* Content column */
.tool-hero-content-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.tool-hero-two-col .tool-page-title {
    text-align: left;
    font-size: 3rem;
    margin: 0;
}

.tool-hero-two-col .tool-page-badge-below-title {
    margin: 0;
}

/* CTA inside hero */
.tool-hero-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 0.5rem;
}

.tool-hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #00C853, #00E676);
    color: #000;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    box-shadow:
        0 0 20px rgba(0, 230, 118, 0.35),
        0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-hero-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 30px rgba(0, 230, 118, 0.5),
        0 8px 20px rgba(0, 0, 0, 0.35);
    color: #000;
    text-decoration: none;
}

/* ==========================================
   HERO HIGHLIGHTS (desktop only)
   ========================================== */

.tool-hero-highlights {
    display: none; /* hidden on mobile — standalone summary box handles it */
    width: 100%;
    margin-top: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.tool-hero-highlights-title {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    margin: 0 0 0.85rem 0;
}

.tool-hero-highlights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 1rem;
}

.tool-hero-highlight-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 0.55rem 0.75rem;
}

.tool-hero-highlight-label {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.tool-hero-highlight-icon {
    font-size: 0.75rem;
    line-height: 1;
}

.tool-hero-highlight-value {
    font-size: 0.85rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
}

@media (min-width: 769px) {
    .tool-hero-highlights {
        display: block;
    }

    /* Hide standalone summary box on desktop when hero has two-col layout */
    .tool-hero-two-col ~ .tool-summary-box {
        display: none;
    }
}

/* Inline score badge in CTA row */
.tool-hero-score-inline {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 0.4rem 0.75rem;
}

.tool-hero-score-inline .hero-score-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    line-height: 1;
}

.tool-hero-score-inline .hero-score-label {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
}

.tool-hero-score-inline.score-excellent .hero-score-val { color: #00E676; }
.tool-hero-score-inline.score-good      .hero-score-val { color: #69F0AE; }
.tool-hero-score-inline.score-average   .hero-score-val { color: #FFD740; }

/* ==========================================
   MEDIA CONTAINER
   Immagine/Video principale del brand
   ========================================== */

.tool-page-media-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tool-page-image {
    width: 100%;
    max-width: 100%;
    max-height: 620px;
    height: auto;
    display: block;
    object-fit: contain;
    object-position: center center;
    border-radius: 16px;
}

.tool-page-video-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 24px;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin: 0 auto;
}

.tool-page-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* ==========================================
   CTA BUTTON
   Pulsante principale "GO TO [BRAND]"
   ========================================== */

.tool-page-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
}

/* Pulsante finale dopo FAQ */
.tool-page-final-cta {
    margin-top: 1rem !important;
}

.tool-page-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background: var(--tool-accent-color, rgba(28, 28, 30, 0.6));
    border: 1px solid color-mix(in srgb, var(--tool-accent-color, #ffffff) 30%, transparent);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 25px color-mix(in srgb, var(--tool-accent-color, transparent) 40%, transparent);
}

.tool-page-button:hover:not(:disabled) {
    background: color-mix(in srgb, var(--tool-accent-color, #ffffff) 110%, #000);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 35px color-mix(in srgb, var(--tool-accent-color, transparent) 60%, transparent);
    transform: translateY(-2px);
    color: #ffffff;
    border-color: color-mix(in srgb, var(--tool-accent-color, #ffffff) 50%, transparent);
}

.tool-page-button:disabled {
    opacity: 0.85;
    cursor: not-allowed;
}

/* ==========================================
   STICKY CTA BUTTON
   Bottone CTA che appare in basso quando scrolli
   ========================================== */

.tool-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
    padding: 1rem 2rem;
    z-index: 999;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.tool-sticky-cta.visible {
    transform: translateY(0);
}

.tool-sticky-cta-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.tool-sticky-cta-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tool-sticky-cta-button {
    display: inline-block;
    padding: 0.85rem 2rem;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background: var(--tool-accent-color, #4A90E2);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 12px color-mix(in srgb, var(--tool-accent-color, #000) 60%, #000),
        0 0 20px color-mix(in srgb, var(--tool-accent-color, transparent) 40%, transparent);
    white-space: nowrap;
}

.tool-sticky-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 6px 16px color-mix(in srgb, var(--tool-accent-color, #000) 70%, #000),
        0 0 30px color-mix(in srgb, var(--tool-accent-color, transparent) 60%, transparent);
    color: #ffffff;
    background: color-mix(in srgb, var(--tool-accent-color, #ffffff) 110%, #000);
}

/* ==========================================
   MADE WITH BOX
   Sezione "Generated Content" con gallery
   ========================================== */

.tool-made-with-box {
    width: 100%;
    max-width: var(--box-max-width);
    margin: 0 auto;
    padding: var(--box-padding-desktop);
    background: rgba(28, 28, 30, 0.5);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: none;
    border-radius: var(--box-border-radius);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.4),
        0 24px 64px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.tool-made-with-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.25) 30%,
        rgba(255, 255, 255, 0.4) 50%, 
        rgba(255, 255, 255, 0.25) 70%,
        transparent 100%);
    pointer-events: none;
}

.made-with-header {
    text-align: center;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.made-with-section-title,
.made-with-title {
    display: block;
    margin: 0 0 1rem 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.75);
    text-transform: uppercase;
    letter-spacing: 3px;
    position: relative;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Gallery Grid */
.made-with-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 0;
}

.made-with-image-card {
    width: 100%;
    min-height: 400px;
    background: rgba(28, 28, 30, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.made-with-image-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 8px 28px rgba(0, 0, 0, 0.36),
        0 16px 40px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    background: rgba(34, 34, 36, 0.46);
    border: 1px solid rgba(255, 255, 255, 0.13);
}

.made-with-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    transition: transform 0.3s ease;
}

.made-with-image-card:hover .made-with-image {
    transform: scale(1.02);
}

.made-with-empty-message {
    text-align: center;
    padding: 3rem 2rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1rem;
}

.made-with-empty-message p {
    margin: 0;
}

/* ==========================================
   RELATED BRANDS SECTION
   Sezione brand correlati in fondo alla pagina
   ========================================== */

.related-tools-section {
    width: 100%;
    margin-top: var(--section-gap);
    margin-bottom: var(--section-gap);
    padding: 0;
}

.related-tools-container {
    max-width: var(--box-max-width);
    margin: 0 auto;
    padding: 2.5rem;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--box-border-radius);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 24px 64px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.related-tools-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    margin: 0 0 3rem 0;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.related-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: var(--box-max-width);
    margin: 0 auto;
}

/* Related Brand Card */
.related-tool-card {
    position: relative;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--box-border-radius-mobile);
    padding: 2rem;
    padding-top: 2.5rem;
    margin-top: 0.75rem;
    transition: all 0.3s ease;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 20px 56px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.related-tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 12px 34px rgba(0, 0, 0, 0.42),
        0 24px 52px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.25);
    background: rgba(36, 36, 38, 0.68);
    backdrop-filter: blur(22px) saturate(185%);
    -webkit-backdrop-filter: blur(22px) saturate(185%);
    border: 1px solid rgba(255, 255, 255, 0.17);
}

/* Related Brand Badge */
.related-tool-badge {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 8px;
    z-index: 20;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

/* Badge Color Variants */
.related-tool-badge-popular {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
}

.related-tool-badge-new {
    background: linear-gradient(135deg, #00C853 0%, #00E676 100%);
    color: #fff;
}

.related-tool-badge-top-rated {
    background: linear-gradient(135deg, #FF5722 0%, #FF7043 100%);
    color: #fff;
}

.related-tool-badge-editor-choice {
    background: linear-gradient(135deg, #9C27B0 0%, #BA68C8 100%);
    color: #fff;
}

.related-tool-badge-free {
    background: linear-gradient(135deg, #00BCD4 0%, #0097A7 100%);
    color: #fff;
}

.related-tool-badge-premium {
    background: linear-gradient(135deg, #9370DB 0%, #7B52AB 100%);
    color: #fff;
}

/* Related Brand Image */
.related-tool-image-container {
    width: 100%;
    height: 350px;
    overflow: hidden;
    background: transparent;
    border: none;
    border-radius: var(--box-border-radius);
    display: flex;
    justify-content: center;
    align-items: center;
}

.related-tool-image-container a {
    display: block;
    width: 100%;
    height: 100%;
}

.related-tool-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: var(--box-border-radius);
}

/* Related Brand Name */
.related-tool-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
}

.related-tool-name a {
    background: linear-gradient(135deg, 
        #ffffff 0%, 
        var(--tool-accent-color, #ffffff) 50%, 
        #ffffff 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
    transition: all 0.3s ease;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
}

.related-tool-name a:hover {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.related-tool-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

/* Related Brand Button */
.related-tool-button {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    text-decoration: none;
    color: #ffffff;
    background: var(--tool-accent-color, rgba(28, 28, 30, 0.6));
    border: 1px solid color-mix(in srgb, var(--tool-accent-color, #ffffff) 30%, transparent);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 0 20px color-mix(in srgb, var(--tool-accent-color, transparent) 30%, transparent);
}

.related-tool-button:hover {
    background: color-mix(in srgb, var(--tool-accent-color, #ffffff) 110%, #000);
    border-color: color-mix(in srgb, var(--tool-accent-color, #ffffff) 50%, transparent);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 0 30px color-mix(in srgb, var(--tool-accent-color, transparent) 50%, transparent);
    transform: translateY(-2px);
    color: #ffffff;
}

/* ==========================================
   RESPONSIVE - TABLET (max 1024px)
   ========================================== */

@media (max-width: 1024px) {
    .tool-page-title {
        font-size: 2.5rem;
    }
    
    .tool-page-content {
        padding: var(--box-padding-desktop);
    }
    
    .made-with-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .made-with-image-card {
        min-height: 350px;
        padding: 0;
    }
    
    .tool-made-with-box {
        padding: var(--box-padding-desktop);
    }
    
    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .related-tools-title {
        font-size: 2rem;
    }
}

/* ==========================================
   RESPONSIVE - MOBILE (max 768px)
   ========================================== */

@media (max-width: 768px) {
    .tool-page-wrapper {
        padding: var(--page-padding-mobile);
    }
    
    .tool-page-container {
        padding: 0 0.5rem;
    }
    
    .tool-page-content {
        padding: 1.5rem 1rem;
        gap: 0.75rem;
        margin: 0 auto var(--section-gap-mobile);
    }

    .tool-page-content > .tool-hero-section + .tool-section-box,
    .tool-page-content > .tool-hero-section + .tool-collapsible-section,
    .tool-page-content > .tool-hero-section + .tool-made-with-box,
    .tool-page-content > .tool-hero-section + .tool-main-cta-section {
        margin-top: 0.5rem;
    }
    
    .tool-page-title {
        font-size: 2rem;
        letter-spacing: 2px;
        margin-bottom: 0.5rem;
    }
    
    .tool-page-badge-below-title {
        padding: 0.5rem 1.25rem;
        font-size: 0.65rem;
        letter-spacing: 1.5px;
        margin-bottom: 1.5rem;
    }
    
    .tool-page-media-container {
        margin: 0 auto;
    }

    /* Two-col hero → single column on mobile */
    .tool-hero-two-col {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    /* On mobile: content col (H1) comes first visually */
    .tool-hero-image-col  { order: 2; }
    .tool-hero-content-col { order: 1; }

    .tool-hero-two-col .tool-page-title {
        text-align: center;
        font-size: 2rem;
    }

    .tool-hero-two-col .tool-page-badge-below-title {
        margin: 0 auto;
    }

    .tool-hero-content-col {
        align-items: center;
    }

    .tool-hero-cta {
        justify-content: center;
    }

    .tool-hero-image-col .tool-page-media-container {
        margin: 0 auto;
    }
    
    .tool-page-section-spacer {
        height: var(--section-gap-mobile);
    }
    
    /* Stats minimal mobile */
    .brand-stats-minimal {
        gap: 1.5rem;
        margin: 0rem 0 1.5rem 0;
        flex-wrap: wrap;
    }
    
    .stat-minimal-item {
        gap: 0.4rem;
    }
    
    .stat-minimal-icon {
        font-size: 1.2rem;
    }
    
    .stat-minimal-value {
        font-size: 0.85rem;
    }
    
    .brand-page-badge {
        top: 0.75rem;
        right: 0.75rem;
        font-size: 0.55rem;
        padding: 0.3rem 0.65rem;
    }
    
    /* Section Titles mobile */
    .brand-description-title,
    .tool-key-features-title,
    .tool-section-title {
        font-size: 0.75rem;
        letter-spacing: 2px;
        margin: 0 0 0.85rem 0;
    }
    
    .brand-description-title:first-of-type {
        margin-top: 0;
    }
    
    /* Description Box mobile */
    .tool-description-box {
        margin: 0 auto;
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    /* Description mobile */
    .tool-page-description {
        font-size: 1rem;
        line-height: 1.75;
    }
    
    .tool-page-description h2 {
        font-size: 1.35rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .tool-page-description h3 {
        font-size: 1.15rem;
        margin: 1.25rem 0 0.5rem 0;
    }
    
    .tool-page-description ul,
    .tool-page-description ol {
        padding-left: 1.25rem;
    }
    
    .tool-page-description blockquote {
        padding: 1rem 1.25rem;
        margin: 1rem 0;
    }
    
    /* Key Features mobile */
    .tool-key-features-section {
        margin: 0;
    }
    
    /* .tool-key-features-title mobile in Section Titles mobile */
    
    .tool-key-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.6rem;
    }
    
    .tool-key-feature-item {
        padding: 0.65rem 0.85rem;
        font-size: 0.7rem;
        border-radius: 6px;
        gap: 0.4rem;
    }
    
    .tool-key-feature-item .feature-icon {
        font-size: 0.8rem;
    }

    .tool-key-feature-card .feature-icon {
        width: 2.7rem;
        height: 2.7rem;
        border-radius: 12px;
    }

    .tool-key-feature-card .feature-icon svg {
        width: 1.3rem;
        height: 1.3rem;
    }
    
    /* Button mobile */
    .tool-page-button-container {
        margin-top: 0.25rem;
    }
    
    .tool-page-button {
        padding: 0.85rem 2rem;
        font-size: 0.85rem;
        letter-spacing: 1px;
        border-radius: 8px;
    }
    
    /* Sticky CTA mobile */
    .tool-sticky-cta {
        padding: 0.85rem 1rem;
    }
    
    .tool-sticky-cta-content {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .tool-sticky-cta-title {
        font-size: 0.95rem;
    }
    
    .tool-sticky-cta-button {
        width: 100%;
        padding: 0.75rem 1.5rem;
        font-size: 0.85rem;
    }
    
    /* Made With mobile */
    .tool-made-with-box {
        padding: var(--box-padding-mobile);
        margin: 0 auto;
    }
    
    .made-with-section-title,
    .made-with-title {
        font-size: 0.75rem;
        letter-spacing: 2px;
        margin: 0 0 0.85rem 0;
    }
    
    .made-with-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .made-with-image-card {
        min-height: 280px;
        padding: 0;
    }
    
    /* Related Brands mobile */
    .related-tools-section {
        margin: var(--section-gap-mobile) auto 0;
    }
    
    .related-tools-container {
        padding: 2rem 1.5rem;
    }
    
    .related-tools-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .related-tool-card {
        padding: 1.5rem;
        gap: 1.25rem;
    }
    
    .related-tool-image-container {
        height: 350px;
    }
    
    .related-tool-badge {
        top: -0.5rem;
        right: 0.75rem;
        padding: 0.4rem 0.75rem;
        font-size: 0.65rem;
        border-radius: 6px;
    }
    
    .related-tool-name {
        font-size: 1.25rem;
    }
    
    .related-tool-button {
        width: 100%;
        padding: 1rem 2rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   RESPONSIVE - SMALL MOBILE (max 575px)
   ========================================== */

@media (max-width: 575px) {
    .related-tools-grid {
        grid-template-columns: 1fr;
    }
    
    /* Gallery rimane a 2 colonne anche su mobile piccolo */
    .made-with-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }
    
    .made-with-image-card {
        min-height: 180px; /* Più compatto su mobile piccolo */
    }
}

/* ==========================================
   SUMMARY BOX
   ========================================== */

/* Quick Overview box style - già incluso in .tool-collapsible-section generale */

.summary-box-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.875rem;
    margin-top: 1rem;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease backwards;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.summary-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    transition: left 0.5s ease;
}

.summary-item:hover::before {
    left: 100%;
}

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

.summary-item:hover {
    background: rgba(255, 255, 255, 0.065);
    border-color: color-mix(in srgb, var(--tool-accent-color, rgba(255, 255, 255, 0.2)) 45%, rgba(255, 255, 255, 0.12));
    transform: translateY(-2px);
    box-shadow: 
        0 6px 18px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.summary-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.25rem;
}

.summary-icon {
    font-size: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.summary-item:hover .summary-icon {
    transform: scale(1.08);
}

.summary-label::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--tool-accent-color, rgba(255, 255, 255, 0.5));
    box-shadow: 0 0 8px var(--tool-accent-color, rgba(255, 255, 255, 0.5));
    flex-shrink: 0;
}

.summary-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
}

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


/* ==========================================
   KEY FEATURES ENHANCED
   ========================================== */

.tool-key-features-grid-enhanced {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.875rem;
    margin-top: 0;
}

.tool-key-feature-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 0.95rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    transition: all 0.3s ease;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.tool-key-feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.feature-heading {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.feature-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--feature-icon-color, #f0d7a8);
    flex-shrink: 0;
    line-height: 1;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.2));
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.25;
}

.feature-description {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
    margin: 0;
}

/* ==========================================
   SPECS TABLE
   ========================================== */

.tool-specs-section {
    margin-bottom: 0;
}

/* Specs box style - già incluso in .tool-collapsible-section generale */

.specs-table-wrapper {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 0;
    margin-top: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) rgba(255, 255, 255, 0.05);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.specs-table-wrapper::-webkit-scrollbar {
    height: 8px;
}

.specs-table-wrapper::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin: 0.5rem;
}

.specs-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.specs-table-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
}

.tool-specs-table {
    width: 100%;
    min-width: 700px;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
}

.tool-specs-table thead {
    display: table-header-group;
}

.tool-specs-table thead tr {
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.spec-label-header,
.spec-value-header,
.spec-rating-header {
    padding: 0.875rem 1rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
    text-align: left;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.02);
}

.spec-label-header {
    width: 28%;
    min-width: 140px;
}

.spec-value-header {
    width: 45%;
}

.spec-rating-header {
    width: 27%;
    min-width: 120px;
}

.tool-specs-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s ease;
}

.tool-specs-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
}

.tool-specs-table tbody tr:last-child {
    border-bottom: none;
}

.tool-specs-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.01);
}

.tool-specs-table tbody tr:nth-child(even):hover {
    background: rgba(255, 255, 255, 0.05);
}

.spec-label {
    padding: 1rem 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-align: left;
    width: 28%;
    min-width: 140px;
    vertical-align: middle;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    white-space: nowrap;
    background: rgba(255, 255, 255, 0.02);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-sizing: border-box;
}

.spec-value {
    padding: 1rem 1rem;
    padding-left: 0.75rem;
    color: #ffffff;
    font-weight: 500;
    vertical-align: middle;
    font-size: 0.95rem;
    text-align: left;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    line-height: 1.6;
    box-sizing: border-box;
    width: 45%;
}

.spec-rating {
    padding: 1rem 1rem;
    padding-left: 0.75rem;
    vertical-align: middle;
    text-align: left;
    width: 27%;
    min-width: 120px;
    box-sizing: border-box;
}

.spec-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.875rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--rating-color, rgba(255, 255, 255, 0.3));
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #ffffff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.spec-rating-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        var(--rating-color, rgba(255, 255, 255, 0.1)) 0%, 
        transparent 100%
    );
    opacity: 0.15;
    transition: opacity 0.3s ease;
}

.spec-rating-badge:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.3),
        0 0 20px var(--rating-color, rgba(255, 255, 255, 0.2));
    border-color: var(--rating-color, rgba(255, 255, 255, 0.2));
}

.spec-rating-badge:hover::before {
    opacity: 0.25;
}

.rating-icon {
    font-size: 0.9rem;
    line-height: 1;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}

.spec-rating-badge:hover .rating-icon {
    transform: scale(1.2) rotate(5deg);
}

.rating-label {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Rating level specific colors */
.spec-rating-excellent {
    --rating-color: #10b981;
    border-left-color: #10b981;
}

.spec-rating-good {
    --rating-color: #3b82f6;
    border-left-color: #3b82f6;
}

.spec-rating-fair {
    --rating-color: #f59e0b;
    border-left-color: #f59e0b;
}

.spec-rating-basic {
    --rating-color: #6b7280;
    border-left-color: #6b7280;
}

/* ==========================================
   MAIN CTA BUTTON SECTION
   ========================================== */

.tool-main-cta-section {
    margin: 0;
    text-align: center;
    padding: 1.5rem;
    background: rgba(28, 28, 30, 0.3);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.tool-main-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 4rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #ffffff !important;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--tool-accent-color, #ffffff) 42%, rgba(255, 255, 255, 0.12)) 0%,
        color-mix(in srgb, var(--tool-accent-color, #ffffff) 24%, rgba(255, 255, 255, 0.04)) 100%) !important;
    border: 1px solid color-mix(in srgb, var(--tool-accent-color, #ffffff) 46%, rgba(255, 255, 255, 0.12));
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.24),
        0 0 30px color-mix(in srgb, var(--tool-accent-color, transparent) 26%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.14);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.24);
    visibility: visible !important;
    opacity: 1 !important;
    min-width: 400px;
    width: 100%;
    max-width: 600px;
}

.tool-main-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--tool-accent-color, #ffffff) 50%, rgba(255, 255, 255, 0.14)) 0%,
        color-mix(in srgb, var(--tool-accent-color, #ffffff) 30%, rgba(255, 255, 255, 0.05)) 100%) !important;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28),
        0 0 36px color-mix(in srgb, var(--tool-accent-color, transparent) 34%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    gap: 0.875rem;
}

.button-arrow {
    font-size: 1rem;
    transition: transform 0.3s ease;
    line-height: 1;
}

.tool-main-button:hover .button-arrow {
    transform: translateX(3px);
}

/* Sticky CTA for mobile */
@media (max-width: 767px) {
    .tool-main-cta-section {
        position: sticky;
        bottom: 0;
        z-index: 100;
        margin: 0;
        padding: 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        background: rgba(20, 20, 22, 0.72);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.42);
    }
    
    .tool-main-button {
        width: 100%;
        min-width: auto;
        max-width: 100%;
        justify-content: center;
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* ==========================================
   OVERVIEW SECTION
   ========================================== */

.tool-overview-section {
    margin-bottom: 0;
}

.tool-overview-section.tool-section-box {
    margin-bottom: 0;
}

.tool-faq-section.tool-section-box {
    margin-bottom: 0;
}

.tool-page-description.truncated {
    max-height: 200px;
    overflow: hidden;
    position: relative;
}

.tool-page-description.expanded {
    max-height: none;
}

.tool-read-more-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.tool-read-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

/* ==========================================
   COLLAPSIBLE SECTIONS
   ========================================== */

/* Box leggero per sezioni interne - poco visibile */
.tool-section-box,
.tool-collapsible-section {
    margin-bottom: 0;
    background: rgba(28, 28, 30, 0.25);
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 12px;
    padding: 1.5rem;
    position: relative;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 40px rgba(0, 230, 118, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.tool-section-box:hover,
.tool-collapsible-section:hover {
    border-color: rgba(0, 230, 118, 0.12);
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        0 0 50px rgba(0, 230, 118, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

/* Read More Button */
.section-read-more-btn {
    width: 100%;
    margin-top: 1.25rem;
    padding: 0.875rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
}

.section-read-more-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.section-read-more-btn.expanded {
    background: rgba(255, 255, 255, 0.08);
}

.read-more-icon {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.section-read-more-btn.expanded .read-more-icon {
    transform: rotate(180deg);
}

.summary-content-wrapper,
.features-content-wrapper,
.specs-content-wrapper,
.pros-cons-content-wrapper {
    padding-top: 0;
    animation: fadeIn 0.3s ease;
    display: block !important; /* Always visible, only items inside are hidden */
}

/* Preview items always visible (first 3) */
.summary-preview,
.feature-preview,
.pros-preview,
.cons-preview {
    display: block !important;
    opacity: 1;
    visibility: visible;
}

.spec-preview {
    display: table-row !important;
    opacity: 1;
    visibility: visible;
}

/* Hidden items (beyond first 3) - hidden by default, shown on expand */
.summary-hidden,
.feature-hidden,
.spec-hidden,
.pros-hidden,
.cons-hidden {
    opacity: 0;
    visibility: hidden;
}

.summary-hidden[hidden],
.feature-hidden[hidden],
.spec-hidden[hidden],
.pros-hidden[hidden],
.cons-hidden[hidden] {
    display: none !important;
}

/* When item is shown via Read More button */
.summary-hidden.item-shown,
.pros-hidden.item-shown,
.cons-hidden.item-shown {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeInUp 0.4s ease;
}

/* For grid items (features) - grid will handle layout, but card needs flex */
.tool-key-features-grid-enhanced .feature-hidden.item-shown,
.tool-key-feature-card.feature-hidden.item-shown {
    display: flex !important;
    flex-direction: column !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeInUp 0.4s ease;
}

/* For table rows (specs) */
.spec-hidden.item-shown {
    display: table-row !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================
   RESPONSIVE - SUMMARY BOX & NEW SECTIONS
   ========================================== */

@media (max-width: 991px) {
    .summary-box-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .tool-key-features-grid-enhanced {
        grid-template-columns: repeat(2, 1fr);
    }

    .tool-key-feature-card {
        padding: 0.85rem 0.9rem;
        gap: 0.35rem;
    }

    .tool-key-feature-card .feature-icon {
        width: 1rem;
        height: 1rem;
    }

    .tool-key-feature-card .feature-title {
        font-size: 1rem;
    }

    .tool-key-feature-card .feature-description {
        font-size: 0.82rem;
        line-height: 1.4;
    }
    
    /* Hide items beyond first 3 on mobile for summary, and beyond first 4 for Key Features */
    .summary-item.summary-preview[data-item-index="4"] {
        display: none !important;
    }
    
    .tool-key-features-grid-enhanced .tool-key-feature-card.feature-preview[data-feature-index="4"],
    .tool-key-features-grid-enhanced .tool-key-feature-card.feature-preview[data-feature-index="5"] {
        display: none !important;
    }
    
    .specs-table-wrapper {
        padding: 1.5rem;
    }
    
    .spec-label,
    .spec-value {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 767px) {
    /* Reduce gaps between boxes on mobile */
    .tool-page-content {
        gap: 0.75rem;
        padding: 1.5rem 1rem;
    }
    
    .tool-section-box,
    .tool-collapsible-section {
        margin-bottom: 0;
        padding: 1.25rem 1rem;
    }
    
    .tool-section-title {
        font-size: 0.75rem;
        letter-spacing: 2px;
        margin: 0 0 1rem 0;
        padding-top: 0;
    }
    
    .summary-box-grid {
        grid-template-columns: 1fr;
        gap: 0.625rem;
    }
    
    .tool-key-features-grid-enhanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .tool-key-feature-card {
        padding: 0.8rem 0.8rem 0.85rem;
        border-radius: 9px;
        gap: 0.28rem;
    }

    .tool-key-feature-card .feature-icon {
        width: 0.95rem;
        height: 0.95rem;
    }

    .tool-key-feature-card .feature-heading {
        gap: 0.45rem;
    }

    .tool-key-feature-card .feature-title {
        font-size: 0.82rem;
        line-height: 1.2;
    }

    .tool-key-feature-card .feature-description {
        font-size: 0.72rem;
        line-height: 1.35;
    }
    
    /* Specs table mobile - proper HTML table with horizontal scroll */
    .specs-table-wrapper {
        padding: 0.5rem;
        margin: 0 -0.5rem;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.02);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        overflow-x: auto;
        overflow-y: visible;
        -webkit-overflow-scrolling: touch;
    }
    
    .tool-specs-table {
        width: 100%;
        min-width: 650px;
        border-collapse: separate;
        border-spacing: 0;
        table-layout: fixed;
    }
    
    .tool-specs-table thead {
        display: table-header-group;
    }
    
    .tool-specs-table thead tr {
        border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    }
    
    .spec-label-header,
    .spec-value-header,
    .spec-rating-header {
        padding: 0.75rem 0.75rem;
        font-size: 0.65rem;
    }
    
    .spec-label-header {
        width: 26%;
        min-width: 120px;
    }
    
    .spec-value-header {
        width: 42%;
    }
    
    .spec-rating-header {
        width: 32%;
        min-width: 100px;
    }
    
    .tool-specs-table tbody tr {
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        transition: background 0.3s ease;
    }
    
    .tool-specs-table tbody tr:hover {
        background: rgba(255, 255, 255, 0.04);
    }
    
    .tool-specs-table tbody tr:last-child {
        border-bottom: none;
    }
    
    .tool-specs-table tbody tr:nth-child(even) {
        background: rgba(255, 255, 255, 0.01);
    }
    
    .tool-specs-table tbody tr:nth-child(even):hover {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .spec-label {
        padding: 0.875rem 0.75rem;
        font-weight: 600;
        color: rgba(255, 255, 255, 0.75);
        text-align: left;
        width: 26%;
        min-width: 120px;
        font-size: 0.7rem;
        text-transform: uppercase;
        letter-spacing: 1px;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.02);
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        box-sizing: border-box;
        vertical-align: middle;
    }
    
    .spec-value {
        padding: 0.875rem 0.75rem;
        padding-left: 0.625rem;
        color: #ffffff;
        font-weight: 500;
        font-size: 0.85rem;
        text-align: left;
        white-space: normal;
        word-wrap: break-word;
        word-break: break-word;
        line-height: 1.5;
        box-sizing: border-box;
        vertical-align: middle;
        width: 42%;
    }
    
    .spec-rating {
        padding: 0.875rem 0.75rem;
        padding-left: 0.625rem;
        vertical-align: middle;
        text-align: left;
        width: 32%;
        min-width: 100px;
        box-sizing: border-box;
    }
    
    .spec-rating-badge {
        padding: 0.4rem 0.7rem;
        font-size: 0.7rem;
        gap: 0.4rem;
    }
    
    .rating-icon {
        font-size: 0.8rem;
    }
    
    .rating-label {
        font-size: 0.7rem;
    }
    
    /* Duplicato rimosso - regole già definite sopra */
    
    /* Hide table-row display on mobile */
    .spec-hidden.item-shown {
        display: table-row !important;
    }
    
    .tool-main-button {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

/* ==========================================
   CATEGORY TAGS
   ========================================== */

.tool-category-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.25rem;
    margin-bottom: 1rem;
    width: 100%;
}

.tool-category-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: none;
    border-radius: 20px;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.tool-category-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.tool-category-tag:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.tool-category-tag:hover::before {
    left: 100%;
}

/* ==========================================
   COMPARE WIDGET (on single brand page)
   ========================================== */

.compare-widget-section {
    margin-top: var(--section-gap);
    margin-bottom: var(--section-gap);
}

/* Glass box container — matches .related-tools-container style */
.compare-widget-box {
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--box-border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 2rem 2.5rem;
}

.compare-widget-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.compare-widget-card {
    display: flex;
    flex-direction: column;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s, background 0.2s, box-shadow 0.25s;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.compare-widget-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 0 1px var(--card-accent, rgba(255,255,255,0.2));
}

.compare-widget-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 3/4;
    overflow: hidden;
}

.compare-widget-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.35s ease;
}

.compare-widget-card:hover .compare-widget-img {
    transform: scale(1.06);
}

.compare-widget-vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    color: #fff;
}

.compare-widget-body {
    padding: 0.7rem 0.75rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
}

.compare-widget-name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

.compare-widget-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.compare-widget-score {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.compare-widget-cta {
    display: block;
    margin-top: 0.6rem;
    padding: 0.45rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 800;
    color: #000;
    background: var(--card-accent, #ffffff);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 100px;
    text-align: center;
    opacity: 0.9;
    transition: opacity 0.2s, transform 0.2s;
    box-shadow: 0 2px 10px color-mix(in srgb, var(--card-accent, #fff) 30%, transparent);
}

.compare-widget-card:hover .compare-widget-cta {
    opacity: 1;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .compare-widget-section {
        margin-top: var(--section-gap-mobile);
        margin-bottom: var(--section-gap-mobile);
    }

    .compare-widget-box {
        padding: var(--box-padding-mobile);
    }

    .compare-widget-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 0.75rem;
    }
}

/* ==========================================
   RELATED ARTICLES SECTION
   ========================================== */

.related-articles-section {
    width: 100%;
    margin-top: var(--section-gap);
    margin-bottom: var(--section-gap);
    padding: 0;
}

.related-articles-section .tools-section-divider {
    margin-top: calc(var(--section-gap) * 0.75) !important;
    margin-bottom: calc(var(--section-gap) * 0.75) !important;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    max-width: var(--box-max-width);
    margin: 0 auto;
}

.related-article-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15);
}

.related-article-card:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.5),
        0 32px 80px rgba(0, 0, 0, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.15);
}

.related-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-article-image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.related-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.related-article-card:hover .related-article-image {
    transform: scale(1.05);
}

.related-article-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-article-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.related-article-excerpt {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin: 0;
}

.related-article-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.related-article-card:hover .related-article-read-more {
    color: #ffffff;
}

/* ==========================================
   GENERATE PROMPTS CTA SECTION
   ========================================== */

.generate-prompts-cta-section {
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.generate-prompts-cta-box {
    width: 100%;
    background: rgba(28, 28, 30, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--box-border-radius);
    padding: var(--box-padding-desktop);
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.35),
        0 24px 64px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 -1px 0 rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.generate-prompts-cta-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #ffffff;
    margin: 0 0 1rem 0;
    text-transform: uppercase;
    letter-spacing: 2px;
    position: relative;
    z-index: 1;
}

.generate-prompts-cta-description {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 1.5rem 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.generate-prompts-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.generate-prompts-cta-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    .related-tools-section {
        margin-top: var(--section-gap-mobile);
        margin-bottom: var(--section-gap-mobile);
    }
    
    .related-articles-section {
        margin-top: var(--section-gap-mobile);
        margin-bottom: var(--section-gap-mobile);
    }

    .related-articles-section .tools-section-divider {
        margin-top: calc(var(--section-gap-mobile) * 0.75) !important;
        margin-bottom: calc(var(--section-gap-mobile) * 0.75) !important;
    }
    
    .related-articles-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .generate-prompts-cta-box {
        padding: var(--box-padding-mobile);
    }
    
    .generate-prompts-cta-title {
        font-size: 1.5rem;
    }
    
    .generate-prompts-cta-description {
        font-size: 0.9rem;
    }
    
    .generate-prompts-cta-button {
        padding: 0.875rem 1.75rem;
        font-size: 0.9rem;
    }
}

