/* 
 * My Awesome Plugin - Tombola Styles
 * Inspired by professional clean UI with festive accents.
 */

/* Variables for Color Palette */
:root {
    --map-primary: #e63946; /* Festive Red */
    --map-secondary: #1d3557; /* Deep Blue */
    --map-accent: #f1faee; /* Off White */
    --map-highlight: #457b9d; /* Steel Blue */
    --map-success: #2a9d8f; /* Green */
    --map-text: #333333;
    --map-radius: 8px;
    --map-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Admin Dashboard Specifics */
.map-tombola-admin .map-card {
    background: white;
    padding: 2rem;
    border-radius: var(--map-radius);
    box-shadow: var(--map-shadow);
    max-width: 800px;
    margin-top: 20px;
    border-top: 4px solid var(--map-primary);
}

.map-tombola-admin .map-form-group {
    margin-bottom: 1.5rem;
}

.map-tombola-admin label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--map-secondary);
}

.map-tombola-admin .map-button-primary {
    background-color: var(--map-primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s ease;
}

.map-tombola-admin .map-button-primary:hover {
    background-color: #c1121f;
}

/* Admin Preview Grid */
.map-tombola-grid-preview {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 5px;
    margin-top: 20px;
}

.map-tombola-grid-preview .map-number {
    background: var(--map-accent);
    color: var(--map-secondary);
    text-align: center;
    padding: 5px;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #ddd;
}

/* Frontend Shortcode Styles */
.map-frontend-wrapper {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: var(--map-radius);
    border: 1px solid #eee;
}

.map-game-title {
    text-align: center;
    color: var(--map-primary);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.map-tombola-board {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 10px;
    background: var(--map-secondary);
    padding: 15px;
    border-radius: var(--map-radius);
    box-shadow: inset 0 0 20px rgba(0,0,0,0.3);
}

.map-board-number {
    aspect-ratio: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    font-size: 1.2rem;
    color: var(--map-secondary);
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.map-board-number:hover {
    transform: scale(1.1);
    z-index: 2;
}

.map-board-number.is-extracted {
    background-color: var(--map-primary);
    color: white;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.3);
}

.map-prizes-list {
    margin-top: 30px;
    background: var(--map-accent);
    padding: 20px;
    border-radius: var(--map-radius);
    border-left: 5px solid var(--map-success);
}

.map-prizes-list h3 {
    margin-top: 0;
    color: var(--map-success);
}

.map-prizes-list ul {
    list-style-type: none;
    padding: 0;
}

.map-prizes-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #ccc;
    font-size: 1.1rem;
}

/* User Tickets Area */
.map-user-area {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.map-btn-buy {
    background-color: var(--map-success);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 1.1rem;
    cursor: pointer;
    font-weight: bold;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.2s, background 0.3s;
}

.map-btn-buy:hover {
    background-color: #21867a;
    transform: translateY(-2px);
}

.map-btn-buy:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.map-tickets-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.map-ticket {
    border: 1px solid #ddd;
    border-radius: var(--map-radius);
    overflow: hidden;
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.map-ticket-header {
    background: var(--map-primary);
    color: white;
    padding: 8px;
    text-align: center;
    font-weight: bold;
    font-size: 0.9rem;
}

.map-ticket-grid {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.map-ticket-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
}

.map-ticket-number {
    background: var(--map-accent);
    text-align: center;
    padding: 8px 0;
    border-radius: 4px;
    font-weight: bold;
    color: var(--map-secondary);
    border: 1px solid #eee;
}

.map-no-tickets {
    font-style: italic;
    color: #777;
}

.map-notice-login {
    background: #fff3cd;
    padding: 15px;
    border-radius: var(--map-radius);
    border: 1px solid #ffeeba;
    color: #856404;
}

/* Responsive Grid */
@media (max-width: 600px) {
    .map-tombola-board {
        grid-template-columns: repeat(5, 1fr);
    }
}