/* =============================
   GLOBAL
============================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Trebuchet MS", sans-serif;
}

body {
    background-color: #0e064e;
    color: #fff;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 2.3rem;
    margin-bottom: 25px;
    text-shadow: 3px 3px 0 #000;
    filter: drop-shadow(5px 5px 2px #000);
}

/* =============================
   INPUT AREA
============================= */
#add-area {
    margin-bottom: 30px;
    display: flex;
    gap: 10px;
}

#skill-name {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
}

#add-btn, #back-btn {
    padding: 12px 15px;
    background: linear-gradient(90deg, #FFF4C2, #FFD700, #CC9A00);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    color: rgb(0, 0, 0);
    cursor: pointer;
    box-shadow: 0 0 8px #000;
    font-weight: 600;
}
#add-btn:hover {
    background-color: rgba(255, 215, 0, 0.4);
}
#back-btn:hover {
    background-color: rgba(255, 215, 0, 0.4);
}

/* =============================
   SKILL CARD
============================= */
.skill {
    padding: 20px;
    margin-bottom: 25px;
    border-radius: 12px;
    /* background: rgba(0,0,0,0.55); */
    backdrop-filter: blur(3px);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg, #000050, #e2b82b, #000000);
}

/* spray stencil texture */
.skill::before {
    content: "";
    position: absolute;
    inset: 0;
    background: gold;
    opacity: 0.10;
    pointer-events: none;
    mix-blend-mode: screen;
}

.skill-title {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 12px;
    text-shadow: 1px 1px 0 #000;
}

/* health bar */
.bar-wrapper {
    width: 100%;
    height: 26px;
    background: rgba(255,255,255,0.15);
    border-radius: 15px;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    margin-bottom: 8px;
    position: relative;
}

.health-bar {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, #32ff4d, #4dff87);
    transition: width .4s ease-out;
    box-shadow: inset 0 0 8px #000;
}

.btn-row {
    margin-top: 12px;
    display: flex;
    gap: 10px;
}

.study-btn {
    padding: 8px 12px;
    background: #00ccff;background: linear-gradient(90deg, #FFF4C2, #FFD700, #CC9A00);border: none;
    color: rgb(0, 0, 0);
    border-radius: 6px;
    cursor: pointer;
    font-size: .9rem;
    box-shadow: 0 0 8px #000;
    font-weight: 600;
}
.study-btn:hover {
    background: #33ddff;
}

.delete-btn {
    padding: 8px 12px;
    background: #ff1a1a;
    border: none;
    color: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9rem;
    box-shadow: 0 0 8px #000;
    margin-left: auto;
    font-weight: 600;
}
.delete-btn:hover {
    background: #ff4d4d;
}

.last-trained {
    font-size: .85rem;
    opacity: .85;
}

/* =============================
   TIMEFRAME BUTTONS
============================= */

option {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.timeframe-btn {
    padding: 8px 12px;
    background: linear-gradient(90deg, #FFF4C2, #FFD700, #CC9A00);
    border: none;
    color: black;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    font-size: .9rem;
    box-shadow: 0 0 8px #000;
    transition: 0.2s ease-in-out;
}

.timeframe-btn:hover {
    background: rgba(255, 215, 0, 0.4);
    color: black;
}

/* highlight when selected */
.timeframe-btn.active {
    outline: 3px solid #ffffff;
    box-shadow: 0 0 12px #fff;
}
