﻿/* Character Creation Page Sprite Preview */
.asc-class-preview-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 160px; /* Further reduced from 180px */
    margin-bottom: 0.8rem; /* Reduced from 1rem */
}

.asc-class-preview-spotlight {
    position: absolute;
    width: 220px; /* Further reduced from 250px */
    height: 220px; /* Further reduced from 250px */
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

.asc-class-preview-reflection {
    position: absolute;
    bottom: -10px;
    width: 200px;
    height: 20px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.1), transparent);
    border-radius: 50%;
    z-index: 0;
}

/* Character Creation Page Styling */
.asc-character-creation {
    min-height: 100vh;
    background: var(--bg-primary); /* Fixed: was --bg-dark-primary */
    color: var(--text-primary); /* Fixed: was --text-dark-primary */
    padding: 1rem 1rem; /* Reduced from 1.5rem */
}

    /* FIX: Override MudBlazor container max-width for character creation page */
    .asc-character-creation .mud-container-maxwidth-lg {
        max-width: 100% !important;
        width: 100% !important;
    }

.asc-creation-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.asc-creation-title {
    font-size: 2.2rem; /* Reduced from 2.5rem */
    font-weight: 700;
    text-align: center;
    margin-bottom: 0.3rem; /* Reduced from 0.5rem */
    color: var(--text-primary); /* Fixed: was --text-dark-primary */
}

.asc-creation-subtitle {
    font-size: 1.1rem; /* Reduced from 1.2rem */
    text-align: center;
    color: var(--text-secondary); /* Fixed: was --text-dark-secondary */
    margin-bottom: 1.2rem; /* Reduced from 1.5rem */
}

/* Step navigation styling */
.asc-creation-steps {
    display: flex;
    justify-content: center;
    margin-bottom: 1.2rem; /* Reduced from 1.5rem */
}

.asc-step-item {
    display: flex;
    align-items: center;
    margin: 0 0.8rem; /* Reduced from 1rem */
    opacity: 0.6;
}

.asc-step-active {
    opacity: 1;
}

.asc-step-completed {
    opacity: 0.8;
}

.asc-step-circle {
    width: 28px; /* Reduced from 30px */
    height: 28px; /* Reduced from 30px */
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 6px; /* Reduced from 8px */
    font-weight: bold;
    font-size: 0.85rem; /* Added smaller font for numbers */
}

.asc-step-active .asc-step-circle {
    background: var(--primary-blue);
}

.asc-step-completed .asc-step-circle {
    background: var(--success-green);
}

.asc-step-text {
    font-size: 0.85rem; /* Reduced from 0.9rem */
}

/* Class selection styling */
.asc-class-selection {
    margin-bottom: 0.8rem; /* Reduced from 1rem */
}

.asc-class-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem; /* Keep this as is for readability */
    margin-bottom: 0.8rem; /* Reduced from 1rem */
}

.asc-class-description {
    background: var(--bg-card); /* Fixed: was rgba(0, 0, 0, 0.2) */
    padding: 0.8rem; /* Reduced from 1rem */
    border-radius: var(--radius-md);
    margin-bottom: 0.8rem; /* Reduced from 1rem */
    border: 1px solid var(--glass-border);
}

.asc-description-text {
    text-align: center;
    color: var(--text-secondary); /* Fixed: was --text-dark-secondary */
    line-height: 1.5; /* Reduced from 1.6 */
    font-size: 0.95rem; /* Added smaller font size */
}

.asc-class-abilities {
    background: var(--bg-card); /* Fixed: was rgba(0, 0, 0, 0.2) */
    padding: 0.8rem; /* Reduced from 1rem */
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.asc-ability-title {
    font-size: 1rem; /* Reduced from 1.1rem */
    font-weight: 600;
    margin-bottom: 0.6rem; /* Reduced from 0.8rem */
    text-align: center;
}

/* NEW: Horizontal layout for abilities */
.asc-abilities-container {
    display: flex;
    gap: 0.8rem; /* Reduced from 1rem */
    justify-content: space-between;
    flex-wrap: wrap;
}

.asc-ability-item {
    display: flex;
    flex-direction: column; /* Stack icon and text vertically within each ability */
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0; /* Allow text to wrap */
    padding: 0.6rem 0.4rem; /* Reduced padding */
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-sm);
    margin-bottom: 0; /* Remove bottom margin since they're now in a row */
}

.asc-ability-icon {
    margin-right: 0; /* Remove right margin */
    margin-bottom: 0.4rem; /* Reduced from 0.5rem */
    color: var(--primary-blue-lighter);
    font-size: 1.3rem; /* Reduced from 1.5rem */
}

.asc-ability-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asc-ability-name {
    font-weight: 600;
    margin-bottom: 0.2rem; /* Reduced from 0.3rem */
    font-size: 0.85rem; /* Reduced from 0.9rem */
}

.asc-ability-desc {
    font-size: 0.75rem; /* Reduced from 0.8rem */
    color: var(--text-secondary); /* Fixed: was --text-dark-secondary */
    line-height: 1.2; /* Reduced from 1.3 */
}

/* Color selection styling */
.asc-color-selection-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.asc-character-preview {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: 1.5rem; /* Keep this as is for color step */
    display: flex;
    align-items: center !important;
    justify-content: center;
}

.asc-preview-spotlight {
    position: absolute;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.asc-preview-reflection {
    position: absolute;
    bottom: -10px;
    width: 100px;
    height: 20px;
    background: radial-gradient(ellipse, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 70%);
    border-radius: 50%;
    filter: blur(2px);
    transform: scaleY(0.3);
    pointer-events: none;
}

.asc-color-selection-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
}

.asc-color-variants {
    width: 100%;
    max-width: 400px;
}

.asc-color-description {
    margin-top: 1rem;
    text-align: center;
}

.asc-color-name {
    display: block;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.asc-color-effect {
    color: var(--text-secondary); /* Fixed: was --text-dark-secondary */
    font-size: 0.9rem;
}

/* Name selection styling */
.asc-name-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 500px;
    margin: 0 auto;
}

.asc-final-preview {
    margin-bottom: 2rem; /* Keep this as is for final step */
}

.asc-character-aura {
    position: absolute;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(20px);
    pointer-events: none;
}

.blue-aura {
    background: radial-gradient(circle, var(--primary-blue) 0%, rgba(59, 130, 246, 0) 70%);
}

.red-aura {
    background: radial-gradient(circle, #ef4444 0%, rgba(239, 68, 68, 0) 70%);
}

.purple-aura {
    background: radial-gradient(circle, #a855f7 0%, rgba(168, 85, 247, 0) 70%);
}

.yellow-aura {
    background: radial-gradient(circle, #f59e0b 0%, rgba(245, 158, 11, 0) 70%);
}

.asc-character-nameplate {
    position: absolute;
    bottom: -40px;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    text-align: center;
    width: 200px;
}

.asc-name-label {
    display: block;
    font-weight: 600;
    font-size: 1.1rem;
}

.asc-class-label {
    font-size: 0.8rem;
    color: var(--text-secondary); /* Fixed: was --text-dark-secondary */
}

.asc-name-input-container {
    width: 100%;
}

.asc-name-error {
    color: var(--error-red);
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.asc-name-hint {
    color: var(--text-muted); /* Fixed: was --text-dark-muted */
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Navigation buttons */
.asc-creation-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem; /* Reduced from 2rem */
}

/* Transitions */
.transition-out {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.transition-in {
    opacity: 1;
    transform: translateX(0);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.transition-out-reverse {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.transition-in-reverse {
    opacity: 1;
    transform: translateX(0);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

/* Magical particles */
.asc-magical-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    pointer-events: none;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) translateX(0);
    }

    50% {
        transform: translateY(-20px) translateX(10px);
    }
}

/* Responsive optimizations for standard resolutions */
@media (max-height: 800px) {
    .asc-class-preview-container {
        height: 130px; /* Further reduced */
        margin-bottom: 0.6rem;
    }

    .asc-creation-title {
        font-size: 1.8rem; /* Further reduced */
        margin-bottom: 0.2rem;
    }

    .asc-creation-subtitle {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .asc-class-description,
    .asc-class-abilities {
        padding: 0.6rem;
        margin-bottom: 0.6rem;
    }

    .asc-ability-item {
        padding: 0.5rem 0.3rem;
    }

    .asc-ability-name {
        font-size: 0.8rem;
    }

    .asc-ability-desc {
        font-size: 0.7rem;
    }
}

/* Mobile responsive adjustments for abilities */
@media (max-width: 768px) {
    .asc-abilities-container {
        flex-direction: column;
        gap: 0.5rem;
    }

    .asc-ability-item {
        flex-direction: row;
        text-align: left;
        align-items: center;
    }

    .asc-ability-icon {
        margin-bottom: 0;
        margin-right: 1rem;
        font-size: 1.2rem;
    }

    .asc-ability-content {
        align-items: flex-start;
    }
}
