/* ToDo: refractor CSS */

:root {
  --matchmaking-color-page-background: #ffbe55;
  --Matchmaker-match-card-background: #f7f7f7;
  --Matchmaker-match-score-background: #1579c7;
  --Matchmaker-match-score-text: #fff;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Poppins';
    src: url('/assets/fonts/Poppins-ExtraBold.ttf') format('truetype');
    font-weight: 800;
    font-style: normal;
}

body {
  font-family: 'Poppins', sans-serif;
}


/* Matchmaker matches */
.dashboard-card-wrap {
    margin-bottom: -90px;
}

/* Matches list */
.matches-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 25px;
}

/* Match card */
.match-card {
  background: var(--Matchmaker-match-card-background);
  border-right: 4px solid var(--matchmaking-color-page-background);
  border-left: 4px solid var(--matchmaking-color-page-background);
  border-radius: 16px;
  padding: 22px;
}

/* Match card layout */
.match-card-header,
.match-card-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.match-card h2 {
  margin-bottom: 6px;
}

/* Match score */
.match-score {
  background: var(--Matchmaker-match-score-background);
  color: var(--Matchmaker-match-score-text);
  font-weight: 800;
  padding: 12px 16px;
  border-radius: 14px;
  font-size: 20px;
}

/* Match details */
.match-reason {
  margin: 18px 0;
  line-height: 150%;
}

.match-status {
  font-weight: 700;
}

/* Matches buttons */

.match-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.match-actions form {
    margin: 0;
}

.match-actions .btn,
.match-card-footer .btn {
    width: auto;
    min-width: 150px;
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
}

.match-actions .btn-success {
    background: #167a3a;
    color: #fff;
}

.match-actions .btn-danger {
    background: #b42318;
    color: #fff;
}

.match-actions .btn-primary {
    background: var(--color-primary);
    color: #fff;
}

/* Responsive matches */
/* Tablet */
@media (max-width: 1024px) {

    .match-card-header,
    .match-card-footer {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .match-score {
        font-size: 18px;
        padding: 10px 14px;
    }

    .match-actions {
        width: 100%;
    }

    .match-actions .btn,
    .match-card-footer .btn {
        min-width: 130px;
    }
}

/* Mobile */
@media (max-width: 767px) {

    .dashboard-card-wrap {
        margin-bottom: -50px;
    }

    .matches-list {
        gap: 14px;
    }

    .match-card {
        padding: 18px;
    }

    .match-card-header,
    .match-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .match-card h2 {
        font-size: 1.25rem;
        word-break: break-word;
    }

    .match-score {
        width: 100%;
        text-align: center;
        font-size: 18px;
    }

    .match-reason {
        font-size: 14px;
    }

    .match-actions {
        flex-direction: column;
        gap: 10px;
    }

    .match-actions form {
        width: 100%;
    }

    .match-actions .btn,
    .match-card-footer .btn {
        width: 100%;
        min-width: unset;
    }
}

/* Small phones */
@media (max-width: 480px) {

    .match-card {
        padding: 14px;
        border-radius: 12px;
    }

    .match-card h2 {
        font-size: 1.1rem;
    }

    .match-score {
        font-size: 16px;
        padding: 10px;
    }

    .match-reason,
    .match-status {
        font-size: 13px;
    }
}