/* Arte Game Plugin Styles - Diseño Integrado */
.arte-game-container {
    max-width: 500px;
    margin: 0 auto;
    font-family: inherit;
}

.arte-game-header {
    text-align: center;
    margin-bottom: 2rem;
    padding: 0;
    border: none;
}

.arte-game-header h3 {
    color: inherit;
    margin: 0 0 1rem 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.arte-game-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.arte-game-stats span {
    background: transparent;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.95rem;
    box-shadow: none;
    border: 2px solid currentColor;
}

.remaining-gives {
    color: #e74c3c;
    font-weight: 600;
}

.user-points {
    color: #27ae60;
    font-weight: 600;
}

.arte-game-instructions {
    text-align: center;
    margin-bottom: 2rem;
    color: inherit;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.8;
}

/* User Container */
.arte-game-user-container {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* User Card */
.arte-game-user-card {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.arte-game-user-front,
.arte-game-user-back {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    left: 0;
    transition: all 0.5s ease;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.arte-game-user-front {
    opacity: 1;
    transform: scale(1);
}

.arte-game-user-back {
    opacity: 0;
    transform: scale(0.9);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
    color: white;
}

.arte-game-user-back.fade-in {
    opacity: 1;
    transform: scale(1);
}

.hidden {
    display: none !important;
}

/* Avatar Styles */
.arte-game-avatar {
    margin-bottom: 1.5rem;
}

.arte-game-avatar img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    border: 3px solid currentColor;
    object-fit: cover;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.arte-game-avatar-large img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid white;
    object-fit: cover;
    margin-bottom: 1rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

/* Phrase Styles */
.arte-game-phrase {
    text-align: center;
    font-style: italic;
    color: inherit;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    border-left: 4px solid currentColor;
    max-height: 120px;
    overflow-y: auto;
    font-weight: 500;
}

.arte-game-user-back .arte-game-phrase {
    color: white;
    background: rgba(255, 255, 255, 0.2);
    border-left: 4px solid white;
}

/* Actions Styles */
.arte-game-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    max-width: 250px;
}

.arte-game-give-points,
.arte-game-skip {
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.arte-game-give-points {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: white;
    box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.arte-game-give-points:hover:not(:disabled) {
    background: linear-gradient(135deg, #219653, #27ae60);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, 0.4);
}

.arte-game-give-points:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.arte-game-skip {
    background: transparent;
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.arte-game-skip:hover:not(:disabled) {
    background: #e74c3c;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

.arte-game-skip:disabled {
    color: #bdc3c7;
    border-color: #bdc3c7;
    cursor: not-allowed;
    opacity: 0.6;
}

/* User Info Styles (Back of card) */
.arte-game-user-info {
    text-align: center;
    color: white;
    width: 100%;
}

.arte-game-user-info h4 {
    margin: 0 0 1.5rem 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.arte-game-user-stats {
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.user-points,
.user-rank {
    background: rgba(255, 255, 255, 0.2);
    padding: 1rem 1.5rem;
    border-radius: 25px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
    font-weight: 600;
}

.arte-game-profile-link {
    display: inline-block;
    padding: 1rem 2rem;
    background: white;
    color: #667eea;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
    margin-top: 1.5rem;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

.arte-game-profile-link:hover {
    background: #f8f9fa;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

/* Messages */
.arte-game-messages {
    min-height: 60px;
    margin-top: 1.5rem;
}

.arte-game-message {
    padding: 1rem 1.5rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-weight: 600;
    text-align: center;
    animation: slideInUp 0.3s ease;
    border: none;
}

.arte-game-success {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 2px solid #27ae60;
}

.arte-game-error {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 2px solid #e74c3c;
}

.arte-game-info {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 2px solid #3498db;
}

/* Loading States */
.arte-game-loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: inherit;
    opacity: 0.7;
}

.arte-game-no-users,
.arte-game-error {
    text-align: center;
    padding: 3rem;
    font-size: 1.1rem;
    color: inherit;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid currentColor;
}

/* Phrase Form Styles */
.arte-game-phrase-form {
    max-width: 500px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.arte-game-phrase-form h4 {
    color: inherit;
    margin: 0 0 1rem 0;
    font-size: 1.4rem;
    font-weight: 700;
}

.arte-game-phrase-form p {
    color: inherit;
    margin: 0 0 1.5rem 0;
    font-size: 1rem;
    line-height: 1.5;
    opacity: 0.8;
}

.current-phrase {
    background: rgba(39, 174, 96, 0.1);
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 1.5rem;
    border-left: 4px solid #27ae60;
}

.current-phrase strong {
    color: #27ae60;
}

.current-phrase small {
    color: inherit;
    font-size: 0.9rem;
    opacity: 0.7;
}

#arte-game-phrase-form textarea {
    width: 100%;
    min-height: 120px;
    padding: 1.5rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    font-size: 1rem;
    resize: vertical;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: inherit;
}

#arte-game-phrase-form textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
    background: rgba(255, 255, 255, 0.15);
}

#arte-game-phrase-form button {
    width: 100%;
    padding: 1.2rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

#arte-game-phrase-form button:hover:not(:disabled) {
    background: linear-gradient(135deg, #2980b9, #2471a3);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
}

#arte-game-phrase-form button:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.arte-game-phrase-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    display: none;
    border: 2px solid transparent;
}

/* Debug Controls */
.arte-game-debug-controls {
    text-align: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 15px;
    border: 2px solid #f39c12;
    backdrop-filter: blur(10px);
}

.arte-game-reset-debug {
    padding: 0.8rem 1.5rem;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
}

.arte-game-reset-debug:hover:not(:disabled) {
    background: linear-gradient(135deg, #e67e22, #d35400);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.4);
}

.arte-game-reset-debug:disabled {
    background: #95a5a6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.arte-game-debug-controls small {
    color: #f39c12;
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Login Required & No Users Messages */
.arte-game-login-required,
.arte-game-limit-reached {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 1.2rem;
    color: inherit;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid currentColor;
    backdrop-filter: blur(10px);
}

.arte-game-login-required a,
.arte-game-limit-reached a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.arte-game-login-required a:hover,
.arte-game-limit-reached a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes slideInUp {
    from {
        transform: translateY(20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .arte-game-container {
        margin: 1rem;
        max-width: none;
    }
    
    .arte-game-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .arte-game-stats span {
        width: auto;
    }
    
    .arte-game-user-front,
    .arte-game-user-back {
        padding: 1.5rem;
    }
    
    .arte-game-avatar img {
        width: 120px;
        height: 120px;
    }
    
    .arte-game-avatar-large img {
        width: 140px;
        height: 140px;
    }
    
    .arte-game-phrase {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .arte-game-phrase-form {
        margin: 1rem;
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .arte-game-header h3 {
        font-size: 1.5rem;
    }
    
    .arte-game-user-container {
        min-height: 350px;
    }
    
    .arte-game-actions {
        max-width: none;
    }
    
    .arte-game-give-points,
    .arte-game-skip {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .arte-game-give-points:hover:not(:disabled),
    .arte-game-skip:hover:not(:disabled),
    .arte-game-profile-link:hover,
    #arte-game-phrase-form button:hover:not(:disabled) {
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .arte-game-user-front,
    .arte-game-user-back {
        border: 2px solid currentColor;
    }
    
    .arte-game-give-points,
    .arte-game-skip {
        border: 2px solid;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .arte-game-user-front,
    .arte-game-user-back,
    .arte-game-give-points,
    .arte-game-skip,
    .arte-game-profile-link,
    #arte-game-phrase-form button {
        transition: none;
    }
    
    .arte-game-message {
        animation: none;
    }
    
    .fade-in {
        animation: none;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .arte-game-user-front {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .arte-game-phrase-form {
        background: rgba(0, 0, 0, 0.3);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    #arte-game-phrase-form textarea {
        background: rgba(0, 0, 0, 0.2);
        border-color: rgba(255, 255, 255, 0.2);
    }
}
