/* Voice Q&A Platform Frontend Styles */

.vqa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Question Form Styles */
.vqa-question-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.vqa-form-group {
    margin-bottom: 20px;
}

.vqa-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.vqa-form-group textarea,
.vqa-form-group select,
.vqa-form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.vqa-form-group textarea:focus,
.vqa-form-group select:focus,
.vqa-form-group input:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.vqa-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.char-counter {
    font-size: 14px;
    color: #666;
    text-align: right;
    margin-top: 5px;
}

.char-counter.warning {
    color: #e74c3c;
}

/* Button Styles */
.vqa-btn {
    display: inline-block;
    padding: 12px 24px;
    background: #007cba;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.3s, transform 0.2s;
}

.vqa-btn:hover {
    background: #005a87;
    transform: translateY(-1px);
}

.vqa-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.vqa-btn-secondary {
    background: #6c757d;
}

.vqa-btn-secondary:hover {
    background: #545b62;
}

.vqa-btn-success {
    background: #28a745;
}

.vqa-btn-success:hover {
    background: #1e7e34;
}

/* Credits Display */
.vqa-credits-info {
    background: #e3f2fd;
    border: 1px solid #90caf9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

.credits-count {
    font-size: 24px;
    font-weight: bold;
    color: #1976d2;
}

.low-credits {
    background: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

/* Questions List */
.vqa-questions-list {
    margin-top: 30px;
}

.vqa-question-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    transition: box-shadow 0.3s;
}

.vqa-question-item:hover {
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.question-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.question-status {
    display: flex;
    gap: 10px;
    align-items: center;
}

.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-answered {
    background: #d4edda;
    color: #155724;
}

.status-processing {
    background: #d1ecf1;
    color: #0c5460;
}

.payment-status {
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
}

.payment-completed {
    background: #d4edda;
    color: #155724;
}

.payment-pending {
    background: #fff3cd;
    color: #856404;
}

.question-text {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 15px;
    color: #333;
}

.question-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #666;
    flex-wrap: wrap;
}

.question-category {
    background: #f8f9fa;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Audio Player Styles */
.vqa-audio-player {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.vqa-audio-player audio {
    width: 100%;
    margin-bottom: 10px;
}

.duration {
    font-size: 12px;
    color: #666;
    float: right;
}

.transcription {
    margin-top: 15px;
}

.toggle-transcription {
    background: none;
    border: 1px solid #007cba;
    color: #007cba;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
}

.toggle-transcription:hover {
    background: #007cba;
    color: white;
}

.transcription-content {
    margin-top: 10px;
    padding: 10px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
    font-size: 14px;
    line-height: 1.5;
}

/* Pricing Table */
.vqa-pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pricing-card {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s, border-color 0.3s;
}

.pricing-card:hover {
    transform: translateY(-5px);
    border-color: #007cba;
}

.pricing-card.featured {
    border-color: #007cba;
    position: relative;
}

.pricing-card.featured::before {
    content: '추천';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: #007cba;
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.pricing-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.pricing-price {
    font-size: 36px;
    font-weight: bold;
    color: #007cba;
    margin-bottom: 5px;
}

.pricing-currency {
    font-size: 18px;
    color: #666;
}

.pricing-description {
    color: #666;
    margin: 15px 0;
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.pricing-features li {
    padding: 8px 0;
    border-bottom: 1px solid #f8f9fa;
}

.pricing-features li:last-child {
    border-bottom: none;
}

/* Loading States */
.vqa-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.vqa-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Alerts and Messages */
.vqa-alert {
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.vqa-alert-success {
    background: #d4edda;
    border-left-color: #28a745;
    color: #155724;
}

.vqa-alert-error {
    background: #f8d7da;
    border-left-color: #dc3545;
    color: #721c24;
}

.vqa-alert-warning {
    background: #fff3cd;
    border-left-color: #ffc107;
    color: #856404;
}

.vqa-alert-info {
    background: #d1ecf1;
    border-left-color: #17a2b8;
    color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vqa-container {
        padding: 10px;
    }
    
    .vqa-question-form {
        padding: 20px;
    }
    
    .question-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .question-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .vqa-pricing-table {
        grid-template-columns: 1fr;
    }
    
    .pricing-card {
        margin-bottom: 20px;
    }
}

/* Korean Font Support */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

.vqa-container,
.vqa-container * {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus indicators */
.vqa-btn:focus,
.vqa-form-group input:focus,
.vqa-form-group textarea:focus,
.vqa-form-group select:focus {
    outline: 2px solid #007cba;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .vqa-question-item {
        border-width: 2px;
    }
    
    .status-badge {
        border: 1px solid currentColor;
    }
}