/* GPT Interpretation Styles */

.gpt-interpretation-container {
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.interpretation-header {
    text-align: center;
    margin-bottom: 2rem;
}

.interpretation-header h2 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.interpretation-header .subtitle {
    color: #666;
    font-size: 1rem;
}

/* Usage Status */
.usage-status {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.usage-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
}

.stat-item.used .stat-value {
    color: #ffd700;
}

.stat-item.available .stat-value {
    color: #90ee90;
}

/* Interpretation Sections */
.interpretation-section {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.interpretation-section h3 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.section-description {
    color: #666;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Daily Horoscope */
#daily-horoscope-container {
    margin-top: 1rem;
}

#generate-daily-horoscope-btn {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    display: block;
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

#generate-daily-horoscope-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.interpretation-result {
    margin-top: 2rem;
    min-height: 100px;
}

.interpretation-content {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.interpretation-header-info {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.badge {
    background: #667eea;
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.interpretation-text {
    line-height: 1.8;
    color: #333;
    font-size: 1rem;
}

.interpretation-text p {
    margin-bottom: 1rem;
}

.interpretation-text strong {
    color: #667eea;
    font-weight: 600;
}

.interpretation-text ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.interpretation-text li {
    margin-bottom: 0.5rem;
}

.panchang-info {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e0e0e0;
}

.panchang-info h5 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

.panchang-info p {
    margin: 0.5rem 0;
    color: #555;
}

/* Predefined Questions */
.predefined-questions {
    margin-bottom: 2rem;
}

.predefined-questions h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.questions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.question-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.question-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

.question-icon {
    font-size: 2rem;
    text-align: center;
}

.question-text {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
    flex-grow: 1;
}

.question-card .btn-small {
    background: #667eea;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
}

.question-card .btn-small:hover {
    background: #5568d3;
}

.no-questions {
    text-align: center;
    color: #999;
    padding: 2rem;
}

/* Custom Question */
.custom-question {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid #e0e0e0;
}

.custom-question h4 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 1rem;
}

.question-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    margin-bottom: 1rem;
    transition: border-color 0.3s ease;
}

.question-input:focus {
    outline: none;
    border-color: #667eea;
}

#ask-custom-question-btn {
    width: 100%;
    max-width: 300px;
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Question Results */
.question-results {
    margin-top: 2rem;
}

.question-result-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: wrap;
}

.question-header h4 {
    color: #333;
    font-size: 1.1rem;
    margin: 0;
    flex-grow: 1;
}

.question-answer {
    margin-top: 1rem;
}

.question-footer {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
    flex-wrap: wrap;
}

/* Loading Spinner */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Error Messages */
.error-message {
    background: #fee;
    border: 2px solid #fcc;
    border-radius: 10px;
    padding: 1.5rem;
    color: #c33;
    text-align: center;
}

.limit-message {
    margin-top: 1rem;
    padding: 1rem;
    background: #fff3cd;
    border-radius: 5px;
    color: #856404;
}

/* Responsive */
@media (max-width: 768px) {
    .gpt-interpretation-container {
        padding: 1rem;
    }
    
    .interpretation-section {
        padding: 1.5rem;
    }
    
    .questions-grid {
        grid-template-columns: 1fr;
    }
    
    .usage-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .interpretation-header-info {
        flex-direction: column;
    }
}

