/* Minimal overrides for Pico CSS dark theme */

:root {
    --pico-font-size: 15px;
}

nav {
    border-bottom: 1px solid var(--pico-muted-border-color);
    margin-bottom: 2rem;
}

table {
    font-size: 0.9em;
}

.error {
    color: var(--pico-del-color);
    padding: 0.5rem;
}

.success {
    color: var(--pico-ins-color);
    padding: 0.5rem;
}

footer {
    margin-top: 3rem;
    padding: 1rem 0;
    border-top: 1px solid var(--pico-muted-border-color);
    text-align: center;
}

article header {
    font-weight: bold;
}

.hero-avatar {
    vertical-align: middle;
    border-radius: 3px;
    margin-right: 0.3rem;
}

/* Hero list grid */
.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.75rem;
}

.hero-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    background: var(--pico-card-background-color);
    border: 1px solid var(--pico-muted-border-color);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s;
}

.hero-card:hover {
    border-color: var(--pico-primary);
}

.hero-card img {
    border-radius: 4px;
    flex-shrink: 0;
}

.hero-card-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.hero-card-info strong {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-card-info small {
    color: var(--pico-muted-color);
}

/* Hero detail header */
.hero-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.hero-header img {
    border-radius: 6px;
    flex-shrink: 0;
}

.hero-header h1 {
    margin-bottom: 0.25rem;
}

.hero-header p {
    margin-bottom: 0;
    color: var(--pico-muted-color);
}

/* Draft order */
.draft-timeline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 2rem;
}

.draft-event {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.35rem 0.5rem;
    border-radius: 6px;
    background: var(--pico-card-background-color);
    border: 2px solid var(--pico-muted-border-color);
    min-width: 72px;
    text-align: center;
    font-size: 0.8em;
}

.draft-event.pick {
    border-style: solid;
}

.draft-event.ban {
    border-style: dashed;
    opacity: 0.7;
}

.draft-event.radiant {
    border-color: #92f292;
}

.draft-event.dire {
    border-color: #f29292;
}

.draft-event .draft-label {
    font-size: 0.7em;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 0.05em;
}

.draft-event.ban .draft-label {
    color: var(--pico-muted-color);
}

.draft-event.pick.radiant .draft-label {
    color: #92f292;
}

.draft-event.pick.dire .draft-label {
    color: #f29292;
}

.draft-event .draft-hero {
    font-size: 0.85em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 90px;
}
