﻿
.lottery-page {
    /*font-family: var(--font-persian);*/
    font-family: 'IRANSans';
    direction: rtl;
}

/* Animations */
@keyframes lottery-fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes lottery-scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}

@keyframes lottery-pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

@keyframes lottery-bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

@keyframes lottery-wiggle {
    0%, 100% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(10deg);
    }

    75% {
        transform: rotate(-10deg);
    }
}

@keyframes lottery-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cards & Containers */
.lottery-page .lottery-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 4px solid var(--color-Blue);
    animation: lottery-fadeIn 0.5s;
}

.lottery-page .lottery-icon-circle {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-Blue), var(--color-Orange));
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    animation: lottery-scaleIn 0.5s;
}

.lottery-page h2 {
    background: linear-gradient( 336deg, var(--color-Blue), var(--color-Orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    font-size: 32px;
    margin-bottom: 10px;
}

.lottery-page .Spin-h2 {
    background: linear-gradient( 336deg, var(--color-Blue), var(--color-Orange));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lottery-page .lottery-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 30px;
}

/* Inputs */
.lottery-page .lottery-input-group {
    margin-bottom: 20px;
}

    .lottery-page .lottery-input-group label {
        display: block;
        margin-bottom: 10px;
        color: #333;
        font-weight: 600;
    }

.lottery-page input[type="tel"] {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    border: 2px solid var(--color-Blue);
    border-radius: 15px;
    outline: none;
    transition: all 0.3s;
}

    .lottery-page input[type="tel"]:focus {
        border-color: var(--color-Orange);
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.lottery-page .lottery-error {
    color: #e74c3c;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* Buttons */
.lottery-page .lottery-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: var(--color-Orange);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

    .lottery-page .lottery-btn:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .lottery-page .lottery-btn:active:not(:disabled) {
        transform: translateY(0);
    }

    .lottery-page .lottery-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

.lottery-page .lottery-back-btn {
    background: none;
    border: none;
    color: var(--color-Blue);
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: transform 0.2s;
}

    .lottery-page .lottery-back-btn:hover {
        transform: translateX(5px);
    }

/* OTP Inputs */
.lottery-page .lottery-otp-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    direction: ltr;
}

.lottery-page .lottery-otp-input {
    width: 60px;
    height: 80px;
    font-size: 32px;
    text-align: center;
    border: 2px solid #ddd;
    border-radius: 15px;
    outline: none;
    transition: all 0.3s;
}

    .lottery-page .lottery-otp-input:focus {
        border-color: var(--color-Blue);
        background: #f0f4ff;
        transform: scale(1.1);
    }

    .lottery-page .lottery-otp-input.lottery-filled {
        border-color: #2ecc71;
        background: #e8f8f5;
    }

/* Timer */
.lottery-page .lottery-timer {
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: #333;
    margin-bottom: 20px;
}

    .lottery-page .lottery-timer.lottery-warning {
        color: #e74c3c;
        animation: lottery-pulse 1s infinite;
    }

.lottery-page .lottery-resend-btn {
    display: block;
    width: 100%;
    text-align: center;
    color: var(--color-Blue);
    font-weight: bold;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    padding: 10px;
    transition: color 0.3s;
    margin-bottom: 15px;
}

    .lottery-page .lottery-resend-btn:hover {
        color: var(--color-Orange);
    }

/* Wheel */
.lottery-page .lottery-wheel-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
    margin: 0 auto 40px;
    direction: ltr;
}

.lottery-page .lottery-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-top: 40px solid #e74c3c;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    z-index: 10;
    animation: lottery-bounce 1.5s infinite;
}

.lottery-page #lotteryWheelCanvas {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
    border: 8px solid white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    margin: 0 auto;
}

.lottery-page .lottery-wheel-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    border: 4px solid var(--color-Blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    z-index: 5;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}


.lottery-page .lottery-core-img {
    width: 93px !important;
}


.lottery-page .lottery-spin-btn {
    display: block;
    margin: 0 auto;
    padding: 20px 50px;
    font-size: 24px;
    font-weight: bold;
    color: white;
    background: var(--color-Orange);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
}

    .lottery-page .lottery-spin-btn:hover:not(:disabled) {
        transform: scale(1.1);
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    }

    .lottery-page .lottery-spin-btn:active:not(:disabled) {
        transform: scale(0.95);
    }

    .lottery-page .lottery-spin-btn:disabled {
        background: #ccc;
        cursor: not-allowed;
    }

/* Winner Card */
.lottery-page .lottery-winner-card {
    margin-top: 30px;
    background: white;
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    border: 4px solid;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: none;
    animation: lottery-slideUp 0.5s;
}

    .lottery-page .lottery-winner-card h3 {
        font-size: 28px;
        margin-bottom: 10px;
        animation: lottery-wiggle 0.5s 3;
    }

    .lottery-page .lottery-winner-card p {
        font-size: 24px;
        font-weight: bold;
        color: #333;
    }

/* Modal */
.lottery-page .lottery-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: lottery-fadeIn 0.3s;
}

    .lottery-page .lottery-modal-overlay.lottery-show {
        display: flex;
    }

.lottery-page .lottery-modal-content {
    background: white;
    border-radius: 30px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: lottery-scaleIn 0.5s;
    border: 4px solid;
}

.lottery-page .lottery-modal-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: lottery-bounce 1s infinite;
}

.lottery-page .lottery-modal-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 15px;
    animation: lottery-wiggle 0.5s 3;
}

.lottery-page .lottery-modal-prize {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 30px;
}

.lottery-page .lottery-prize-code-container {
    background: #f8f9fa;
    border: 2px dashed var(--color-Blue);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
}

.lottery-page .lottery-prize-code-label {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.lottery-page .lottery-prize-code-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    direction: ltr;
}

.lottery-page .lottery-prize-code {
    font-size: 27px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    color: #333;
    letter-spacing: 3px;
}

.lottery-page .lottery-copy-btn {
    background: var(--color-Blue);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}

    .lottery-page .lottery-copy-btn:hover {
        background: var(--color-Orange);
        transform: scale(1.05);
    }

    .lottery-page .lottery-copy-btn.lottery-copied {
        background: #2ecc71;
    }

.lottery-page .lottery-restart-btn {
    width: 100%;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    color: white;
    background: var(--color-Orange);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s;
}

    .lottery-page .lottery-restart-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

/* Utility Classes */
.lottery-page .lottery-hidden {
    display: none;
}

.lottery-page #lotteryConfettiCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

.lottery-page #lotteryPrizeData {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .lottery-page .lottery-card {
        padding: 30px 20px;
    }

    .lottery-page h2 {
        font-size: 24px;
    }

    .lottery-page .lottery-otp-input {
        width: 50px;
        height: 70px;
        font-size: 28px;
    }

    .lottery-page .lottery-spin-btn {
        padding: 15px 40px;
        font-size: 20px;
    }

    .lottery-page .lottery-modal-content {
        padding: 30px 20px;
    }

    .lottery-page .lottery-modal-title {
        font-size: 28px;
    }

    .lottery-page .lottery-prize-code {
        font-size: 19px;
    }

    
}

/* ============================================ */
/* FIXED MOBILE SIZE ON DESKTOP - ONLY LOTTERY  */
/* ============================================ */
/* ============================================ */
/* ONLY ROW CONTAINER - STRONG VERSION         */
/* ============================================ */

.lottery-page > section > .container > .row {
    max-width: 500px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100% !important;
}

/* ============================================ */
/* تغییر رنگ تمام placeholder های صفحه قرعه‌کشی */
/* ============================================ */

/* برای مرورگرهای مبتنی بر WebKit (Chrome, Edge, Safari) */
.lottery-page ::-webkit-input-placeholder {
    color: #ccc !important;
    opacity: 1 !important;
}

/* برای Firefox */
.lottery-page ::-moz-placeholder {
    color: #ccc !important;
    opacity: 1 !important;
}

/* برای Internet Explorer 10-11 */
.lottery-page :-ms-input-placeholder {
    color: #ccc !important;
}

/* برای Microsoft Edge Legacy */
.lottery-page ::-ms-input-placeholder {
    color: #ccc !important;
}

/* استاندارد */
.lottery-page ::placeholder {
    color: #ccc !important;
    opacity: 1 !important;
}