/* --- Base Styling & Theme --- */
:root {
    --bg-gradient: linear-gradient(135deg, #0f1115 0%, #1a1d24 100%);
    --card-bg: rgba(32, 38, 46, 0.7);
    --card-border: rgba(255, 255, 255, 0.06);
    --accent-color: #00ff87; /* FM green accent */
    --accent-hover: #00e074;
    --star-gold: #ffee00;
    --text-main: #f3f4f6;
    --text-muted: #9ca3af;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg-gradient);
    color: var(--text-main);
    font-family: 'Roboto', sans-serif;
    min-height: 100vh;
    padding: 2rem 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 800px;
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.2rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.25rem;
    background: linear-gradient(to right, #fff, var(--text-muted));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

header p {
    color: var(--accent-color);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* --- Card Architecture --- */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}

.card h2 {
    font-size: 1.1rem;
    color: var(--text-main);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 0.5rem;
}

.card h2 i {
    color: var(--accent-color);
}

/* Layout split for attributes */
.attributes-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 650px) {
    .attributes-container {
        grid-template-columns: 1fr;
    }
}

/* --- Custom Custom Inputs/Tiles --- */
.radio-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.radio-tile {
    position: relative;
    cursor: pointer;
}

.radio-tile input {
    position: absolute;
    opacity: 0;
}

.tile-content {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    text-align: center;
}

.tile-content i {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.tile-content span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Checked Tile Effects */
.radio-tile input:checked + .tile-content {
    background: rgba(0, 255, 135, 0.1);
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 255, 135, 0.15);
}
.radio-tile input:checked + .tile-content i {
    color: var(--accent-color);
}

/* Coach category subchips */
.radio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.radio-chip {
    position: relative;
    cursor: pointer;
}

.radio-chip input {
    position: absolute;
    opacity: 0;
}

.radio-chip span {
    display: block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.6rem;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.radio-chip input:checked + span {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #000;
    font-weight: 600;
}

/* Number Input Field Styling */
.input-field {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.input-field:last-of-type {
    margin-bottom: 0;
}

.input-field label {
    font-size: 0.95rem;
    color: #d1d5db;
}

.input-field input[type="number"] {
    background: #11141a;
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    color: #fff;
    padding: 0.4rem 0.6rem;
    width: 65px;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    outline: none;
    transition: border-color 0.2s;
}

.input-field input[type="number"]:focus {
    border-color: var(--accent-color);
}

.placeholder-text {
    text-align: center;
    padding: 2rem 0;
    font-size: 0.9rem;
}

/* --- Display Conditions --- */
.coach, .fitness, .gkcoach, .ddm, .dynamic-attributes, .tactics, .defending, .attacking, .mental, .technique, .stars {
    display: none;
}

/* --- Glowing Star Display Block --- */
.display-rating-card {
    background: radial-gradient(circle at center, rgba(255, 238, 0, 0.08) 0%, rgba(0,0,0,0) 70%), var(--card-bg);
    border: 1px solid rgba(255, 238, 0, 0.2);
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.rating-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.star-icons {
    font-size: 2.2rem;
    color: var(--star-gold);
    text-shadow: 0 0 12px rgba(255, 238, 0, 0.5);
    display: flex;
    justify-content: center;
    gap: 0.25rem;
}