/* Enigma del Día Plugin Styles */

.enigma-del-dia-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    color: white;
}

.enigma-header {
    text-align: center;
    margin-bottom: 30px;
}

.enigma-header h2 {
    font-size: 2.5em;
    margin: 0 0 10px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.enigma-date {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
}

.enigma-content {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.enigma-text {
    font-size: 1.2em;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #ffd700;
}

.timer-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    gap: 15px;
}

.timer-label {
    font-size: 1.1em;
    font-weight: 600;
}

.timer-display {
    font-size: 2em;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px 20px;
    border-radius: 8px;
    border: 2px solid #ffd700;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.enigma-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    font-size: 1.1em;
}

.form-group input {
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.3);
}

.submit-button {
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: bold;
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.submit-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.submit-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.enigma-error {
    background: rgba(255, 0, 0, 0.8);
    color: white;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    text-align: center;
    font-weight: 600;
}

/* Success Popup Styles */
.enigma-success-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.enigma-popup-content {
    background: linear-gradient(135deg, #00c851, #007e33);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popIn 0.5s ease;
}

.enigma-popup-content h2 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.enigma-popup-content p {
    font-size: 1.3em;
    margin: 15px 0;
    font-weight: 600;
}

.time-display {
    font-size: 1.8em !important;
    color: #ffd700 !important;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    font-family: 'Courier New', monospace;
}

.enigma-popup-content button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.enigma-popup-content button:hover {
    background: white;
    color: #00c851;
}

/* Ranking Styles */
.enigma-ranking {
    margin-top: 30px;
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
}

.enigma-ranking h3 {
    text-align: center;
    font-size: 1.8em;
    margin: 0 0 20px 0;
    color: #ffd700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.enigma-ranking-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.enigma-ranking-table th,
.enigma-ranking-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.enigma-ranking-table th {
    background: rgba(0, 0, 0, 0.3);
    font-weight: bold;
    color: #ffd700;
}

.enigma-ranking-table tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

.enigma-ranking-table tr:first-child td {
    background: rgba(255, 215, 0, 0.2);
    font-weight: bold;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .enigma-del-dia-container {
        margin: 10px;
        padding: 15px;
    }
    
    .enigma-header h2 {
        font-size: 2em;
    }
    
    .timer-display {
        font-size: 1.5em;
        padding: 8px 15px;
    }
    
    .timer-section {
        flex-direction: column;
        gap: 10px;
    }
    
    .enigma-popup-content {
        padding: 30px 20px;
    }
    
    .enigma-popup-content h2 {
        font-size: 2em;
    }
    
    .enigma-ranking-table {
        font-size: 0.9em;
    }
    
    .enigma-ranking-table th,
    .enigma-ranking-table td {
        padding: 8px 10px;
    }
}



/* Error Popup Styles */
.enigma-error-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.enigma-error-popup .enigma-popup-content {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: popIn 0.5s ease;
}

.enigma-error-popup .enigma-popup-content h2 {
    font-size: 2.5em;
    margin: 0 0 20px 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.enigma-error-popup .enigma-popup-content p {
    font-size: 1.3em;
    margin: 15px 0;
    font-weight: 600;
}

.enigma-error-popup .enigma-popup-content button {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    cursor: pointer;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.enigma-error-popup .enigma-popup-content button:hover {
    background: white;
    color: #e74c3c;
}



/* Difficulty and Category Styles */
.enigma-difficulty, .enigma-categories {
    margin: 10px 0;
    text-align: center;
}

.difficulty-label, .categories-label {
    font-weight: bold;
    margin-right: 10px;
    color: #ffd700;
}

.difficulty-facil {
    color: #2ecc71;
    font-weight: bold;
}

.difficulty-medio {
    color: #f39c12;
    font-weight: bold;
}

.difficulty-dificil {
    color: #e74c3c;
    font-weight: bold;
}

.category-tag {
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    margin: 0 5px;
    font-size: 0.9em;
    font-weight: 600;
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.enigma-categories {
    margin-top: 15px;
}

.enigma-categories .category-tag:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
    transition: all 0.3s ease;
}

