/* ===== Examples Zone — shared across all services ===== */

.ex-zone {
    margin: 16px auto 4px;
    text-align: left;padding-bottom: 20px;
}

/* ---- Drop zone flash on ex-card fill ---- */
@keyframes ex-zone-flash {
    0%   { box-shadow: 0 0 0 0px var(--flash-color, #35d582); }
    40%  { box-shadow: 0 0 0 4px var(--flash-color, #35d582); }
    100% { box-shadow: 0 0 0 0px var(--flash-color, #35d582); }
}
.ex-zone-filled {
    animation: ex-zone-flash 0.7s ease-out forwards;
}

/* ---- Toggle header ---- */
.ex-zone-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0;
    cursor: pointer;
    padding: 8px 4px;
    border-radius: 6px;
    transition: background .15s;
    user-select: none;
}
.ex-zone-header:hover {
    background: rgba(255,255,255,0.04);
}
.ex-divider {
    flex: 1;
    height: 1px;
    background: #434242;
}
.ex-zone-center {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.ex-zone-label {
    color: #777;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1;
}
.ex-toggle-btn {
    font-size: 28px;
    cursor: pointer;
    user-select: none;
    color: #777;
    transition: color .2s;
    line-height: 1;
    display: block;
    pointer-events: none;
}
.ex-toggle-btn:hover {
    color: aquamarine;
}
.ex-body {
    display: none;
    padding-top: 10px;
}
.ex-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

/* ---- Card ---- */
.ex-card {
    display: flex;
    align-items: flex-start;
    gap: 9px;
   
    border: 1px solid #383838;
    border-radius: 10px;
    padding: 8px 12px 8px 8px;
    cursor: pointer;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
    transition: border-color .2s, background .2s;
    user-select: none;
}
.ex-card:hover {
    border-color: #009688;
    background: #1b2c2a;
}
.ex-card.ex-active {
    border-color: #009688;
    background: #172523;
}

/* ---- Thumbnail ---- */
.ex-thumb {
    width: 52px;
    height: 52px;
    object-fit: cover;
    border-radius: 7px;
    flex-shrink: 0;
}
.ex-thumb-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 7px;
    flex-shrink: 0;
    background: #2a2a2a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #555;
}

/* ---- Text info ---- */
.ex-info {
    flex: 1;
    min-width: 0;
}
.ex-label {
    font-size: 12px;
    color: #ddd;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ex-prompt-preview {
    font-size: 10px;
    color: #666;
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ---- Type badges ---- */
.ex-type-badges {
    display: flex;
    gap: 4px;
    margin-top: 4px;
    flex-wrap: wrap;
}
.ex-badge {
    font-size: 7px;
    padding: 1px 5px;
    border-radius: 3px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
    line-height: 1.5;
}
.ex-badge-text  { background: rgba(204,204,204,.1);   color: #999; }
.ex-badge-image { background: rgba(53,213,130,.15);   color: #35d582; }
.ex-badge-video { background: rgba(53,150,213,.15);   color: #3596d5; }
.ex-badge-audio { background: rgba(213,190,53,.15);   color: #d5be35; }

/* ---- Play button ---- */
.ex-play {
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 50% !important;
    border: none !important;
    background: none !important;
    color: #888 !important;
    cursor: pointer !important;
    transition: color .15s !important;
    text-decoration: none !important;
    align-self: center !important;
    padding: 0 !important;
    box-shadow: none !important;
}
.ex-play:hover {
    color: #d5be35 !important;
    background: none !important;
    border: none !important;
}
.ex-play .material-symbols-outlined {
    font-size: 50px !important;
    line-height: 1 !important;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .ex-list {
        grid-template-columns: 1fr;
    }
    .ex-prompt-preview {
        max-width: 100%;
    }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .ex-list {
        grid-template-columns: repeat(2, 1fr);
    }
}
