/* ============================================
   spin.css – Brew Bliss Cafe Spin Wheel
   (bigger & cleaner)
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6F4E37;
    --primary-dark: #563b29;
    --primary-light: #a88b78;
    --bg: #f8f5ef;
    --card-bg: #ffffff;
    --text-dark: #3d2a1c;
    --text-muted: #7a6a5a;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.10);
    --radius: 28px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    max-width: 500px;              /* increased from 440px */
    width: 100%;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 28px 24px 36px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: box-shadow 0.3s;
}

/* ---------- Header ---------- */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 500;
    font-size: 15px;
    transition: var(--transition);
    padding: 6px 12px;
    border-radius: 40px;
    background: #f0ebe6;
}

.back-btn:hover {
    background: #e5ddd6;
    transform: translateX(-2px);
}

.back-btn i {
    font-size: 14px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 18px;
    color: var(--text-dark);
}

.brand i {
    color: var(--primary);
    font-size: 20px;
}

/* ---------- Category Info ---------- */
.category-info {
    margin: 20px 0 10px;
}

.category-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto 10px;
    display: block;
    border: 3px solid #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.category-placeholder {
    font-size: 48px;
    line-height: 1;
    display: block;
}

.category-title {
    font-size: 34px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 4px;
    letter-spacing: -0.5px;
}

.category-sub {
    color: var(--text-muted);
    font-size: 15px;
    font-weight: 400;
    margin-top: 2px;
}

/* ---------- Pointer ---------- */
.pointer-wrapper {
    height: 24px;
    display: flex;
    justify-content: center;
    margin: 6px 0 0;
    position: relative;
    z-index: 10;
}

.pointer {
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 34px solid var(--primary);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.15));
}

/* ---------- Wheel ---------- */
.wheel-wrapper {
    display: flex;
    justify-content: center;
    margin: -6px 0 8px;
}

canvas#wheel {
    /*width: 100%;*/
    max-width: 400px;      /* bigger than before */
    height: auto;
    aspect-ratio: 1/1;
    border-radius: 50%;
    background: #fcf9f6;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    transition: box-shadow 0.3s;
    cursor: pointer;       /* indicates clickable */
}

/* ---------- Spin Button ---------- */
.spin-btn {
    margin-top: 24px;
    width: 100%;
    padding: 18px 20px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 1.5px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 60px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    box-shadow: 0 8px 24px rgba(111, 78, 55, 0.30);
}

.spin-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.02);
    box-shadow: 0 10px 32px rgba(111, 78, 55, 0.40);
}

.spin-btn:active {
    transform: scale(0.96);
}

.spin-btn .spin-icon {
    font-size: 24px;
    transition: transform 0.6s ease;
}

.spin-btn:active .spin-icon {
    transform: rotate(120deg);
}

/* ---------- Footnote ---------- */
.footnote {
    margin-top: 18px;
    color: var(--text-muted);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.footnote i {
    color: var(--primary-light);
    font-size: 16px;
}

/* ---------- Modal ---------- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999;
    padding: 20px;
}

.modal-card {
    background: #fff;
    max-width: 380px;
    width: 100%;
    border-radius: 32px;
    padding: 32px 24px 28px;
    text-align: center;
    position: relative;
    animation: popIn 0.55s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

@keyframes popIn {
    0% { opacity: 0; transform: scale(0.6); }
    70% { transform: scale(1.04); }
    100% { opacity: 1; transform: scale(1); }
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: none;
    font-size: 28px;
    color: #aaa;
    cursor: pointer;
    transition: var(--transition);
    padding: 4px 8px;
    border-radius: 30px;
}
.modal-close:hover {
    color: #333;
    background: #f0ebe6;
}

.modal-image-wrap {
    margin: 8px 0 16px;
}

.winner-image {
    width: 160px;
    height: 160px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.10);
    animation: zoomFade 0.6s ease;
}

@keyframes zoomFade {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.winner-name {
    font-size: 30px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.winner-price {
    font-size: 28px;
    font-weight: 800;
    color: #D35400;
    margin-bottom: 6px;
}

.winner-desc {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 22px;
    padding: 0 4px;
}

/* ---------- Modal Actions (buttons) ---------- */
.modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    flex: 1;
    min-width: 120px;
    padding: 15px 10px;
    border: none;
    border-radius: 60px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;   /* for anchor tags */
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 16px rgba(111, 78, 55, 0.25);
}
.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(111, 78, 55, 0.35);
}

.btn-secondary {
    background: #f0ebe6;
    color: var(--text-dark);
}
.btn-secondary:hover {
    background: #e5ddd6;
    transform: translateY(-3px);
}

/* NEW: tertiary button (View Full Menu) */
.btn-tertiary {
    background: #fff;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: 0 2px 8px rgba(111, 78, 55, 0.08);
}
.btn-tertiary:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(111, 78, 55, 0.25);
}

/* ---------- Responsive ---------- */
@media (max-width: 440px) {
    .container {
        padding: 20px 16px 28px;
    }
    .category-title {
        font-size: 28px;
    }
    canvas#wheel {
        max-width: 360px;
    }
    .winner-image {
        width: 130px;
        height: 130px;
    }
    .modal-card {
        padding: 24px 18px 20px;
    }
    .btn {
        font-size: 14px;
        padding: 12px 8px;
        min-width: 100px;
    }
}

.menu-divider{
    margin:40px 0 25px;
    border:none;
    border-top:1px solid #ececec;
}

.menu-header{
    margin-bottom:18px;
}

.menu-header h2{
    font-size:28px;
    color:#3d2a1c;
    font-weight:700;
}

.menu-card{
    display:flex;
    align-items:center;
    gap:15px;
    background:#fff;
    padding:15px;
    margin-bottom:15px;
    border-radius:20px;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
    transition:.25s;
}

.menu-card:hover{
    transform:translateY(-3px);
    box-shadow:0 10px 30px rgba(0,0,0,.10);
}

.menu-img{
    width:80px;
    height:80px;
    border-radius:15px;
    object-fit:cover;
    flex-shrink:0;
}

.menu-content{
    flex:1;
}

.menu-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:5px;
}

.menu-top h3{
    font-size:20px;
    color:#3d2a1c;
    font-weight:600;
}

.price{
    font-size:20px;
    color:#6F4E37;
    font-weight:700;
}

.menu-content p{
    font-size:14px;
    color:#777;
    line-height:1.5;
}