/* Character Grid */
.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

/* Character Card */
.character-card {
    background: #fffbe6;
    border-radius: 18px;
    box-shadow: 0 2px 24px rgba(180,160,80,0.12);
    border: 2px solid #e6c97a;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.character-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 32px rgba(180,160,80,0.24);
}

.character-card-image-wrapper {
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, #f7f6e7 0%, #e7e3d1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.character-card-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.character-card:hover .character-card-image {
    transform: scale(1.05);
}

.character-card-body {
    padding: 1.2rem;
}

.character-card-name {
    font-size: 1.3rem;
    font-weight: 700;
    color: #7a5c1e;
    margin-bottom: 0.5rem;
    text-align: center;
}

.character-card-info {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.character-difficulty {
    background: linear-gradient(90deg, #e6c97a 0%, #ffe9a7 100%);
    color: #5C6142;
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
}

/* ============================================
   Character Tab Styles
   ============================================ */

/* Character Tabs Container */
.character-tabs {
    width: 100%;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
}

/* Character Tabs Navigation - Pill Style */
.character-tabs-nav {
    list-style: none !important;
    display: inline-flex !important;
    width: auto !important;
    gap: 12px !important;
    padding: 14px !important;
    padding-left: 0 !important;
    margin: 0 auto 1rem auto !important;
    align-items: center !important;
    background: rgba(20,30,40,0.06) !important;
    border-radius: 18px !important;
    box-shadow: 0 6px 24px rgba(0,0,0,0.08), inset 0 1px 0 rgba(255,255,255,0.02) !important;
    overflow-x: auto !important;
}

.character-tabs-nav li,
.character-tabs-nav .character-tab-item {
    list-style: none !important;
    margin: 0 !important;
}

.character-tabs-nav li::marker {
    display: none !important;
}

/* Character Tab Item */
.character-tab-item {
    flex: 0 0 auto;
}

.character-tab-item button {
    all: unset !important;
    box-sizing: border-box !important;
    padding: 10px 22px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    cursor: pointer !important;
    border-radius: 14px !important;
    min-height: 46px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: transform 120ms ease, box-shadow 160ms ease, background 160ms ease, color 160ms ease !important;
    background: rgba(255,255,255,0.03) !important;
    opacity: 1 !important;
}

.character-tab-item button::-moz-focus-inner {
    border: 0 !important;
}

.character-tab-item button:focus {
    outline: none !important;
}

.character-tab-item button:hover {
    transform: translateY(-2px) !important;
    background: rgba(255,255,255,0.05) !important;
    color: #0b1320 !important;
}

/* Active Tab Style */
.character-tab-item.active button {
    color: #fff !important;
    background: linear-gradient(90deg, #ff7a7a 0%, #ffb86b 40%, #ff9fe6 100%) !important;
    box-shadow: 0 10px 30px rgba(127,63,191,0.18), 0 2px 8px rgba(0,0,0,0.35) inset !important;
    transform: translateY(-4px) !important;
}

/* Character Tabs Content */
.character-tabs-content {
    padding-top: 16px !important;
    background: rgba(0,0,0,0.02) !important;
    border-radius: 12px !important;
    padding: 1.25rem !important;
    min-height: 160px !important;
    width: 100% !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1rem;
    }
    
    .character-card-image-wrapper {
        height: 220px;
    }
    
    .character-tabs-nav {
        gap: 8px !important;
        padding: 10px !important;
    }
    
    .character-tab-item button {
        padding: 8px 14px !important;
        min-height: 40px !important;
    }
}

@media (max-width: 480px) {
    .character-grid {
        grid-template-columns: 1fr;
    }
}
