/* Estilos específicos para el Tarot */
.search-container {
    position: relative;
    width: 100%;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e2e8f0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    max-width: 400px;
    margin: 0 auto;
}

.search-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f7fafc;
    transition: background-color 0.2s ease;
}

.search-result-item:hover,
.search-result-item.selected {
    background-color: #f0f4ff;
    color: #2E86AB;
}

.search-result-item:last-child {
    border-bottom: none;
}

.card-display {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    align-items: start;
    margin-bottom: 25px;
}

.card-image-container {
    width: 120px;
    flex-shrink: 0;
}

.tarot-card-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.tarot-card-img:hover {
    transform: scale(1.05);
}

.card-info h3 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1.5em;
}

.card-type {
    color: #2E86AB;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-keywords {
    background: linear-gradient(135deg, #f0f4ff 0%, #e6fffa 100%);
    padding: 12px 16px;
    border-radius: 8px;
    
}

.card-keywords strong {
    color: #2d3748;
    display: block;
    margin-bottom: 4px;
    font-size: 0.9em;
}

.card-keywords span {
    color: #4a5568;
    font-style: italic;
}

.card-meanings {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.meaning-section {
    background: #f7fafc;
    padding: 20px;
    border-radius: 10px;
   
}

.meaning-section h4 {
    color: #2d3748;
    margin-bottom: 12px;
    font-size: 1.1em;
}

.meaning-section p {
    color: #4a5568;
    line-height: 1.6;
    margin: 0;
}

.tarot-structure {
    margin-top: 15px;
}

.tarot-section {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 12px;
    border-left: 3px solid #2E86AB;
}

.tarot-section h5 {
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 1em;
}

.tarot-section p {
    color: #4a5568;
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 8px;
}

.tarot-section ul {
    margin: 8px 0;
    padding-left: 20px;
}

.tarot-section li {
    color: #4a5568;
    font-size: 0.85em;
    line-height: 1.4;
    margin-bottom: 4px;
}

.button-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

 .tarot-btn {
    background: #2E86AB;
    color: white;
    border: none;
    padding: 18px 45px;
    font-size: 1.3em;
    font-weight: bold;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(46, 134, 171, 0.3);
    position: relative;
    overflow: hidden;
}

.tarot-btn:hover {
     transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(46, 134, 171, 0.4);
}

#clearSearch {
    display: none !important;
}

/* Responsive */
@media (max-width: 768px) {
    .card-display {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .card-image-container {
        width: 150px;
        margin: 0 auto;
    }
    
    .card-meanings {
        grid-template-columns: 1fr;
    }
    
    .button-group {
        flex-direction: column;
        align-items: center;
    }
    
    .button-group button {
        width: 100%;
        max-width: 250px;
    }
}