/* Star Savior Character List Styles */

/* Element and Class Badge - Positioned top left */
.character-badge {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 32px;
    height: 32px;
    z-index: 30;
    overflow: hidden;
    border-radius: 20px;
}

.character-badge-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Element background colors */
.character-badge-background.element-chaos {
    background-color: rgba(93, 55, 145, 0.5);
}

.character-badge-background.element-moon {
    background-color: rgba(26, 77, 167, 0.5);
}

.character-badge-background.element-order {
    background-color: rgba(208, 144, 22, 0.5);
}

.character-badge-background.element-star {
    background-color: rgba(40, 109, 38, 0.5);
}

.character-badge-background.element-sun {
    background-color: rgba(137, 21, 31, 0.5);
}

.character-badge-class {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    object-fit: contain;
    z-index: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .character-badge {
        width: 24px;
        height: 24px;
        top: 2px;
        left: 2px;
    }
    
    .character-badge-class {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 15px;
        height: 15px;
    }
}

@media (max-width: 480px) {
    .character-badge {
        width: 24px;
        height: 24px;
        top: 2px;
        left: 2px;
    }
    
    .character-badge-class {
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 15px;
        height: 15px;
    }
}


/* Character List Styles */
.character-list-container {
    margin: 20px 0;
}

.character-list-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: rgb(230, 230, 230);
    font-size: 2rem;
    text-shadow: 1px 2px 1px rgb(0, 0, 0);
}

strong {
    color: rgb(230, 230, 230);
}

.character-grid-container {
    width: 100%;
    margin: 0 auto;
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
    padding: 20px;
    justify-items: center;
}

/* Responsive Design für verschiedene Bildschirmgrößen */
@media (max-width: 1200px) {
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
        gap: 12px;
        padding: 15px;
    }
}

@media (max-width: 768px) {
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
        padding: 10px;
    }
}

@media (max-width: 480px) {
    .character-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
        gap: 8px;
        padding: 8px;
    }
}

/* Bleach Soul Resonance Character Card Styles - */
.Character-SR, .Character-SSR, .Character-UR {
    width: 140px !important;
    height: 200px !important;
    margin: 0 !important;
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    /* background-color entfernt, da wir den Gradient nutzen */
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

/* Rarity-spezifische Gradient Backgrounds für Bleach (Inspired by Prydwen but Custom) */
.Character-SR {
    background: linear-gradient(160deg, #2d2f4d 0%, #7a5af8 65%); /* Custom Lila Gradient für SR */
    border: none;
}

.Character-SSR {
    background: linear-gradient(160deg, #6e4c42 0%, #e0c870 65%); /* Custom Gold Gradient für SSR */
    border: none;
}

.Character-UR {
    background: linear-gradient(160deg, #5a2d2d 0%, #ff6b6b 65%); /* Custom Rot Gradient für UR */
    border: none;
}

/* Character Name Overlay - Dark Gradient like Prydwen */
.character-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 60%, transparent 100%);
    color: white;
    padding: 20px 4px 6px; /* More top padding for gradient fade */
    text-align: center;
    font-weight: 700;
    font-size: 0.9rem;
    z-index: 25;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

/* Character Image - mit Zuschneiden */
.character-image {
    position: absolute;
    width: 100%; /* 20% größer als Container */
    height: 100%; /* 20% größer als Container */
    object-fit: cover; /* Bild zuschneiden statt verzerren */
    z-index: 10;
    transition: all 0.6s;
    cursor: pointer;
    
    backface-visibility: hidden;
    perspective: 1000px;
    
}

.character-image:hover {
    transform: scale(1.08);
}

/* Type Icons entfernt - werden nicht mehr angezeigt */

/* ----------------------------------------------------------------- */
/* NEW FILTER BAR STYLES */
/* ----------------------------------------------------------------- */

.employees-filter-bar.lost {
    /* background-color: #1a1a1e;  REMOVED dark background */
    /* border: 1px solid #32323e; REMOVED border */
    border-radius: 4px;
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    /* box-shadow: 0 4px 10px rgba(0,0,0,0.3); REMOVED shadow */
}

.filter-bar-element {
    display: flex;
    align-items: center;
}

/* Search Field */
.filter-bar-element.search {
    position: relative;
    margin-right: 4px;
}

.filter-bar-element.search input.form-control {
    background-color: #0e0e11;
    border: 1px solid #32323e;
    border-radius: 4px;
    color: #e0e0e0;
    padding: 0 30px 0 10px;
    font-size: 0.9rem;
    height: 38px;
    width: 200px;
    transition: border-color 0.2s;
    box-sizing: border-box;
    line-height: 38px;
}

.filter-bar-element.search input.form-control:focus {
    outline: none;
    border-color: #7a5af8;
}

.filter-bar-element.search .clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
    display: none;
    user-select: none;
}

.filter-bar-element.search input:not(:placeholder-shown) + .clear {
    display: block;
}

/* Button Groups */
.btn-group {
    display: inline-flex;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #32323e;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: #212126;
    color: #a0a0a0;
    border: none;
    border-right: 1px solid #32323e;
    padding: 0 16px;
    height: 38px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:last-child {
    border-right: none;
}

.btn:hover {
    background-color: #2a2a30;
    color: #fff;
}

.btn.active {
    background-color: #7a5af8a1;
    color: #fff;
    box-shadow: inset 0 3px 5px rgba(0,0,0,0.125);
    border-color: #7a5af8a1;
}

.btn svg {
    fill: currentColor;
}

/* Reset Button */
.reset-button {
    background-color: #2a2a30;
    border: 1px solid #32323e;
    border-radius: 4px;
    color: #a0a0a0;
    padding: 0 16px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.reset-button:not([disabled]):hover {
    background-color: #7a5af8a1;
    border-color: #7a5af8a1;
    color: white;
}

.reset-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Images inside buttons (like Types) */
.btn img {
    width: 28px; /* Increased size */
    height: 28px;
    object-fit: contain;
    transition: filter 0.2s;
    display: block;
    transform: scale(1.2); /* Zoom in to reduce visual border */
}

/* Specific styling for element buttons to reduce padding */
.element-filter {
    padding: 0 10px !important;
}

/* Mobile responsiveness for Filter Bar */
@media (max-width: 768px) {
    .employees-filter-bar.lost {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
    }

    .filter-bar-element {
        width: 100%;
        justify-content: center;
    }

    .filter-bar-element.search input.form-control {
        width: 100%;
    }

    .btn-group {
        width: 100%;
        display: flex;
    }

    .btn {
        flex: 1;
        padding: 0 4px;
        font-size: 0.85rem;
    }

    .reset-button {
        width: 100%;
        justify-content: center;
    }
}

/* Responsive Design für Filter */
@media (max-width: 768px) {
    /* 25% kleinere Character-Karten für Mobile */
    .Character-SR, .Character-SSR, .Character-UR {
        width: 105px !important; /* 140px × 0.75 = 105px */
        height: 150px !important; /* 200px × 0.75 = 150px */
    }

    /* Angepasste Schriftgrößen für kleinere Mobile-Karten */
    .Character-SR .character-name-overlay,
    .Character-SSR .character-name-overlay,
    .Character-UR .character-name-overlay {
        font-size: 0.825rem !important; /* 1.1rem × 0.75 = 0.825rem */
        padding: 9px 3px 6px !important; /* 12px 4px 8px × 0.75 */
        -webkit-text-stroke: 0.225px rgba(0, 0, 0, 0.6) !important; /* 0.3px × 0.75 = 0.225px */
    }

    /* Kleinere Type-Icons für Mobile entfernt - werden nicht mehr angezeigt */

    /* Hover-Effekte für kleinere Mobile-Karten anpassen */
    .Character-SR:hover, .Character-SSR:hover, .Character-UR:hover {
        transform: scale(1.05) !important;
    }

    /* Mobile Hover für Character Images */
    .Character-SR .character-image:hover, .Character-SSR .character-image:hover, .Character-UR .character-image:hover {
        filter: contrast(1.1) !important;
    }
}

/* Content container image styling */
.content-container img {
    max-width: 100%;
}



