/* Base styles */
body {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
    margin: 0;
    padding: 20px;
    color: #333;
}

h1, h2, h3 {
    margin: 0 0 10px;
}

h1 {
    text-align: center;
    font-size: 2rem;
    color: #222;
}

/* Cards */
.card {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card h2, .card h3 {
    margin-bottom: 12px;
}

.card-links a.btn,
.card-links button.btn {
    display: block;       /* allekkain */
    margin: 8px 0;        /* väli linkkien välillä */
    text-align: center;   /* keskitetty */
}

/* Layout main + side cards */
main {
    display: flex;
    gap: 20px;
}

.main-content {
    flex: 2;
}

.side-cards {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Buttons */
.btn {
    background: #333;
    color: #fff;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    cursor: pointer;
}

.btn:hover {
    background: #555;
}

.btn--ghost {
    background: transparent;
    color: #333;
    border: 2px solid #333;
}

.btn--ghost:hover {
    background: #333;
    color: #fff;
}

.btn--danger {
    background: #842029;
    color: #fff;
}

.btn--danger:hover {
    background: #a92c36;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* Header */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    color: #333;
    padding: 30px 40px;
    min-height: 160px;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.header-logo {
    flex: 0 0 30%;
}

.header-logo img {
    height: 150px;
    width: auto;
}

.header-title {
    flex: 0 0 40%;
    text-align: center;
}

.header-login {
    flex: 0 0 30%;
    text-align: right;
}

/* Responsiveness */
@media (max-width: 768px) {
    main {
        flex-direction: column;
    }

    .site-header {
        flex-direction: column;
        text-align: center;
        min-height: auto;
    }

    .header-logo, .header-title, .header-login {
        flex: 0 0 100%;
        margin: 10px 0;
        text-align: center;
    }

    .header-logo img {
        height: 120px;
    }
}

/* Additional styling */
.mode-toggle {
    display: flex;
    gap: 10px;
    margin-top: 6px;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.muted {
    color: #666;
    font-size: 0.9rem;
}
.mode-toggle {
  display: flex;
  gap: 10px;
}

.mode-toggle input[type="radio"] {
  display: none; /* Piilotetaan perinteinen radio */
}

.mode-toggle label {
  padding: 8px 16px;
  border: 2px solid #aaa;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.2s;
  user-select: none;
  background-color: #f9f9f9; /* Vaalea tausta */
  color: #333; /* Tummempi teksti */
  font-weight: normal;
}

.mode-toggle input[type="radio"]:checked + label {
  background-color: #fff59d; /* Vaalea korostus */
  color: #333;
  font-weight: bold;
  border-color: #fbc02d;
}

.mode-toggle label:hover {
  background-color: #fff9c4; /* Kevyt hover */
}

/* ---------- Chips ---------- */

.chip__remove{
  border:0; background:transparent; color:#F22902;
  font-size:20px; line-height:1; cursor:pointer; opacity:.9;
}
.chip__remove:hover{ opacity:1; color:#d92546; }


/* Chips / player list */
.chips {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    background: #fff59d;
    color: #333;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: background 0.3s;
}

.chip:hover {
    background: #3fd17c;
}

.visit-row{display:flex; gap:4px; align-items:center;}
.visit-row input[type=number]{width:50px; padding:4px;}

