/* 
 * Lottery & Admin Specific Styles
 */

/* General Utilities */
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.text-primary { color: var(--accent-primary); }
.text-success { color: var(--color-up); }
.font-bold { font-weight: 700; }

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    text-align: center;
}

/* Ticket Grid */
.ticket-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 1rem 0;
}

/* Ticket Cards */
.ticket-card {
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.ticket-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.ticket-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.ticket-header h3 {
    font-size: 1.3rem;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
}

.ticket-body {
    flex: 1;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    position: relative;
    z-index: 2;
}

/* Ticket Glows */
.ticket-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 0;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.ticket-card:hover .ticket-glow {
    opacity: 0.8;
}

.ticket-glow-bronze { background: #cd7f32; }
.ticket-glow-silver { background: #c0c0c0; }
.ticket-glow-gold { background: #ffd700; }
.ticket-glow-platinum { background: #e5e4e2; }

/* Premium Ticket */
.premium-ticket {
    border: 1px solid rgba(229, 228, 226, 0.5);
    background: linear-gradient(135deg, rgba(229, 228, 226, 0.1), rgba(0,0,0,0));
}
.premium-ticket .price-tag {
    color: #e5e4e2;
    text-shadow: 0 0 10px rgba(229, 228, 226, 0.5);
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    padding: 1rem 2rem;
    border-radius: 50px;
    background: var(--color-up);
    color: white;
    font-weight: 600;
    transition: bottom 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    z-index: 1000;
}

.toast.show {
    bottom: 30px;
}

/* Admin Dashboard Specifics */
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.admin-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.admin-stat-card {
    padding: 1.5rem;
    text-align: center;
}

.admin-stat-card h3 {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.admin-stat-card .balance {
    font-size: 2rem;
}

.winner-section {
    margin-top: 2rem;
    padding: 3rem 2rem;
}

.winner-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.winner-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.draw-btn {
    font-size: 1.2rem;
    padding: 1rem 3rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.winner-display-area {
    background: rgba(16, 185, 129, 0.1);
    border: 2px dashed var(--color-up);
    border-radius: 16px;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 500px;
    animation: fadeIn 0.5s ease-out;
}

.winner-label {
    color: var(--color-up);
    margin-bottom: 1rem;
}

.winner-ticket-id {
    font-family: 'Courier New', Courier, monospace;
    font-size: 2.5rem;
    letter-spacing: 5px;
    margin-bottom: 0.5rem;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

/* Ticket Images and Animations */
.ticket-image {
    width: 140px;
    height: 140px;
    object-fit: contain;
    margin: -20px auto 10px auto;
    position: relative;
    z-index: 3;
    display: block;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.6));
    animation: floatItem 4s ease-in-out infinite;
}

@keyframes floatItem {
    0% { transform: translateY(0) rotate(0deg) scale(1); }
    50% { transform: translateY(-15px) rotate(3deg) scale(1.05); }
    100% { transform: translateY(0) rotate(0deg) scale(1); }
}
