/* /pronunciation/assets/css/pronunciation.css */

/* FIX 2: Lokales Laden der Schriften direkt aus eurem neuen Modul-Font-Ordner */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-600.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/inter-v20-latin-700.woff2') format('woff2');
}

/* Absolute Farbsicherung für den Body-Hintergrund */
body {
    background-color: #0a0f1d !important;
    color: #f1f5f9 !important;
}

.team-selector-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 25px;
    margin-bottom: 25px;
}

.selector-box {
    background-color: var(--card-bg);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.selector-box label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--text-muted);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: 'Inter', sans-serif;
}

.selector-box select {
    width: 100%;
    padding: 12px;
    background-color: #0a0f1d;
    background-color: var(--bg-dark);
    color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 16px;
    padding-right: 45px;
}

.selector-box select:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}

.selector-box select option {
    background-color: #0a0f1d;
    background-color: var(--bg-dark);
    color: #f1f5f9;
}

.matchup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

@media (max-width: 1024px) {
    .team-selector-grid, .matchup-grid {
        grid-template-columns: 1fr;
    }
}

.roster-column {
    background-color: var(--card-bg);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.column-header {
    background: rgba(255, 255, 255, 0.01);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.team-heading {
    margin: 0;
    color: var(--accent-color);
    font-size: 1.25rem;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
}

.placeholder-text {
    color: var(--text-muted);
    font-style: italic;
    text-align: center;
    padding: 40px 20px;
    margin: 0;
    font-family: 'Inter', sans-serif;
}

.player-header-row {
    font-weight: 600; 
    color: var(--accent-color); 
    border-bottom: 1px solid var(--border-color); 
    font-size: 0.8rem; 
    padding: 10px 20px;
    display: grid;
    grid-template-columns: 45px 1fr 50px 50px 60px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(0, 0, 0, 0.15);
    font-family: 'Inter', sans-serif;
}

.player-row {
    display: grid;
    grid-template-columns: 45px 1fr 50px 50px 60px;
    align-items: center;
    padding: 10px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
}

.player-row:hover {
    background-color: rgba(255, 255, 255, 0.02);
}

.p-number {
    font-weight: 700;
    color: var(--accent-color);
}

.p-name {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f1f5f9;
}

.p-nat {
    color: var(--text-muted);
    text-align: center;
}

.p-pos {
    text-align: center;
    font-weight: 600;
    color: #fff;
}

.p-status {
    display: flex;
    justify-content: center;
}

.text-center {
    text-align: center;
}

.status-pill {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    min-width: 35px;
    font-family: 'Inter', sans-serif;
}

.stat-a {
    background-color: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

.stat-e {
    background-color: rgba(234, 179, 8, 0.12);
    color: #eab308;
    border: 1px solid rgba(234, 179, 8, 0.25);
}

.stat-h {
    background-color: rgba(148, 163, 184, 0.12);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.25);
}

.audio-btn {
    background: none;
    border: none;
    color: var(--accent-color);
    cursor: pointer;
    font-size: 13px;
    padding: 2px 6px;
    border-radius: 4px;
    transition: background 0.2s, transform 0.1s;
}

.audio-btn:hover {
    background-color: rgba(56, 189, 248, 0.15);
    transform: scale(1.05);
}

.audio-btn:disabled {
    color: var(--text-muted);
    cursor: not-allowed;
}


.search-container-box {
    margin-bottom: 20px;
    background-color: var(--card-bg);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.search-inner {
    position: relative;
    width: 100%;
}

.search-inner input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    background-color: var(--bg-dark);
    color: #f1f5f9;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.search-inner input:focus {
    border-color: var(--accent-color);
}

#clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

#clear-search-btn:hover {
    color: #fff;
}

.player-header-row.search-layout,
.player-row.search-layout {
    grid-template-columns: 45px 1.5fr 1fr 50px 50px 60px !important;
}

.p-team-cell {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

/* Styling für die Crowdsourcing Infobox */
.pronunciation-notice-box {
    background-color: rgba(56, 189, 248, 0.04);
    border: 1px dashed rgba(56, 189, 248, 0.25);
    border-radius: 8px;
    padding: 16px 20px;
    margin-top: 20px;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

.notice-title {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}

.notice-text {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

.notice-text a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid rgba(56, 189, 248, 0.3);
    transition: border-color 0.2s;
}

.notice-text a:hover {
    border-bottom-color: var(--accent-color);
}