/* ===================================
   GRIMOIRE PLAYER STATS STYLES
   =================================== */

/* Player stats wrapper - collapsible container */
.player-stats-wrapper {
    margin-bottom: 24px;
}

/* Collapse toggle button */
.stats-collapse-toggle {
    width: 100%;
    padding: 12px 20px;
    background: rgba(91, 155, 213, 0.15);
    border: 1px solid rgba(91, 155, 213, 0.3);
    border-radius: 12px;
    color: #5b9bd5;
    font-family: 'Lora', serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 12px;
    text-align: center;
}

.stats-collapse-toggle:hover {
    background: rgba(91, 155, 213, 0.25);
    border-color: rgba(91, 155, 213, 0.5);
    transform: translateY(-1px);
}

.stats-collapse-toggle:active {
    transform: translateY(0);
}

.stats-collapse-toggle.collapsed {
    border-radius: 12px;
    margin-bottom: 0;
}

/* Player stats banner - the collapsible content */
.player-stats-banner {
    max-height: 500px;
    overflow: hidden;
    opacity: 1;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
    background: rgba(91, 155, 213, 0.05);
    border: 1px solid rgba(91, 155, 213, 0.2);
    border-radius: 12px;
}

.player-stats-banner.collapsed {
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    padding: 0;
    border: none;
    pointer-events: none;
}

/* Inline group for stats inputs */
.player-stats-banner .inline-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

/* Form groups inside stats banner */
.player-stats-banner .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.player-stats-banner .form-group input {
    width: 100%;
    padding: 12px 16px;
    background: rgba(20, 20, 30, 0.6);
    border: 1px solid rgba(91, 155, 213, 0.3);
    border-radius: 8px;
    color: #c4d4e0;
    font-family: 'Lora', serif;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.player-stats-banner .form-group input:focus {
    outline: none;
    border-color: rgba(91, 155, 213, 0.6);
    background: rgba(20, 20, 30, 0.8);
    box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.1);
}

.player-stats-banner .form-group input::placeholder {
    color: #9ca3af;
}

/* Input help icons inside stats banner */
.player-stats-banner .input-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(91, 155, 213, 0.2);
    border: 1px solid rgba(91, 155, 213, 0.4);
    border-radius: 50%;
    color: #5b9bd5;
    font-size: 0.75rem;
    font-weight: bold;
    cursor: help;
    margin-bottom: 4px;
    transition: all 0.2s ease;
}

.player-stats-banner .input-help-icon:hover {
    background: rgba(91, 155, 213, 0.3);
    border-color: rgba(91, 155, 213, 0.6);
    transform: scale(1.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .player-stats-banner .inline-group {
        grid-template-columns: 1fr;
    }
    
    .stats-collapse-toggle {
        font-size: 0.9rem;
        padding: 10px 16px;
    }
    
    .player-stats-banner {
        padding: 16px;
    }
}

/* Animation for smooth collapse */
@keyframes slideDown {
    from {
        max-height: 0;
        opacity: 0;
    }
    to {
        max-height: 500px;
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        max-height: 500px;
        opacity: 1;
    }
    to {
        max-height: 0;
        opacity: 0;
    }
}
