.themed-pool-card {
    border-width: 2px;
    transition: transform 0.2s ease-in-out;
    overflow: hidden;
}

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

.themed-pool-card .image-container {
    position: relative;
    margin: -1rem -1rem 1rem -1rem;
}

.themed-pool-card .image-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    pointer-events: none;
}

.pool-faction-container {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0; /* Prevent container from shrinking */
}

.pool-faction-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.3); /* Zoom level - adjust as needed */
}

.pool-faction-image:hover {
    transform: scale(1.4);
}

.pool-description {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.leader-info {
    background-color: var(--surface-2);
    padding: 1rem;
    border-radius: 8px;
}

/* Fix section title readability in pool faction cards */
.pool-faction .section-title,
.pool-faction-content .section-title {
    color: var(--text-primary, #1a202c);
    text-shadow: none;
}

.pool-faction .section-title i,
.pool-faction-content .section-title i {
    color: var(--theme-primary, #3b82f6);
}

[data-bs-theme="dark"] .pool-faction .section-title,
[data-bs-theme="dark"] .pool-faction-content .section-title {
    color: var(--text-primary, #f1f5f9);
}

[data-bs-theme="dark"] .pool-faction .section-title i,
[data-bs-theme="dark"] .pool-faction-content .section-title i {
    color: var(--theme-primary, #60a5fa);
}

.leader-title {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.leader-details h5 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

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

.stats-container {
    background-color: var(--surface-2);
    padding: 1rem;
    border-radius: 8px;
}

.member-count h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.member-count .badge {
    font-size: 1.2rem;
    padding: 0.5rem 1rem;
}

.divisions-list h4 {
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.division-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.division-badges .badge {
    font-size: 0.8rem;
    padding: 0.5rem 0.75rem;
    color: white;
}

.pool-context-switcher {
    position: relative;
}

.pool-display {
    transition: opacity 0.3s ease-in-out;
}

.pool-display.transitioning {
    opacity: 0;
}

.placeholder-content {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
}

.pool-selection-prompt {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .themed-pool-card {
        margin-bottom: 1rem;
    }

    .stats-container {
        margin-top: 1rem;
    }

    .pool-faction-image {
    }
}

/* Additional styles for the league event history page */
.winning-faction-banner {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.faction-header {
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-primary-dark, #0056b3));
}

.victory-context {
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 0.5rem;
    padding: 1rem;
}

.featured-character {
    position: relative;
}

.featured-character::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--bs-primary) 0%, transparent 100%);
}

.event-image-container {
    max-height: 400px;
    overflow: hidden;
}

.event-image {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.narrative-content {
    font-size: 1.1rem;
    line-height: 1.6;
}

.story-section .card {
    overflow: hidden;
}