/* WC Raffle Wheel - Public Styles */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;600;700;900&display=swap');

.wcrw-wrap * { box-sizing: border-box; font-family: 'Outfit', sans-serif; }

.wcrw-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
    color: #1a1a2e;
}

.wcrw-header {
    text-align: center;
    margin-bottom: 2rem;
}
.wcrw-header h1 {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 .4rem;
    color: #1a1a2e;
}
.wcrw-header h1 span { color: #5b5ef4; }
.wcrw-header p { color: #666; margin: 0; font-size: .95rem; }

/* Tabs */
.wcrw-mode-tabs {
    display: flex;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    max-width: 480px;
    margin: 0 auto 2rem;
    background: #f5f5f5;
}
.wcrw-tab {
    flex: 1;
    padding: .65rem 1rem;
    border: none;
    background: transparent;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
    color: #666;
}
.wcrw-tab.active {
    background: #fff;
    color: #1a1a2e;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.1);
}

/* Main layout */
.wcrw-main {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

/* Wheel */
.wcrw-wheel-wrap {
    position: relative;
    flex: 0 0 auto;
    margin: 0 auto;
}
.wcrw-pointer {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: #2d2fa8;
    z-index: 10;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.3));
}
#wcrw-canvas {
    display: block;
    border-radius: 50%;
    box-shadow: 0 8px 40px rgba(91,94,244,.25);
}
#wcrw-spin-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 4px solid #fff;
    background: #fff;
    color: #2d2fa8;
    font-weight: 900;
    font-size: .85rem;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0,0,0,.25);
    transition: transform .15s, box-shadow .15s;
    letter-spacing: .05em;
    z-index: 5;
}
#wcrw-spin-btn:hover { transform: translate(-50%, -50%) scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,.3); }
#wcrw-spin-btn:disabled { opacity: .6; cursor: not-allowed; }

/* Sidebar */
.wcrw-sidebar {
    flex: 1;
    min-width: 240px;
}
.wcrw-entries-header {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    font-size: .9rem;
    color: #1a1a2e;
    border-bottom: 2px solid #e0e0e0;
    padding-bottom: .5rem;
    margin-bottom: .75rem;
}
#wcrw-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 420px;
    overflow-y: auto;
}
#wcrw-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .45rem .5rem;
    border-radius: 6px;
    font-size: .875rem;
    transition: background .15s;
}
#wcrw-list li:hover { background: #f5f5ff; }
#wcrw-list li.wcrw-winner-row { background: #fff8e1; font-weight: 700; }
.wcrw-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #5b5ef4;
    flex-shrink: 0;
}
.wcrw-entry-name { flex: 1; color: #333; }
.wcrw-entry-ticket { font-size: .75rem; color: #999; font-family: monospace; }

/* Modal */
.wcrw-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    animation: wcrw-fade-in .3s;
}
@keyframes wcrw-fade-in { from { opacity:0 } to { opacity:1 } }
.wcrw-modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 3rem;
    text-align: center;
    max-width: 380px;
    width: 90%;
    animation: wcrw-pop .4s cubic-bezier(.175,.885,.32,1.275);
    box-shadow: 0 20px 60px rgba(0,0,0,.3);
}
@keyframes wcrw-pop { from { transform: scale(.6); opacity:0 } to { transform: scale(1); opacity:1 } }
.wcrw-trophy { font-size: 4rem; margin-bottom: .5rem; }
.wcrw-modal-box h2 { font-size: 1.75rem; font-weight: 900; color: #5b5ef4; margin: 0 0 1rem; }
.wcrw-winner-name { font-size: 1.5rem; font-weight: 700; color: #1a1a2e; margin-bottom: .4rem; }
.wcrw-winner-ticket { font-size: .9rem; color: #888; font-family: monospace; margin-bottom: .25rem; }
.wcrw-winner-email { font-size: .85rem; color: #aaa; margin-bottom: 1.5rem; }
#wcrw-close-modal {
    background: #5b5ef4;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: .65rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
}
#wcrw-close-modal:hover { background: #3d40c9; }

@media (max-width: 640px) {
    .wcrw-main { flex-direction: column; }
    #wcrw-canvas { width: 300px; height: 300px; }
    #wcrw-spin-btn { width: 56px; height: 56px; font-size: .75rem; }
}
