/**
* SHG Lottery Popup & Page Styles
*
* Front-end CSS for the promotional popup and the lottery details page.
* All classes are namespaced with .shg-lottery- to avoid theme conflicts.
*/

/* ==========================================================
   LOTTERY POPUP (modal overlay)
========================================================== */
.shg-lottery-popup {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.shg-lottery-popup[hidden] {
    display: none !important;
}
.shg-lottery-popup.shg-lottery-popup-open {
    opacity: 1;
    visibility: visible;
}

.shg-lottery-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 18, 32, 0.65);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.shg-lottery-popup-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 320px;
    transform: translateY(15px) scale(0.97);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.shg-lottery-popup.shg-lottery-popup-open .shg-lottery-popup-box {
    transform: translateY(0) scale(1);
}

.shg-lottery-popup-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #6841E2 0%, #5A35D1 50%, #4B27BA 100%);
    color: #ffffff !important;
    padding: 48px 28px;
    border-radius: 6px 6px 0 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    min-height: 180px;
    cursor: pointer;
    transition: filter 0.2s ease, transform 0.2s ease;
}
.shg-lottery-popup-card:hover,
.shg-lottery-popup-card:focus {
    filter: brightness(1.07);
    color: #ffffff !important;
    text-decoration: none;
}
.shg-lottery-popup-card:active {
    transform: scale(0.99);
}

.shg-lottery-popup-title {
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.5px;
    color: #ffffff;
    margin: 0 0 14px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.shg-lottery-popup-subtitle {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 8px;
    color: #ffffff;
    text-transform: uppercase;
    opacity: 0.95;
}

/* close strip at the bottom */
.shg-lottery-popup-close {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    padding: 10px 16px;
    background: #f0f0f0;
    border: none;
    border-radius: 0 0 6px 6px;
    color: #555;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}
.shg-lottery-popup-close:hover {
    background: #e4e4e4;
    color: #000;
}
.shg-lottery-popup-close:focus {
    outline: 2px solid #6841E2;
    outline-offset: -2px;
}

@media (max-width: 480px) {
    .shg-lottery-popup-box { max-width: 280px; }
    .shg-lottery-popup-card { padding: 40px 22px; min-height: 160px; }
    .shg-lottery-popup-title { font-size: 32px; }
    .shg-lottery-popup-subtitle { font-size: 16px; letter-spacing: 6px; }
}

/* ==========================================================
   LOTTERY DETAILS PAGE
========================================================== */
.shg-lottery-page-wrap {
    text-align: center;
    max-width: 720px;
    margin: 60px auto;
    padding: 40px 20px;
}

.shg-lottery-page-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 52px;
    font-weight: 700;
    color: #14305B;
    margin: 0 0 50px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.shg-lottery-page-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
    margin: 30px 0;
}

.shg-lottery-page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-width: 260px;
    padding: 18px 36px;
    background: #C9344A;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 6px rgba(201, 52, 74, 0.2);
}
.shg-lottery-page-btn:hover,
.shg-lottery-page-btn:focus {
    background: #b02b3f;
    color: #ffffff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(201, 52, 74, 0.3);
}
.shg-lottery-page-btn:active {
    transform: translateY(0);
}

.shg-lottery-page-btn-disabled {
    background: #9da3aa;
    cursor: not-allowed;
    box-shadow: none;
}
.shg-lottery-page-btn-disabled:hover,
.shg-lottery-page-btn-disabled:focus {
    background: #9da3aa;
    transform: none;
    box-shadow: none;
}

.shg-lottery-page-empty {
    color: #666;
    font-size: 15px;
    margin-top: 40px;
    font-style: italic;
}

@media (max-width: 600px) {
    .shg-lottery-page-wrap { margin: 30px auto; padding: 20px 16px; }
    .shg-lottery-page-title { font-size: 34px; margin-bottom: 32px; }
    .shg-lottery-page-btn { min-width: 220px; padding: 16px 24px; font-size: 13px; }
}
