/* ===================================
   Experience Selector Styles
   ================================== */

/* Experiences Tab - Browse published experiences */
.experiences-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    padding: 1rem;
}

.experience-card {
    border: 2px solid #ddd;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    background: white;
}

.experience-card:hover {
    border-color: #4a90e2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.experience-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.experience-card-title {
    font-weight: 600;
    font-size: 1.125rem;
    color: #333;
}

.experience-card-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #e8f5e9;
    color: #2e7d32;
}

.experience-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.experience-card-activities {
    font-weight: 500;
}

.no-experiences-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.no-experiences-message h3 {
    margin-bottom: 0.5rem;
    color: #999;
}

/* Experience Progress Tab - Track activity progress */
.experience-progress-section {
    padding: 1rem;
}

.experience-progress-heading {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.experience-progress-status {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 1.5rem;
}

.activities-progress-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.activity-progress-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    border-radius: 6px;
    gap: 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
}

.activity-progress-item.completed {
    background: #f1f8f4;
    border-color: #c8e6c9;
}

.activity-progress-item.current {
    background: #fff3e0;
    border-color: #ffb74d;
    border-width: 2px;
}

.activity-progress-item.upcoming {
    background: #fafafa;
}

.activity-status-icon {
    font-size: 1.5rem;
    font-weight: bold;
    min-width: 30px;
    text-align: center;
}

.activity-status-icon.completed {
    color: #4caf50;
}

.activity-status-icon.current {
    color: #ff9800;
}

.activity-status-icon.upcoming {
    color: #9e9e9e;
}

.activity-info {
    flex: 1;
}

.activity-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.activity-name {
    font-weight: 500;
    color: #333;
}

.activity-type {
    padding: 0.125rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    background: #e3f2fd;
    color: #1976d2;
}

.activity-status {
    font-size: 0.875rem;
    color: #666;
}

.btn-redo-activity {
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    background: #fff;
    border: 1px solid #ff9800;
    color: #ff9800;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-redo-activity:hover:not(:disabled) {
    background: #ff9800;
    color: white;
}

.btn-redo-activity:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Experience Actions */
.experience-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.btn-experience-action {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-next-activity {
    background: #4a90e2;
    color: white;
}

.btn-next-activity:hover:not(:disabled) {
    background: #357abd;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-next-activity:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.btn-clear-experience {
    background: #fff;
    border: 1px solid #f44336;
    color: #f44336;
}

.btn-clear-experience:hover:not(:disabled) {
    background: #f44336;
    color: white;
}

/* Loading states */
.experience-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: #666;
}

.experience-loading::after {
    content: '...';
    animation: ellipsis 1.5s infinite;
}

@keyframes ellipsis {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* Info messages */
.info-message {
    padding: 1rem;
    border-radius: 6px;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    color: #1565c0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .experiences-list {
        grid-template-columns: 1fr;
    }
    
    .activity-progress-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .btn-redo-activity {
        align-self: flex-end;
    }
    
    .experience-actions {
        flex-direction: column;
    }
    
    .btn-experience-action {
        width: 100%;
    }
}

/* Accessibility */
.activity-progress-item:focus-within {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.btn-redo-activity:focus,
.btn-experience-action:focus {
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

/* Dark mode support (if app has dark mode) */
@media (prefers-color-scheme: dark) {
    .experience-card {
        background: #2c2c2c;
        border-color: #444;
    }
    
    .experience-card:hover {
        border-color: #4a90e2;
    }
    
    .experience-card-title,
    .activity-name {
        color: #e0e0e0;
    }
    
    .activity-progress-item {
        background: #2c2c2c;
        border-color: #444;
    }
    
    .activity-progress-item.completed {
        background: #1b3a1b;
        border-color: #4caf50;
    }
    
    .activity-progress-item.current {
        background: #3d2a00;
        border-color: #ff9800;
    }
}
