/* ========================================
   GLOBAL
======================================== */

body {
    font-family: Arial, sans-serif;
    background-color: #111111;
    color: white;
    text-align: center;
    margin: 0;
    padding: 40px;
    box-sizing: border-box;
}

/* Make sizing predictable */
*,
*::before,
*::after {
    box-sizing: border-box;
}


/* ========================================
   MAIN TITLE
======================================== */

h1 {
    font-size: 50px;
    margin-bottom: 10px;
}


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

p {
    font-size: 18px;
}

h2 {
    margin-top: 40px;
}


/* ========================================
   BUTTONS
======================================== */

button {
    padding: 12px 20px;
    margin: 6px;

    border: none;
    border-radius: 10px;

    font-size: 16px;
    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

button:hover {
    transform: scale(1.05);
}

/* Keyboard accessibility */
button:focus-visible {
    outline: 3px solid #ffb6d9;
    outline-offset: 3px;
}


/* ========================================
   INPUT BOXES
======================================== */

input {
    padding: 12px;
    margin: 8px;

    border-radius: 8px;
    border: none;

    font-size: 16px;
    width: 180px;

    box-sizing: border-box;
}

input:focus {
    outline: 2px solid #ff69b4;
    box-shadow: 0 0 10px rgba(255, 105, 180, 0.4);
}


/* ========================================
   CALCULATE BUTTON
======================================== */

#calculate {
    margin-top: 30px;

    padding: 16px 30px;

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

    background: linear-gradient(
        90deg,
        #ff69b4,
        #ff1493
    );

    color: white;

    border: 2px solid #ffb6d9;

    box-shadow: 0 0 20px rgba(255, 105, 180, 0.5);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

#calculate:hover {
    transform: scale(1.08);

    box-shadow:
        0 0 30px rgba(255, 105, 180, 0.8);
}


/* ========================================
   RESULT
======================================== */

#result {
    margin-top: 40px;
    font-size: 32px;
}


/* ========================================
   ADVICE
======================================== */

#advice {
    font-size: 20px;
    margin-top: 15px;
}


/* ========================================
   SELECTED BUTTON
======================================== */

button.selected {
    transform: scale(1.08);

    outline: 3px solid #ff69b4;

    box-shadow:
        0 0 15px #ff69b4;
}


/* ========================================
   ☠️ COOKED METER
======================================== */

#meterContainer {
    width: 80%;
    max-width: 600px;

    height: 30px;

    background-color: #222222;

    border: 2px solid #ff69b4;
    border-radius: 20px;

    margin: 25px auto 10px;

    overflow: hidden;

    box-shadow:
        0 0 15px rgba(255, 105, 180, 0.4);
}


#meterBar {
    width: 0%;
    height: 100%;

    background: linear-gradient(
        90deg,
        #ff69b4,
        #ff1493,
        #ff4500
    );

    border-radius: 20px;

    transition: width 0.8s ease;

    box-shadow:
        0 0 15px #ff69b4;
}


#meterPercentage {
    font-size: 24px;
    font-weight: bold;
}


/* ========================================
   🧯 ANTI-FRIED CHECKLIST
======================================== */

#checklistBox {
    margin: 35px auto;
    padding: 28px;

    width: 100%;
    max-width: 700px;

    border-radius: 22px;

    background: rgba(255, 255, 255, 0.08);

    border: 2px solid rgba(255, 255, 255, 0.15);

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.15);

    text-align: left;
}


/* ========================================
   CHECKLIST TITLE
======================================== */

#checklistBox h2 {
    text-align: center;

    margin-top: 0;
    margin-bottom: 8px;
}


/* ========================================
   CHECKLIST INTRO
======================================== */

#checklistIntro {
    text-align: center;

    opacity: 0.8;

    margin-bottom: 25px;
}


/* ========================================
   CHECKLIST ITEMS
======================================== */

.checklist-item {
    display: flex;

    align-items: center;

    gap: 15px;

    padding: 16px 18px;

    margin: 12px 0;

    border-radius: 14px;

    background: rgba(255, 255, 255, 0.07);

    border: 1px solid rgba(255, 255, 255, 0.12);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        opacity 0.2s ease;
}


/* Hover */

.checklist-item:hover {
    transform: translateX(5px);

    background: rgba(255, 255, 255, 0.13);
}


/* ========================================
   CUSTOM CHECKBOX
======================================== */

.checklist-item input {
    appearance: none;

    width: 24px;
    height: 24px;

    min-width: 24px;

    margin: 0;

    padding: 0;

    border-radius: 7px;

    border: 2px solid rgba(255, 255, 255, 0.5);

    cursor: pointer;

    position: relative;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


/* Checkbox hover */

.checklist-item input:hover {
    transform: scale(1.1);
}


/* Checked checkbox */

.checklist-item input:checked {
    background: #2ecc71;

    border-color: #2ecc71;
}


/* Checkmark */

.checklist-item input:checked::after {
    content: "✓";

    position: absolute;

    left: 4px;
    top: -1px;

    font-size: 17px;

    font-weight: bold;

    color: white;
}


/* ========================================
   COMPLETED TASK
======================================== */

.checklist-item.completed {
    opacity: 0.55;

    transform: none;
}


.checklist-item.completed span {
    text-decoration: line-through;
}


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

#checklistProgress {
    margin-top: 25px;

    padding: 12px;

    text-align: center;

    font-weight: bold;

    border-radius: 12px;

    background: rgba(255, 255, 255, 0.07);
}


#checklistProgress strong {
    font-size: 1.15em;
}


/* ========================================
   📱 MOBILE RESPONSIVENESS
======================================== */

@media (max-width: 600px) {

    body {
        padding: 20px;
    }

    h1 {
        font-size: 38px;
    }

    p {
        font-size: 16px;
    }

    h2 {
        margin-top: 30px;
    }

    input {
        width: 80%;
        max-width: 300px;
    }

    #calculate {
        padding: 14px 24px;
        font-size: 18px;
    }

    #meterContainer {
        width: 95%;
    }

    #result {
        font-size: 27px;
    }

    #advice {
        font-size: 18px;
    }

    #checklistBox {
        padding: 20px;
    }

    .checklist-item {
        padding: 14px;
        gap: 12px;
    }
}


/* ========================================
   ♿ REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
    }

    button:hover,
    .checklist-item:hover {
        transform: none;
    }
}

#customBox,
#checklistBox {
    display: none;
}