/**
 * Copyright (c) 2026 DNA Genics, S.L. All rights reserved.
 *
 * AI Custom Images public product page styling.
 * Page-specific layouts on top of the shared ProductAiAssistant.css scaffolding.
 */

.aci-main {
    --aci-accent: #6c5ce7;
    --aci-accent-dark: #4834d4;
    --aci-warm: #f7f4ff;
    --aci-card-border: rgba(108, 92, 231, 0.18);
}

/* Surfaces grid (5 studio cards) */
.aci-surfaces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.aci-surface-card {
    background: #ffffff;
    border: 1px solid var(--aci-card-border);
    border-radius: 14px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.aci-surface-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(72, 52, 212, 0.12);
    border-color: var(--aci-accent);
}

.aci-surface-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--aci-warm);
    color: var(--aci-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.aci-surface-title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a2e;
}

.aci-surface-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.aci-surface-link {
    color: var(--aci-accent-dark);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: gap 0.2s ease;
}

.aci-surface-link:hover {
    gap: 0.7rem;
    color: var(--aci-accent);
    text-decoration: none;
}

/* Tone gallery (6 cards with image previews) */
.aci-tone-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.aci-tone-card {
    background: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--aci-card-border);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.aci-tone-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(72, 52, 212, 0.15);
}

.aci-tone-preview {
    aspect-ratio: 9 / 16;
    overflow: hidden;
    background: var(--aci-warm);
    position: relative;
}

.aci-tone-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.4s ease;
}

.aci-tone-card:hover .aci-tone-preview img {
    transform: scale(1.04);
}

.aci-tone-body {
    padding: 1.25rem 1.5rem 1.5rem;
}

.aci-tone-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.6rem;
}

.aci-tone-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0;
}

.aci-tone-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    background: var(--aci-warm);
    color: var(--aci-accent-dark);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    white-space: nowrap;
}

.aci-tone-desc {
    color: #555;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0;
}

.aci-tones-note {
    margin-top: 2.5rem;
    color: #444;
    font-size: 0.95rem;
}

/* Pricing card centred */
.aci-pricing-wrap {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.aci-pricing-card {
    max-width: 460px;
    width: 100%;
}

/* Mobile tweaks */
@@media (max-width: 768px) {
    .aci-tone-preview {
        aspect-ratio: 9 / 14;
    }
}
