/**
 * Lottery Card Component Styles
 * This CSS is used by the reusable lottery card component
 * Include this file in any page that uses render_lottery_card()
 */

/* Lottery Card Ticker */
.ticker-viewport {
    width: 100%;
    overflow: hidden;
    padding: 30px 0 60px;
    position: relative;
}

.card-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 60s linear infinite;
}

.card-track:hover {
    animation-play-state: paused;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker-scroll 60s linear infinite;
}

.ticker-track:hover {
    animation-play-state: paused;
}

.lottery-card-wrap {
    width: 290px;
    padding: 0 10px;
    flex-shrink: 0;
}

@keyframes ticker-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Enhanced Lottery Card */
.lottery-card {
    background: linear-gradient(145deg, rgba(10, 10, 25, 0.95), rgba(20, 20, 40, 0.9));
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 242, 255, 0.15);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(0, 242, 255, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    position: relative;
    backdrop-filter: blur(10px);
}

.lottery-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.08), transparent 50%, rgba(112, 0, 255, 0.08));
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.lottery-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 242, 255, 0.3), 0 0 0 2px rgba(0, 242, 255, 0.4);
    border-color: rgba(0, 242, 255, 0.5);
}

.lottery-card:hover::before {
    opacity: 1;
}

.l-img-box {
    height: 200px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a1a, #1a1a3a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.l-img-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, rgba(15, 15, 30, 0.95), transparent);
    z-index: 2;
}

.l-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.lottery-card:hover .l-img {
    transform: scale(1.1);
}

.l-box-title {
    position: absolute;
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    text-align: center;
    width: 100%;
    line-height: 1;
    letter-spacing: -1px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
    z-index: 3;
}

.l-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    border-radius: 10px;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    background: linear-gradient(135deg, #00f2ff, #0088ff);
    color: #000 !important;
    box-shadow: 0 2px 8px rgba(0, 242, 255, 0.3);
    z-index: 3;
    letter-spacing: 0.5px;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.l-price-tag {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: 8px 14px;
    background: linear-gradient(135deg, #ffd700, #ffaa00);
    color: #000 !important;
    border-top-left-radius: 12px;
    font-weight: 900;
    box-shadow: -2px -2px 10px rgba(255, 215, 0, 0.3);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1px;
    min-width: 85px;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.original-price {
    font-size: 10px;
    text-decoration: line-through;
    opacity: 0.8;
    font-weight: 700;
    color: #000 !important;
    text-shadow: none;
}

.discount-price {
    font-size: 16px;
    font-weight: 900;
    line-height: 1;
    color: #000 !important;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.single-price {
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
}

.l-body {
    padding: 10px 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 2;
}

.l-title {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ffffff, #00f2ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.l-desc {
    font-size: 11px;
    color: var(--text-secondary, #e2e8f0) !important;
    line-height: 1.4;
    margin-bottom: 8px;
    height: 15px;
    overflow: hidden;
    opacity: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.l-meta {
    margin-bottom: 14px;
}

.m-item {
    font-size: 9px;
    color: var(--text-secondary, #e2e8f0);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    flex: 1;
}

.m-val {
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    font-family: 'JetBrains Mono', monospace;
}

.countdown-timer {
    color: #00f2ff;
    font-size: 15px !important;
    text-shadow: 0 0 15px rgba(0, 242, 255, 0.3);
    animation: timer-pulse 2s ease-in-out infinite;
}

@keyframes timer-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.85;
    }
}

/* Progress Bar */
.timer-progress-wrapper {
    margin-bottom: 14px;
    position: relative;
    background: linear-gradient(135deg, rgba(0, 242, 255, 0.08), rgba(112, 0, 255, 0.05));
    border: 1px solid rgba(0, 242, 255, 0.2);
    border-radius: 14px;
    padding: 14px;
}

/* Draw Date Badge */
.draw-date-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, #00f2ff, #0088ff);
    color: #000 !important;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 242, 255, 0.3);
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.draw-date-badge i {
    font-size: 10px;
}

.draw-date-badge span {
    color: #000 !important;
    text-shadow: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Countdown Boxes */
.countdown-boxes {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 12px;
}

.countdown-box {
    background: linear-gradient(145deg, rgba(15, 15, 30, 0.9), rgba(25, 25, 50, 0.8));
    border: 1px solid rgba(0, 242, 255, 0.25);
    border-radius: 8px;
    padding: 6px 8px;
    min-width: 45px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.countdown-box:hover {
    border-color: #00f2ff;
    box-shadow: 0 4px 16px rgba(0, 242, 255, 0.6);
    transform: translateY(-2px);
    background: linear-gradient(145deg, rgba(0, 242, 255, 0.1), rgba(15, 15, 30, 0.9));
}

.countdown-value {
    font-size: 16px;
    font-weight: 900;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
    line-height: 1;
    margin-bottom: 2px;
}

.countdown-value.days {
    background: linear-gradient(135deg, #00f2ff, #7000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 8px rgba(0, 242, 255, 0.5));
}

.countdown-value.hours {
    color: #00f2ff;
    text-shadow: 0 0 10px rgba(0, 242, 255, 0.6);
}

.countdown-value.minutes {
    color: #7000ff;
    text-shadow: 0 0 10px rgba(112, 0, 255, 0.6);
}

.countdown-value.seconds {
    color: #ff007f;
    text-shadow: 0 0 10px rgba(255, 0, 127, 0.6);
    animation: seconds-pulse 1s ease-in-out infinite;
}

@keyframes seconds-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.countdown-label {
    font-size: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #e2e8f0;
    opacity: 0.9;
}

.countdown-separator {
    font-size: 20px;
    font-weight: 900;
    color: #00f2ff;
    opacity: 0.6;
}

.timer-progress-bar {
    height: 5px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 6px;
}

.timer-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00f2ff, #7000ff, #ff007f);
    background-size: 200% 100%;
    border-radius: 10px;
    transition: width 1s linear;
    position: relative;
    box-shadow: 0 0 12px rgba(0, 242, 255, 0.6);
    animation: progress-shimmer 2s ease-in-out infinite;
}

.timer-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 12px #00f2ff, 0 0 25px #00f2ff;
}

@keyframes progress-shimmer {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

/* Progress Status */
.progress-status {
    text-align: center;
    margin-top: 5px;
}

.status-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #00f2ff;
    opacity: 0.9;
}

.btn-play-sm {
    background: linear-gradient(135deg, #00f2ff, #0088ff);
    color: #000;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-weight: 900;
    font-size: 13px;
    text-decoration: none;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    transition: all 0.3s ease;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    min-height: 44px;
}

.btn-play-sm::before {
    content: none;
}

.btn-play-sm:hover::before {
    transform: translateX(100%);
}

.btn-play-sm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 242, 255, 0.5);
    background: linear-gradient(135deg, #00ffff, #00aaff);
}

.btn-info-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(145deg, rgba(0, 242, 255, 0.15), rgba(112, 0, 255, 0.1));
    color: #00f2ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: 1px solid rgba(0, 242, 255, 0.3);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-info-icon:hover {
    background: linear-gradient(135deg, #00f2ff, #0088ff);
    color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.5);
    border-color: #00f2ff;
}

/* Modal Play Button */
.btn-play {
    background: linear-gradient(135deg, #00f2ff, #0088ff);
    color: #000;
    border: none;
    padding: 15px 24px;
    border-radius: 14px;
    font-weight: 900;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 242, 255, 0.4);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 242, 255, 0.6);
    background: linear-gradient(135deg, #00ffff, #00aaff);
}

/* Button Container */
.lottery-card .button-container {
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (max-width: 767px) {
    .l-img-box {
        height: 160px !important;
    }
}

/* Updated: 2026-01-27 - Text clarity & button blur fix */