/**
 * Public Styles for Dating Coach
 */

.dating-coach-container {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Usage Bar */
.dc-usage-bar {
    background: #f5f5f5;
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.dc-usage-bar span {
    font-size: 14px;
    color: #666;
    white-space: nowrap;
}

.dc-usage-bar-visual {
    flex: 1;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.dc-usage-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    transition: width 0.3s ease;
}

/* Step Containers */
.dc-step {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    padding: 30px;
}

.dc-step h2 {
    margin-top: 0;
    color: #333;
    font-size: 24px;
}

/* Categories Grid */
.dc-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.dc-category-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    text-align: center;
}

.dc-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.dc-category-card h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.dc-category-card p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

/* Instructions Modal */
.dc-instructions-modal {
    max-width: 600px;
    margin: 0 auto;
}

.dc-instructions-content {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    margin: 20px 0;
}

.dc-instructions-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.dc-instructions-content li {
    margin: 10px 0;
    line-height: 1.6;
}

.dc-checkbox {
    display: block;
    margin: 20px 0;
    cursor: pointer;
}

.dc-checkbox input {
    margin-right: 8px;
}

/* Chat Container */
.dc-practice-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.dc-category-label {
    font-weight: 600;
    color: #667eea;
}

.dc-chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
}

.dc-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
}

.dc-message {
    margin: 15px 0;
    padding: 15px;
    border-radius: 12px;
    max-width: 80%;
}

.dc-message-ai {
    background: #fff;
    border: 1px solid #e0e0e0;
    margin-right: auto;
}

.dc-message-user {
    background: #667eea;
    color: white;
    margin-left: auto;
    text-align: right;
}

.dc-message-label {
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 5px;
    opacity: 0.7;
}

.dc-message-ai .dc-message-label {
    color: #667eea;
}

.dc-message-content {
    line-height: 1.6;
}

/* Chat Input */
.dc-chat-input-area {
    display: flex;
    gap: 10px;
}

.dc-chat-input-area textarea {
    flex: 1;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    resize: vertical;
    font-family: inherit;
    font-size: 15px;
}

.dc-chat-input-area textarea:focus {
    outline: none;
    border-color: #667eea;
}

/* Buttons */
.dc-button {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dc-button-primary {
    background: #667eea;
    color: white;
}

.dc-button-primary:hover {
    background: #5a67d8;
}

.dc-button-secondary {
    background: #e0e0e0;
    color: #333;
}

.dc-button-secondary:hover {
    background: #d0d0d0;
}

.dc-back-button {
    padding: 8px 16px;
    font-size: 14px;
}

/* Feedback Section */
.dc-feedback-container {
    text-align: center;
}

.dc-score-display {
    margin: 30px 0;
}

.dc-score-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.dc-score-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1;
}

.dc-score-label {
    font-size: 18px;
    opacity: 0.8;
}

.dc-feedback-section {
    text-align: left;
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.dc-feedback-section h3 {
    margin-top: 0;
    color: #333;
    font-size: 18px;
}

.dc-example-box {
    background: #fff;
    border-left: 4px solid #667eea;
    padding: 15px;
    font-style: italic;
    color: #555;
}

#dc-suggestions-list {
    margin: 0;
    padding-left: 20px;
}

#dc-suggestions-list li {
    margin: 10px 0;
    line-height: 1.6;
}

/* Score Breakdown */
.dc-score-breakdown {
    margin: 30px 0;
}

.dc-breakdown-item {
    margin: 15px 0;
}

.dc-breakdown-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    font-size: 14px;
}

.dc-breakdown-bar {
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.dc-breakdown-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 10px;
    transition: width 0.5s ease;
}

/* Feedback Actions */
.dc-feedback-actions {
    margin-top: 30px;
    display: flex;
    gap: 15px;
    justify-content: center;
}

/* Loading Overlay */
.dc-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.dc-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e0e0e0;
    border-top-color: #667eea;
    border-radius: 50%;
    animation: dc-spin 1s linear infinite;
}

@keyframes dc-spin {
    to { transform: rotate(360deg); }
}

.dc-loading-overlay p {
    margin-top: 15px;
    color: #666;
}

/* Error Message */
.dc-error {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    margin: 20px 0;
}

/* Login Required */
.dating-coach-login-required,
.dc-progress-dashboard {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    text-align: center;
}

.dc-progress-dashboard h2 {
    margin-top: 0;
}

.dc-progress-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.dc-progress-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.dc-progress-card h3 {
    margin-top: 0;
    color: #667eea;
}

.dc-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.dc-stat {
    text-align: center;
}

.dc-stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.dc-stat-label {
    font-size: 13px;
    color: #666;
}

.dc-recent-sessions {
    width: 100%;
    margin-top: 20px;
}

/* Responsive */
@media (max-width: 600px) {
    .dc-step {
        padding: 20px;
    }
    
    .dc-categories-grid {
        grid-template-columns: 1fr;
    }
    
    .dc-chat-container {
        height: 400px;
    }
    
    .dc-feedback-actions {
        flex-direction: column;
    }
    
    .dc-usage-bar {
        flex-direction: column;
        align-items: stretch;
    }
}
