/* ============================================
   TAROT GITANO AI - ESTILOS PRINCIPALES
   Con aislamiento total para WordPress
   ============================================ */

/* === CONTENEDOR PRINCIPAL === */
.tg-container {
    max-width: 929px !important;
    margin: 0 auto !important;
    padding: 20px !important;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    border-radius: 16px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5) !important;
    min-height: 600px !important;
    position: relative !important;
    overflow: hidden !important;
}

/* === PANTALLAS === */
.tg-screen {
    display: block !important;
    width: 100% !important;
    min-height: 500px !important;
    padding: 20px !important;
}

.tg-hidden {
    display: none !important;
}

/* === SUSPENSIÓN === */
.tg-suspension-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 400px !important;
    text-align: center !important;
}

.tg-suspension-icon {
    font-size: 80px !important;
    margin-bottom: 20px !important;
    animation: tg-pulse 2s infinite !important;
}

.tg-suspension-title {
    color: #ffd700 !important;
    font-size: 2rem !important;
    margin: 0 0 20px 0 !important;
    font-weight: 700 !important;
}

.tg-suspension-message {
    color: #e0e0e0 !important;
    font-size: 1.2rem !important;
    line-height: 1.6 !important;
    max-width: 600px !important;
    margin: 0 !important;
}

/* === FORMULARIO === */
.tg-form-container {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 500px !important;
}

.tg-title {
    color: #ffd700 !important;
    font-size: 3rem !important;
    text-align: center !important;
    margin: 0 0 40px 0 !important;
    font-weight: 800 !important;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5) !important;
    letter-spacing: 2px !important;
}

.tg-form {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 600px !important;
}

.tg-label h2 {
    color: #ff69b4 !important;
    font-size: 1.5rem !important;
    text-align: center !important;
    margin: 0 0 20px 0 !important;
    font-weight: 600 !important;
}

.tg-input {
    width: 100% !important;
    padding: 18px 20px !important;
    font-size: 1.1rem !important;
    border: 3px solid #4a5568 !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    color: #1a1a2e !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    font-family: inherit !important;
}

.tg-input:focus {
    border-color: #ffd700 !important;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.3) !important;
    background: #ffffff !important;
}

.tg-input::placeholder {
    color: #718096 !important;
}

.tg-button {
    margin-top: 30px !important;
    padding: 18px 40px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    border: none !important;
    border-radius: 50px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4) !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
}

.tg-button:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 15px 35px rgba(102, 126, 234, 0.5) !important;
}

.tg-button:active {
    transform: translateY(0) !important;
}

.tg-button:disabled {
    opacity: 0.6 !important;
    cursor: not-allowed !important;
}

.tg-button-secondary {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
    box-shadow: 0 10px 25px rgba(17, 153, 142, 0.4) !important;
}

.tg-button-secondary:hover {
    box-shadow: 0 15px 35px rgba(17, 153, 142, 0.5) !important;
}

/* === SELECCIÓN DE CARTAS === */
.tg-selection-title {
    color: #ffd700 !important;
    font-size: 2.5rem !important;
    text-align: center !important;
    margin: 0 0 10px 0 !important;
    font-weight: 700 !important;
}

.tg-selection-counter {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    text-align: center !important;
    margin: 0 0 30px 0 !important;
    font-weight: 600 !important;
}

.tg-cards-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    max-width: 800px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

.tg-card {
    position: relative !important;
    aspect-ratio: 2/3 !important;
    cursor: pointer !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

.tg-card:hover {
    transform: translateY(-10px) scale(1.05) !important;
    box-shadow: 0 15px 40px rgba(255, 215, 0, 0.4) !important;
}

.tg-card-back {
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 3px solid #ffd700 !important;
}

.tg-card-back svg {
    width: 60% !important;
    height: 60% !important;
    opacity: 0.9 !important;
}

.tg-card.tg-selected {
    animation: tg-glow 1.5s infinite !important;
    border: 3px solid #ffd700 !important;
}

.tg-card.tg-selected .tg-card-back {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%) !important;
}

/* === LOADING === */
.tg-loading-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 400px !important;
}

.tg-spinner {
    width: 80px !important;
    height: 80px !important;
    border: 6px solid rgba(255, 255, 255, 0.2) !important;
    border-top-color: #ffd700 !important;
    border-radius: 50% !important;
    animation: tg-spin 1s linear infinite !important;
    margin-bottom: 30px !important;
}

.tg-loading-text {
    color: #ffffff !important;
    font-size: 1.5rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* === RESULTADO === */
.tg-result-container {
    max-width: 800px !important;
    margin: 0 auto !important;
    text-align: center !important;
}

.tg-result-question {
    color: #ffd700 !important;
    font-size: 1.8rem !important;
    margin: 0 0 40px 0 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

.tg-selected-cards {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    margin-bottom: 40px !important;
    flex-wrap: wrap !important;
}

.tg-result-card {
    width: 140px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.tg-result-card-image {
    width: 100% !important;
    aspect-ratio: 2/3 !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
    margin-bottom: 10px !important;
    border: 2px solid #ffd700 !important;
}

.tg-result-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.tg-result-card-name {
    color: #ffffff !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    margin: 0 !important;
}

.tg-reading {
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 16px !important;
    padding: 30px !important;
    margin-bottom: 30px !important;
    border: 2px solid rgba(255, 215, 0, 0.3) !important;
}

.tg-reading p {
    color: #e0e0e0 !important;
    font-size: 1.2rem !important;
    line-height: 1.8 !important;
    margin: 0 0 15px 0 !important;
    text-align: left !important;
}

.tg-reading p:last-child {
    margin-bottom: 0 !important;
}

/* === ANIMACIONES === */
@keyframes tg-pulse {
    0%, 100% {
        transform: scale(1) !important;
    }
    50% {
        transform: scale(1.1) !important;
    }
}

@keyframes tg-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(255, 215, 0, 0.5) !important;
    }
    50% {
        box-shadow: 0 0 40px rgba(255, 215, 0, 0.8) !important;
    }
}

@keyframes tg-spin {
    to {
        transform: rotate(360deg) !important;
    }
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
    .tg-container {
        padding: 15px !important;
        border-radius: 0 !important;
    }
    
    .tg-title {
        font-size: 2rem !important;
    }
    
    .tg-label h2 {
        font-size: 1.2rem !important;
    }
    
    .tg-input {
        font-size: 1rem !important;
        padding: 15px !important;
    }
    
    .tg-button {
        font-size: 1rem !important;
        padding: 15px 30px !important;
    }
    
    .tg-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 15px !important;
        padding: 10px !important;
    }
    
    .tg-selection-title {
        font-size: 1.8rem !important;
    }
    
    .tg-selection-counter {
        font-size: 1.1rem !important;
    }
    
    .tg-result-question {
        font-size: 1.4rem !important;
    }
    
    .tg-result-card {
        width: 100px !important;
    }
    
    .tg-reading {
        padding: 20px !important;
    }
    
    .tg-reading p {
        font-size: 1rem !important;
    }
}

@media screen and (max-width: 480px) {
    .tg-title {
        font-size: 1.5rem !important;
    }
    
    .tg-cards-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
    }
    
    .tg-selected-cards {
        gap: 10px !important;
    }
    
    .tg-result-card {
        width: 90px !important;
    }
    
    .tg-result-card-name {
        font-size: 0.75rem !important;
    }
}
