/* /autostyle-pro and /autostyle-pro/examples: video, look picker, deep-zoom viewer. */

.video-frame {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #15171c;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.video-play img { display: block; width: 100%; height: 100%; object-fit: cover; }
.video-play-icon {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 84px;
    height: 84px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    transition: transform 0.15s ease;
}
.video-play-icon::after {
    content: "";
    position: absolute;
    left: 34px;
    top: 24px;
    border-style: solid;
    border-width: 18px 0 18px 28px;
    border-color: transparent transparent transparent var(--color-primary-dark);
}
.video-play:hover .video-play-icon,
.video-play:focus-visible .video-play-icon { transform: translate(-50%, -50%) scale(1.08); }

/* Look picker: one sheet per render look */
.look-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.75rem; }
.look-card {
    display: block;
    padding: 0.4rem 0.4rem 0.5rem;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-md);
    background: white;
    color: var(--color-text);
    font: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.look-card img { display: block; width: 100%; height: auto; margin-bottom: 0.4rem; border-radius: var(--radius-sm); }
.look-card:hover { border-color: var(--color-primary-light); transform: translateY(-2px); }
.look-card[aria-pressed="true"] { border-color: var(--color-accent); }

/* Deep-zoom viewer */
.sheet-viewer-wrap { margin-top: 1rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; background: white; box-shadow: var(--shadow-md); }
.sheet-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.6rem 0.9rem;
    background: var(--color-primary-dark);
    color: white;
}
.sheet-toolbar strong { margin-right: auto; }
.sheet-toolbar button {
    min-width: 2.25rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: var(--radius-sm);
    background: transparent;
    color: white;
    font: inherit;
    cursor: pointer;
}
.sheet-toolbar button:hover { background: rgba(255, 255, 255, 0.12); }
.sheet-toolbar a { color: var(--color-accent); font-weight: 600; }
.sheet-viewer { width: 100%; height: min(82vh, 900px); background: #e9edf2; }
.sheet-hint { margin: 0; padding: 0.5rem 0.9rem; color: var(--color-text-muted); font-size: 0.9rem; }

/* Step list and example files */
.how-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.how-steps h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.how-steps p { margin-bottom: 0; }
.showcase-figure { margin: 1.5rem 0 0; }
.showcase-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-md); }
.showcase-figure figcaption { margin-top: 0.5rem; color: var(--color-text-muted); font-size: 0.95rem; text-align: center; }
.example-file { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.example-file:last-child { border-bottom: 0; padding-bottom: 0; }
.example-file p { margin: 0.25rem 0 0; }

@media (max-width: 900px) {
    .look-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 520px) {
    .look-grid { grid-template-columns: repeat(2, 1fr); }
    .video-play-icon { width: 64px; height: 64px; }
    .video-play-icon::after { left: 26px; top: 18px; border-width: 14px 0 14px 22px; }
}
