/* Experience UI Styles */

.experience-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(20, 20, 20, 0.95);
    color: #fff;
    overflow-y: auto;
    z-index: 1000;
    padding: 20px;
}

.experience-container.hidden {
    display: none !important;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #444;
}

.experience-header h2 {
    margin: 0;
    font-size: 28px;
    color: #4CAF50;
}

.close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #f44336;
}

.experience-content {
    max-width: 1200px;
    margin: 0 auto;
}

/* Progress Section */
.progress-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.progress-section h3 {
    margin-top: 0;
    color: #4CAF50;
}

.level-info {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    font-size: 20px;
}

.level-label {
    margin-right: 10px;
    color: #aaa;
}

.level-value {
    font-weight: bold;
    color: #4CAF50;
}

.xp-progress {
    margin-bottom: 15px;
}

.progress-bar {
    width: 100%;
    height: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    margin-bottom: 10px;
}

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

.xp-text {
    text-align: center;
    color: #ccc;
}

.rested-status {
    background: rgba(255, 215, 0, 0.2);
    padding: 10px;
    border-radius: 5px;
    margin-top: 15px;
    text-align: center;
}

/* Skills Section */
.skills-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.skills-section h3 {
    margin-top: 0;
    color: #2196F3;
}

.skills-list {
    display: grid;
    gap: 20px;
}

.skill-domain {
    background: rgba(255, 255, 255, 0.05);
    padding: 15px;
    border-radius: 8px;
}

.skill-domain h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #FF9800;
    font-size: 18px;
}

.no-skills {
    color: #aaa;
    text-align: center;
    padding: 40px;
    font-size: 16px;
    font-style: italic;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    border: 2px dashed rgba(255, 255, 255, 0.1);
}

.domain-skills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 15px;
}

.skill-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 12px;
    border-radius: 6px;
    transition: all 0.3s;
}

.skill-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.skill-item.has-synergy {
    border: 1px solid rgba(156, 39, 176, 0.5);
}

.skill-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.skill-name {
    font-weight: bold;
    color: #fff;
}

.skill-rank {
    color: #aaa;
    font-size: 14px;
}

.skill-pool {
    margin-bottom: 5px;
}

.pool-bar {
    width: 100%;
    height: 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 5px;
}

.pool-fill {
    height: 100%;
    transition: width 0.5s ease, background-color 0.5s ease;
}

.pool-text {
    font-size: 12px;
    color: #aaa;
    text-align: center;
}

.skill-mindstate {
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

/* Recent Activity Section */
.recent-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
}

.recent-section h3 {
    margin-top: 0;
    color: #FF9800;
}

.recent-gains {
    max-height: 300px;
    overflow-y: auto;
}

.recent-gain {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 8px;
    border-radius: 5px;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.gain-amount {
    font-weight: bold;
    color: #4CAF50;
}

.gain-skill {
    color: #2196F3;
}

.gain-reason {
    color: #aaa;
    font-size: 14px;
}

.gain-time {
    color: #666;
    font-size: 12px;
}

/* Progress sparkle effect */
.progress-sparkle {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s;
}

.progress-sparkle.active {
    opacity: 1;
    animation: sparkleMove 1s ease-out;
}

@keyframes sparkleMove {
    0% { transform: translateX(0) scale(0); }
    50% { transform: translateX(-10px) scale(1.2); }
    100% { transform: translateX(-20px) scale(0); opacity: 0; }
}

/* Level progress indicators */
.level-progress-indicators {
    display: flex;
    justify-content: space-around;
    margin-top: 15px;
    position: relative;
    z-index: 1;
}

.milestone {
    position: relative;
    padding: 5px 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.milestone.achieved {
    background: rgba(76, 175, 80, 0.2);
    border-color: rgba(76, 175, 80, 0.5);
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.milestone span {
    font-size: 12px;
    color: #aaa;
    font-weight: 600;
}

.milestone.achieved span {
    color: #4CAF50;
}

/* Synergy indicator */
.synergy-indicator {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 16px;
    filter: drop-shadow(0 0 3px rgba(156, 39, 176, 0.6));
    cursor: help;
}

/* XP Notification */
.xp-notification {
    position: fixed;
    padding: 10px 20px;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.9) 0%, rgba(139, 195, 74, 0.9) 100%);
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    z-index: 2000;
    animation: floatUp 2s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.xp-amount {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.xp-skill {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

.xp-notification.fade-out {
    opacity: 0;
    transition: opacity 1s ease;
}

@keyframes floatUp {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50px);
    }
}

/* Trust-specific styles */
.trust-progress {
    margin: 10px 0;
}

.trust-text {
    text-align: center;
    margin-top: 5px;
    color: #17a2b8;
    font-weight: 500;
}

.prologue-warning {
    text-align: center;
    font-size: 14px;
    padding: 5px;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 4px;
}

.xp-info {
    text-align: center;
    padding: 5px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Trust gain in recent activity */
.recent-gain.trust-gain .gain-amount {
    color: #17a2b8;
}

/* Trust notification */
.trust-notification {
    position: fixed;
    background: rgba(23, 162, 184, 0.9);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    pointer-events: none;
    animation: floatUp 3s ease-out forwards;
}

.trust-notification .xp-amount {
    font-size: 18px;
    font-weight: bold;
    color: white;
}

.trust-notification.fade-out {
    opacity: 0;
    transition: opacity 1s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
    .experience-container {
        padding: 10px;
    }
    
    .domain-skills {
        grid-template-columns: 1fr;
    }
    
    .recent-gain {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Pomodoro Section */
.pomodoro-section {
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

.pomodoro-section h3 {
    margin-top: 0;
    color: #f48c06;
    text-align: center;
}

.pomodoro-section h4 {
    color: #faa307;
    margin-bottom: 15px;
}

.pomodoro-section h5 {
    margin: 0 0 5px 0;
    color: #ffba08;
}

/* Timer Settings */
.timer-settings {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.timer-settings label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #aaa;
}

.timer-display {
    font-size: 14px;
    margin-bottom: 10px;
    text-align: center;
    color: #faa307;
}

#pomodoroSlider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #333;
    outline: none;
    -webkit-appearance: none;
}

#pomodoroSlider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #faa307;
    cursor: pointer;
}

#pomodoroSlider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #faa307;
    cursor: pointer;
    border: none;
}

/* Pomodoro Cards */
.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.pomodoro-card {
    background: linear-gradient(135deg, rgba(250, 163, 7, 0.1), rgba(220, 47, 2, 0.1));
    border: 1px solid rgba(250, 163, 7, 0.2);
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pomodoro-card:hover {
    transform: translateY(-2px);
    border-color: #faa307;
    box-shadow: 0 4px 15px rgba(250, 163, 7, 0.2);
}

.pomodoro-desc {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 10px;
}

.skill-count {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

/* Pomodoro Screens */
.pomodoro-screen {
    transition: opacity 0.3s ease;
}

.pomodoro-screen.hidden {
    display: none;
}

/* Skills List for Pomodoro */
.pomodoro-skills-list {
    margin: 20px 0;
}

.pomodoro-skill-item {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pomodoro-skill-item .skill-name {
    color: #fff;
}

.pomodoro-skill-item .skill-weight {
    background: #f48c06;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* Timer Container */
.timer-container {
    text-align: center;
    margin: 30px 0;
}

.timer-image {
    width: 150px;
    height: 150px;
    display: block;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 10px rgba(250, 163, 7, 0.3));
}

.time-display {
    font-size: 48px;
    font-weight: 300;
    margin: 20px 0;
    font-variant-numeric: tabular-nums;
    color: #ffba08;
    text-shadow: 0 0 20px rgba(250, 163, 7, 0.5);
}

/* Timer Controls */
.timer-controls {
    display: flex;
    gap: 10px;
    justify-content: center;
}

/* Buttons */
.back-button, .start-button, .control-button, .cancel-button, .continue-button {
    padding: 10px 20px;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.back-button {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    margin-bottom: 15px;
}

.start-button {
    background: #faa307;
    color: white;
    display: block;
    margin: 20px auto 0;
    padding: 12px 30px;
}

.control-button {
    background: #17a2b8;
    color: white;
}

.cancel-button {
    background: #dc3545;
    color: white;
}

.continue-button {
    background: #f48c06;
    color: white;
    display: block;
    margin: 20px auto;
}

.back-button:hover, .start-button:hover, .control-button:hover, 
.cancel-button:hover, .continue-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Completion Message */
.completion-message {
    text-align: center;
    font-size: 16px;
    margin: 20px 0;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
}

/* Responsive for Pomodoro */
@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .timer-image {
        width: 120px;
        height: 120px;
    }
    
    .time-display {
        font-size: 36px;
    }
}