/* =========================================================================
   GTC Slideshow Story Maker - Board, Card & Slideshow Styles
   ========================================================================= */

/* Game Board Matrix */
.board-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 10px 0;
}

.board-toolbar {
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
    background: rgba(0, 0, 0, 0.25);
    padding: 10px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
}

.mode-toggle-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.board-grid-wrapper {
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5), var(--shadow-lg);
    display: inline-block;
}

.board-grid {
    display: grid;
    grid-template-columns: repeat(6, 74px);
    grid-template-rows: repeat(6, 74px);
    gap: 8px;
}

.board-tile {
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 6px 4px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    user-select: none;
}

.board-tile:hover {
    transform: translateY(-2px) scale(1.04);
    border-color: var(--accent-sky);
    background: rgba(51, 65, 85, 0.9);
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
    z-index: 10;
}

.board-tile.active {
    border-color: #38bdf8;
    background: rgba(56, 189, 248, 0.2);
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
}

.board-tile.route {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.15);
}

.board-tile.route::after {
    content: '';
    position: absolute;
    top: 4px;
    right: 4px;
    width: 6px;
    height: 6px;
    background: #f59e0b;
    border-radius: 50%;
    box-shadow: 0 0 6px #f59e0b;
}

.tile-coord {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--text-subtle);
}

.tile-glyph {
    font-size: 1.3rem;
    line-height: 1;
}

.tile-type-pill {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    padding: 1px 4px;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.4);
    color: #cbd5e1;
}

/* Character Cards Grid */
.cards-collection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.character-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
}

.character-card:hover {
    border-color: var(--accent-sky);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
}

.character-card.selected {
    border-color: #10b981;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.4);
}

.card-color-stripe {
    height: 6px;
    width: 100%;
}

.card-inner {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-avatar-name {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-avatar {
    font-size: 1.6rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
}

.card-chid-badge {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.4);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--border-subtle);
    color: var(--accent-sky);
}

.card-vocation {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}

.card-specs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.25);
    padding: 8px;
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
}

/* Value Chain Battle Arena */
.arena-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arena-clash-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.vs-badge {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--accent-rose), var(--accent-amber));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: #ffffff;
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.5);
}

.battle-breakdown-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
    font-size: 0.85rem;
}

.battle-breakdown-table th, .battle-breakdown-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    text-align: left;
}

.battle-breakdown-table th {
    background: rgba(0, 0, 0, 0.3);
    color: var(--accent-sky);
    font-weight: 600;
}

/* Slideshow Story Presentation */
.slideshow-viewer {
    background: #090d16;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 40px;
    min-height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7);
    transition: all 0.4s ease;
}

.slideshow-slide-content {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.slide-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--accent-sky);
    letter-spacing: -0.02em;
}

.slide-subtitle {
    font-size: 1rem;
    color: var(--accent-amber);
    font-weight: 500;
}

.slide-body-text {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #e2e8f0;
}

.slideshow-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.slide-indicator {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}
