* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;

    color: #e8f5ef;

    background-image: url("league2_background.png");
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    background-color: #001b00;
}

h1 {
    font-family: "Alverata", serif;
    font-size: 44px;
    font-weight: bold;

    background: linear-gradient(
        to bottom,
        #fdf0b4 0%,
        #fab07b 100%
    );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;

    filter:
        drop-shadow(0 2px 0 #071a0c)
        drop-shadow(0 4px 6px rgba(0, 0, 0, 0.8));
}

/* =========================
HEADER
========================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    background: rgba(0, 27, 0, 0.94);

    border-bottom: 1px solid rgba(0, 239, 220, 0.28);

    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.6);

    backdrop-filter: blur(10px);
}

.header-content {
    width: min(1100px, calc(100% - 32px));

    margin: 0 auto;

    padding: 20px 0;
}

h1 {
    margin: 0 0 18px 0;

    font-size: 32px;

    color: #65e58a;

    text-shadow:
        0 0 12px rgba(0, 239, 220, 0.25);
}

.reset-button {
    margin-left: auto;

    padding: 10px 16px;

    border: 1px solid rgba(250, 112, 123, 0.45);
    border-radius: 8px;

    background: rgba(75, 20, 25, 0.65);

    color: #e8f5ef;

    font-size: 13px;
    font-weight: bold;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.reset-button:hover {
    background: rgba(110, 25, 35, 0.8);
    border-color: rgba(250, 112, 123, 0.75);
}

@media (max-width: 600px) {
    .reset-button {
        margin-left: 0;
        width: 100%;
    }
}

/* =========================
PROGRESS
========================= */

.progress {
    display: flex;

    gap: 14px;
}

.stat-card {
    display: flex;

    flex-direction: column;

    min-width: 160px;

    padding: 12px 18px;

    border-radius: 10px;

    background: rgba(0, 27, 0, 0.82);

    border: 1px solid rgba(0, 239, 220, 0.22);
}

.stat-label {
    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;

    color: #9cc9bd;
}

.stat-value {
    margin-top: 3px;

    font-family: "Alverata", serif;
    font-size: 20px;
    font-weight: bold;

    background: linear-gradient(
        to bottom,
        #fdf0b4 0%,
        #fab07b 100%
    );

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;

    filter:
        drop-shadow(0 1px 0 #071a0c)
        drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8));
}

/* =========================
TASK AREA
========================= */

.main-content {
    width: min(1100px, calc(100% - 32px));

    margin: 20px auto;

    height: calc(100vh - 190px);

    min-height: 300px;
}

.task-list {
    height: 100%;

    overflow-y: auto;

    padding: 8px 12px 30px 4px;
}

/* =========================
TASK CARDS
========================= */

.task-list > div {
    margin-bottom: 12px;

    padding: 18px 20px;

    border-radius: 12px;

    background: rgba(0, 27, 0, 0.78);

    border: 1px solid rgba(0, 168, 137, 0.28);

    box-shadow:
        0 4px 14px rgba(0, 0, 0, 0.35);

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.task-list > div:hover {
    background: rgba(0, 50, 35, 0.88);

    border-color: rgba(0, 239, 220, 0.45);

    transform: translateY(-1px);
}

/* =========================
CHECKBOX / TASK TITLE
========================= */

.task-list label {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    cursor: pointer;

    font-size: 17px;

    line-height: 1.4;
}

.task-list input[type="checkbox"] {
    appearance: none;

    flex-shrink: 0;

    width: 20px;
    height: 20px;

    margin: 0;

    border-radius: 5px;

    border: 2px solid #008f78;

    background: rgba(0, 27, 0, 0.7);

    cursor: pointer;

    position: relative;

    transition: 0.15s ease;
}

.task-list input[type="checkbox"]:hover {
    border-color: #00efdc;
}

.task-list input[type="checkbox"]:checked {
    background: #00a889;

    border-color: #00efdc;
}

.task-list input[type="checkbox"]:checked::after {
    content: "✓";

    position: absolute;

    left: 3px;
    top: -2px;

    font-size: 15px;

    font-weight: bold;

    color: white;
}

.task-card.completed {
    opacity: 0.55;

    border-color: rgba(0, 168, 137, 0.12);
}

.task-card.completed strong {
    text-decoration: line-through;

    color: #668f83;
}

/* =========================
TASK TEXT
========================= */

.task-list p {
    margin: 12px 0 0 32px;

    color: #c0d8d0;

    font-size: 14px;

    line-height: 1.5;
}

.task-list p em {
    color: #7fc9b8;
}

.task-list a {
    color: #00efdc;

    text-decoration: none;
}

.task-list a:hover {
    text-decoration: underline;
}

/* =========================
SCROLLBAR
========================= */

.task-list::-webkit-scrollbar {
    width: 8px;
}

.task-list::-webkit-scrollbar-track {
    background: rgba(0, 27, 0, 0.55);

    border-radius: 10px;
}

.task-list::-webkit-scrollbar-thumb {
    background: rgba(0, 168, 137, 0.55);

    border-radius: 10px;
}

.task-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 239, 220, 0.7);
}

/* =========================
MOBILE
========================= */

@media (max-width: 600px) {

    .header-content,
    .main-content {
        width: calc(100% - 20px);
    }

    .header-content {
        padding: 15px 0;
    }

    h1 {
        font-size: 26px;
    }

    .progress {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .stat-card {
        min-width: 0;
        flex: 1 1 0;
        padding: 10px 12px;
    }

    .stat-value {
        font-size: 20px;
    }

    .reset-button {
        flex: 0 0 100%;
        width: 100%;
        margin-left: 0;
    }

    .main-content {
        height: calc(100vh - 200px);
        margin-top: 10px;
    }

    .task-list > div {
        padding: 15px;
    }
}