/* =============================================
   HO-HOSANTA CHRISTMAS THEME - raffle.css
   Palette borrowed from ho-hosanta.com
   red #8B0000 · forest green #2F4F2F · bright green #04AA6D
   gold #f5c518 · cream #FFFDD0
   ============================================= */

body {
    background: linear-gradient(135deg, #8B0000 0%, #2F4F2F 100%) fixed;
    font-family: 'Segoe UI', 'Lato', sans-serif;
    color: #fff;
    min-height: 100vh;
}

/* Festive navbar to match the deep Christmas palette */
.navbar {
    background: rgba(11, 40, 20, 0.92) !important;
    border-bottom: 3px solid #f5c518;
    box-shadow: 0 2px 14px rgba(0,0,0,0.35);
}

.navbar .nav-link {
    color: #fdf6e3 !important;
    font-weight: 600;
}

.navbar .nav-link:hover {
    color: #f5c518 !important;
}

.navbar .btn-donate {
    background-color: #8B0000;
    border-radius: 8px;
    color: #fff !important;
    padding: 0.35rem 1rem;
}

.navbar .btn-donate:hover {
    background-color: #b31217;
}

.raffle-box {
    background: #fffdf8;
    border-radius: 14px;
    padding: 2rem;
    border: 4px solid #f5c518;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    max-width: 560px;
    margin: 0 auto;
    color: #1c1c1c;
    position: relative;
}

/* Candy-cane top ribbon */
.raffle-box::before {
    content: "";
    display: block;
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    height: 10px;
    border-radius: 14px 14px 0 0;
    background: repeating-linear-gradient(
        45deg,
        #8B0000 0 14px,
        #ffffff 14px 28px
    );
}

.raffle-box h2 {
    color: #8B0000;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Mode toggle (Names / Number Range) */
.mode-toggle {
    display: flex;
    gap: 0;
    justify-content: center;
    margin-bottom: 1.25rem;
    border: 2px solid #2F4F2F;
    border-radius: 10px;
    overflow: hidden;
}

.mode-btn {
    flex: 1;
    background: #fff;
    color: #2F4F2F;
    border: none;
    padding: 0.55rem 1rem;
    font-size: 0.98rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s, color 0.18s;
}

.mode-btn + .mode-btn {
    border-left: 2px solid #2F4F2F;
}

.mode-btn.active {
    background: #2F4F2F;
    color: #fff;
}

.mode-btn:not(.active):hover {
    background: #eef7ef;
}

/* Number range inputs */
.range-inputs {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.range-field {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.range-field label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2F4F2F;
    margin-bottom: 0.25rem;
}

.range-field input {
    width: 120px;
    border: 2px solid #2F4F2F;
    border-radius: 8px;
    padding: 0.55rem;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    color: #1c1c1c;
    font-family: 'Segoe UI', 'Lato', sans-serif;
}

.range-field input:focus {
    border-color: #04AA6D;
    outline: none;
    box-shadow: 0 0 0 3px rgba(4,170,109,0.25);
}

.range-dash {
    color: #8B0000;
    font-weight: 800;
    padding-bottom: 0.7rem;
}

#winners-list li.raffle-msg {
    background: #fdeaea;
    border-left: 5px solid #8B0000;
    color: #8B0000;
    font-weight: 700;
    font-size: 0.95rem;
}

.raffle-box textarea {
    width: 100%;
    border: 2px solid #2F4F2F;
    border-radius: 8px;
    padding: 0.75rem;
    font-size: 1rem;
    font-family: 'Segoe UI', 'Lato', sans-serif;
    resize: vertical;
    transition: border-color 0.18s, box-shadow 0.18s;
    background: #ffffff;
    color: #1c1c1c;
}

.raffle-box textarea:focus {
    border-color: #04AA6D;
    outline: none;
    box-shadow: 0 0 0 3px rgba(4,170,109,0.25);
}

.btn-raffle {
    background-color: #04AA6D;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.65rem 2rem;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s, transform 0.15s;
    margin-top: 0.75rem;
    box-shadow: 0 3px 0 #037a4e;
}

.btn-raffle:hover {
    background-color: #05c47f;
    transform: translateY(-1px);
}

.btn-clear {
    background-color: #8B0000;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.18s;
    margin-top: 0.5rem;
}

.btn-clear:hover {
    background-color: #b31217;
}

#winners-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

#winners-list li {
    background: #eef7ef;
    border-left: 5px solid #04AA6D;
    border-radius: 6px;
    padding: 0.5rem 1rem;
    margin-bottom: 0.4rem;
    font-weight: 700;
    color: #2F4F2F;
    font-size: 1.05rem;
}

#winners-list li.winner-entry {
    background: #fff6da;
    border-left-color: #f5c518;
    color: #8B0000;
}

#winners-list li:first-child {
    font-size: 0.85rem;
    font-weight: 400;
    color: #6b6560;
    background: none;
    border-left: none;
    padding-left: 0;
}

/* Info footer card in festive colors */
.info-card {
    background: rgba(11, 40, 20, 0.85);
    border: 2px solid #f5c518;
    border-radius: 14px;
    padding: 1.5rem;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    color: #fdf6e3;
}

.info-card h4 {
    color: #f5c518;
    font-weight: 800;
}

.info-card .tagline {
    color: #05c47f;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 0;
}
