/* Zona de Práctica · estilos custom */

.cach-hero {
    background: linear-gradient(135deg, #20232a, #393e46);
    color: #fff;
    padding: 2.5rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
}

.cach-hero h1 {
    font-size: 2.25rem;
    font-weight: 700;
}

.cach-hero p {
    font-size: 1.1rem;
    opacity: 0.85;
}

.bot-card {
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    padding: 1rem;
    background: #fff;
    transition: transform 0.15s, box-shadow 0.15s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.bot-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.bot-card .bot-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    background: #e5e7eb;
}

.bot-card .bot-name {
    font-weight: 600;
    margin-top: 0.75rem;
}

.bot-card .bot-meta {
    color: #6b7280;
    font-size: 0.9rem;
}

.bot-card .bot-elo {
    font-weight: 700;
    color: #2563eb;
}

.cg-wrap {
    width: min(100%, 480px);
    aspect-ratio: 1 / 1;
}

.move-list {
    max-height: 360px;
    overflow-y: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.9rem;
}

.privacy-banner {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    color: #856404;
    padding: 0.75rem 1rem;
    border-radius: 0.4rem;
    font-size: 0.9rem;
}

/* /embed/ivan: tema oscuro alineado con el sitio principal del Club */
.embed-main {
    background: #0d0d0d;
    min-height: 100vh;
    padding: 0.5rem;
    color: #f1ede4;
}

/* Frame con branding del Club: header + contenido + footer */
.cach-embed-frame {
    max-width: 720px;
    margin: 0 auto;
    background: #1a1a1a;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.5);
    border: 1px solid #2a2725;
    color: #f1ede4;
}

.cach-embed-header {
    background: linear-gradient(135deg, #0d0d0d 0%, #1f1d1a 100%);
    color: #f1ede4;
    padding: 0.75rem 1rem;
    border-bottom: 3px solid #c8a865;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.cach-embed-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: inherit;
    text-decoration: none;
    flex: 1 1 auto;
    min-width: 0;
}

.cach-embed-brand:hover {
    color: #fff;
    text-decoration: none;
}

.cach-embed-logo {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.cach-embed-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.cach-embed-brand-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.cach-embed-brand-sub {
    font-size: 0.78rem;
    color: #c8a865;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.cach-embed-footer {
    background: #0d0d0d;
    color: #b6b1a6;
    padding: 0.55rem 1rem;
    font-size: 0.74rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #2a2725;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.cach-embed-footer-brand {
    color: #c8a865;
}

.embed-wrapper {
    padding: 1rem;
    max-width: 720px;
    margin: 0 auto;
}

.embed-card {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #2a2725;
    border-radius: 0.6rem;
    background: linear-gradient(135deg, #1a1a1a 0%, #232220 100%);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    color: #f1ede4;
}

/* Botón "Volver al sitio del Club" en el header del embed (siempre visible). */
.cach-embed-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #c8a865;
    text-decoration: none;
    font-size: 0.78rem;
    padding: 0.4rem 0.7rem;
    border: 1px solid #c8a865;
    border-radius: 0.4rem;
    transition: background 0.15s, color 0.15s;
    flex: 0 0 auto;
}

.cach-embed-back-link:hover {
    background: rgba(200, 168, 101, 0.15);
    color: #fff;
    text-decoration: none;
}

.cach-embed-back-arrow {
    font-size: 1rem;
    line-height: 1;
}

@media (max-width: 480px) {
    .cach-embed-back-label { display: none; }
    .cach-embed-back-link {
        padding: 0.35rem 0.55rem;
        font-size: 0.85rem;
    }
    .cach-embed-back-arrow { font-size: 1.1rem; }
}

/* Sobreescribe text-muted (Bootstrap) sobre fondo oscuro */
.cach-embed-frame .text-muted {
    color: #b6b1a6 !important;
}

/* Move list y move-list-like sobre fondo oscuro */
.cach-embed-frame .move-list {
    background: #0d0d0d;
    color: #f1ede4;
    padding: 0.5rem;
    border-radius: 0.4rem;
    border: 1px solid #2a2725;
}

/* Tablero chessground: caja con sutil contorno dorado */
.cach-embed-frame .cg-wrap {
    border: 1px solid #c8a865;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}

.embed-photo {
    width: 110px;
    height: 110px;
    flex: 0 0 auto;
    object-fit: cover;
    border-radius: 50%;
    background: #e5e7eb;
}

.embed-meta {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 480px) {
    .embed-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .embed-photo {
        width: 96px;
        height: 96px;
    }
}
