/**
 * Tarot AI Styles
 */

.tarot-ai-wrapper {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.tarot-container {
    background: #fff;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.tarot-header {
    text-align: center;
    margin-bottom: 32px;
}

.tarot-header h2 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 600;
    color: #1a1a1a;
}

.tarot-header p {
    margin: 0;
    color: #666;
    font-size: 16px;
}

.tarot-form {
    max-width: 600px;
    margin: 0 auto;
}

.tarot-form-group {
    margin-bottom: 24px;
}

.tarot-form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.tarot-form-group textarea,
.tarot-form-group select {
    width: 100%;
    padding: 12px 16px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.tarot-form-group textarea:focus,
.tarot-form-group select:focus {
    outline: none;
    border-color: #333;
}

.tarot-form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.tarot-form-group small {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #888;
}

.tarot-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
    color: #fff;
    background: #333;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.tarot-button:hover:not(:disabled) {
    background: #555;
}

.tarot-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.tarot-button-primary {
    background: #6366f1;
}

.tarot-button-primary:hover:not(:disabled) {
    background: #4f46e5;
}

.tarot-button-small {
    padding: 6px 12px;
    font-size: 14px;
    background: #ef4444;
}

.tarot-button-small:hover {
    background: #dc2626;
}

.tarot-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.tarot-card-item {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.tarot-card-item:hover:not(.disabled):not(.selected) {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-color: #6366f1;
}

.tarot-card-item.selected {
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.tarot-card-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tarot-card-item img {
    width: 100%;
    height: auto;
    display: block;
}

.tarot-card-name {
    padding: 8px;
    font-size: 12px;
    text-align: center;
    background: #f5f5f5;
    color: #333;
    font-weight: 500;
}

.tarot-selected-cards {
    margin-top: 32px;
    padding: 24px;
    background: #f9fafb;
    border-radius: 8px;
}

.tarot-selected-cards h3 {
    margin: 0 0 16px 0;
    font-size: 20px;
    color: #333;
}

.tarot-selected-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
}

.tarot-selected-card {
    background: #fff;
    border-radius: 8px;
    padding: 12px;
    border: 2px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tarot-selected-card img {
    width: 100px;
    height: auto;
    margin-bottom: 8px;
    border-radius: 4px;
}

.tarot-selected-card img.reversed {
    transform: rotate(180deg);
}

.tarot-card-info {
    text-align: center;
    width: 100%;
}

.tarot-card-info strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    color: #333;
}

.tarot-card-info label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    margin-bottom: 8px;
    cursor: pointer;
}

.tarot-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 32px;
}

.tarot-reading-result {
    max-width: 800px;
    margin: 0 auto;
}

.tarot-question-display {
    padding: 16px;
    background: #f9fafb;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.6;
}

.tarot-question-display strong {
    color: #333;
}

.tarot-answer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 18px;
    font-weight: 600;
}

.tarot-answer.yes {
    background: #dcfce7;
    color: #166534;
}

.tarot-answer.no {
    background: #fee2e2;
    color: #991b1b;
}

.tarot-answer.maybe {
    background: #fef3c7;
    color: #92400e;
}

.tarot-answer-label {
    font-weight: 500;
}

.tarot-answer-value {
    font-size: 24px;
    font-weight: 700;
}

.tarot-reading-text {
    padding: 24px;
    background: #f9fafb;
    border-radius: 8px;
    line-height: 1.8;
    font-size: 16px;
    color: #333;
}

.tarot-reading-text p {
    margin: 0 0 16px 0;
}

.tarot-reading-text h4 {
    margin: 24px 0 12px 0;
    font-size: 18px;
    color: #1a1a1a;
}

.tarot-reading-text ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tarot-reading-text li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
}

.tarot-reading-text li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #6366f1;
    font-weight: bold;
}

.tarot-meta {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e0e0e0;
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .tarot-container {
        padding: 24px;
    }
    
    .tarot-header h2 {
        font-size: 24px;
    }
    
    .tarot-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 12px;
    }
    
    .tarot-selected-list {
        grid-template-columns: 1fr;
    }
    
    .tarot-actions {
        flex-direction: column;
    }
    
    .tarot-button {
        width: 100%;
    }
}
