/**
 * Robertstown Lotto - Styles
 */

.rstown-lotto-link {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #0033A0 0%, #001a52 100%);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.3;
    transition: all 0.2s ease;
}

.rstown-lotto-link:hover {
    background: linear-gradient(135deg, #0044cc 0%, #002266 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 51, 160, 0.3);
    color: #ffffff !important;
    text-decoration: none !important;
}

.rstown-lotto-link:active {
    transform: translateY(0);
}

.rstown-lotto-line {
    display: block;
    white-space: nowrap;
}

.rstown-lotto-jackpot {
    font-weight: 700;
}

.rstown-lotto-draw-tonight {
    font-weight: 700;
    font-size: 0.75rem;
    color: #FFD700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    animation: rstown-lotto-pulse 2s ease-in-out infinite;
}

@keyframes rstown-lotto-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* Lotto Info Card */
.rstown-lotto-info {
    max-width: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.rstown-lotto-info-header {
    background: #60CDAE;
    color: #ffffff;
    padding: 16px 20px;
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    border-bottom: 3px solid #0033A0;
}

.rstown-lotto-info-body {
    background: #ffffff;
    padding: 24px 20px;
    text-align: center;
}

.rstown-lotto-info-jackpot,
.rstown-lotto-info-draw {
    margin-bottom: 16px;
}

.rstown-lotto-info-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #666;
    margin-bottom: 4px;
}

.rstown-lotto-info-amount {
    display: block;
    font-size: 2.2rem;
    font-weight: 700;
    color: #0033A0;
    line-height: 1.2;
}

.rstown-lotto-info-date {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

/* Countdown */
.rstown-lotto-info-countdown {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.rstown-lotto-countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 56px;
}

.rstown-lotto-countdown-value {
    display: block;
    background: #f0f4fa;
    border: 2px solid #0033A0;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 700;
    color: #0033A0;
    padding: 8px 4px;
    width: 100%;
    text-align: center;
    line-height: 1;
}

.rstown-lotto-countdown-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    color: #888;
    margin-top: 4px;
}

/* Play Now button */
.rstown-lotto-info-button {
    display: inline-block;
    background: #60CDAE;
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 12px 40px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.rstown-lotto-info-button:hover {
    background: #4db899;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(96, 205, 174, 0.4);
    color: #ffffff !important;
    text-decoration: none !important;
}

.rstown-lotto-info-button:active {
    transform: translateY(0);
}

/* Draw Tonight Banner */
.rstown-lotto-info-draw-tonight {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #1a1a1a;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 20px;
    margin: -24px -20px 20px -20px;
    animation: rstown-lotto-pulse 2s ease-in-out infinite;
}

/* Last Draw Results */
.rstown-lotto-info-results {
    margin-bottom: 20px;
    padding-top: 16px;
    border-top: 1px solid #e8e8e8;
}

.rstown-lotto-info-numbers {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 10px 0;
}

.rstown-lotto-ball {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    position: relative;
}

.rstown-lotto-ball:nth-child(1) {
    background: radial-gradient(circle at 35% 30%, #ff6b6b, #d32f2f 60%, #8b0000);
    box-shadow: 0 3px 8px rgba(211, 47, 47, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.rstown-lotto-ball:nth-child(2) {
    background: radial-gradient(circle at 35% 30%, #ffb347, #f57c00 60%, #bf360c);
    box-shadow: 0 3px 8px rgba(245, 124, 0, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.rstown-lotto-ball:nth-child(3) {
    background: radial-gradient(circle at 35% 30%, #81c784, #388e3c 60%, #1b5e20);
    box-shadow: 0 3px 8px rgba(56, 142, 60, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.rstown-lotto-ball:nth-child(4) {
    background: radial-gradient(circle at 35% 30%, #64b5f6, #1565c0 60%, #0d47a1);
    box-shadow: 0 3px 8px rgba(21, 101, 192, 0.4), inset 0 -2px 4px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.2);
}

.rstown-lotto-info-no-winner {
    display: block;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 4px;
}

.rstown-lotto-info-winner {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2e7d32;
    margin-bottom: 4px;
}

.rstown-lotto-info-match3 {
    display: block;
    font-size: 0.8rem;
    color: #666;
}

/* Responsive */
@media (max-width: 480px) {
    .rstown-lotto-info {
        max-width: 100%;
    }

    .rstown-lotto-info-amount {
        font-size: 1.8rem;
    }

    .rstown-lotto-countdown-unit {
        min-width: 48px;
    }

    .rstown-lotto-countdown-value {
        font-size: 1.1rem;
        padding: 6px 2px;
    }
}
