/* assets/css/style.css */
:root {
    --primary-color: #ff5722;
    /* Naruto Orange */
    --secondary-color: #2196f3;
    /* Chakra Blue */
    --bg-color: #0d1117;
    /* Dark theme */
    --glass-bg: rgba(30, 30, 40, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-color: #e6edf3;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at top center, #1a202c, #0d1117);
    color: var(--text-color);
    min-height: 100vh;
}

h1,
h2,
h3 {
    margin: 0 0 1rem 0;
}

.landing-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 2rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 3rem;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.glass-panel h1 {
    color: var(--primary-color);
    text-shadow: 0 2px 4px rgba(255, 87, 34, 0.3);
}

.subtitle {
    color: #8b949e;
    margin-bottom: 2rem;
}

.alert {
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.alert.error {
    background: rgba(244, 67, 54, 0.2);
    border: 1px solid rgba(244, 67, 54, 0.5);
    color: #ff8a80;
}

.alert.success {
    background: rgba(76, 175, 80, 0.2);
    border: 1px solid rgba(76, 175, 80, 0.5);
    color: #b9f6ca;
}

/* Tabs */
.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 2rem;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #8b949e;
    padding: 10px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--text-color);
    border-bottom-color: var(--primary-color);
}

.tab-btn:hover {
    color: var(--text-color);
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #c9d1d9;
}

.form-group input {
    width: 100%;
    padding: 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: var(--text-color);
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.primary-btn {
    background: linear-gradient(135deg, var(--primary-color), #ff8a65);
    color: white;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 87, 34, 0.5);
}

/* Character Selection */
.character-selection-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Character Sections */
.character-sections {
    margin-top: 1rem;
}

.section-title {
    font-size: 1.8rem;
    color: var(--primary-color);
    border-bottom: 2px solid var(--glass-border);
    padding-bottom: 10px;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 12px;
    border: 1px solid var(--glass-border);
}

.character-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}

.character-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.character-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(255, 87, 34, 0.2);
}

.character-card.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(255, 87, 34, 0.5);
}

.character-card.selected::before {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.character-img-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1rem auto;
    border-radius: 50%;
    background: #111;
    overflow: hidden;
    border: 2px solid var(--glass-border);
}

.character-img-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.character-name {
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.character-village {
    font-size: 0.8rem;
    color: #8b949e;
}

.action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    border-top: 1px solid var(--glass-border);
    padding: 1.5rem;
    display: flex;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.play-btn {
    padding: 12px 40px;
    font-size: 1.2rem;
    border-radius: 30px;
}

.play-btn:disabled {
    background: #555;
    color: #888;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}