/* pool-battle.css */
:root {
    --battle-bg: var(--surface-1);
    --battle-text: var(--text-primary);
    --battle-border: var(--border-color);
    --versus-bg: var(--surface-2);
}

.pool-battle-container {
    background: var(--battle-bg);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: var(--shadow);
}

.battle-header {
    text-align: center;
    margin-bottom: 2rem;
}

.battle-title {
    font-size: 2rem;
    color: var(--battle-text);
    margin-bottom: 1rem;
}

.pools-versus-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.pool-column {
    background: color-mix(in srgb, var(--pool-color) 10%, var(--battle-bg));
    border-radius: 0.75rem;
    padding: 1.5rem;
    border: 2px solid var(--pool-color);
    transition: transform 0.3s ease;
}

.pool-column:hover {
    transform: translateY(-4px);
}

.pool-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pool-name {
    font-size: 1.5rem;
    color: var(--pool-color);
    margin-bottom: 0.5rem;
}

.victory-count {
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--battle-text);
}

.versus-symbol {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--battle-text);
    background: var(--versus-bg);
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.pool-leader {
    margin-bottom: 1.5rem;
}

.leader-info h5 {
    color: var(--battle-text);
    margin-bottom: 0.5rem;
}

.leader-bio {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.battle-system-info {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--battle-border);
}

.battle-system-info h4 {
    color: var(--battle-text);
    margin-bottom: 1rem;
}

.battle-system-info ul {
    list-style-type: none;
    padding: 0;
}

.battle-system-info li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.battle-system-info li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--pool-color);
}

/* Add to existing CSS or in pool-battle.css */
.themed-card {
    background: var(--surface-1);
    border: none;
    border-radius: 1rem;
    box-shadow: var(--shadow);
}

.themed-card .pool-battle-container {
    margin: 0; /* Override default margin since we're in a card */
}

/* Theme integration styles */
.pool-column {
    position: relative;
    overflow: hidden;
}

.pool-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
            45deg,
            rgba(var(--pool-color), 0.1),
            rgba(var(--pool-color), 0.05)
    );
    z-index: 0;
}

.pool-column > * {
    position: relative;
    z-index: 1;
}

.pool-image-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
    overflow: hidden;
    border-radius: 50%;
    border: 3px solid var(--pool-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.pool-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.pool-column:hover .pool-image {
    transform: scale(1.1);
}

.pool-name {
    margin-top: 1rem;
}

/* Dark mode support */
[data-bs-theme="dark"] {
    .pool-image-wrapper {
        border-color: rgba(255, 255, 255, 0.1);
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }
}

/* Dark mode support */
[data-bs-theme="dark"] {
    .themed-card {
        background: var(--surface-2);
    }

    .pool-battle-container {
        --battle-bg: var(--surface-2);
        --battle-text: var(--text-primary);
    }

    .versus-symbol {
        background: var(--surface-3);
        color: var(--text-primary);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .pool-battle-container {
        padding: 1rem;
    }

    .pool-column {
        margin-bottom: 1rem;
    }
}

@media (max-width: 768px) {
    .pools-versus-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .versus-symbol {
        margin: 1rem auto;
    }

    .pool-column {
        padding: 1rem;
    }
}