* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --background-color: #f5f6fa;
    --text-color: #2c3e50;
    --progress-color: #2ecc71;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

header h1 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

.user-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.xp-bar {
    flex-grow: 1;
}

.xp-text {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.progress {
    height: 20px;
    background-color: #eee;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background-color: var(--progress-color);
    transition: width 0.3s ease;
}

.badges {
    display: flex;
    gap: 15px;
}

.badges i {
    font-size: 24px;
    color: gold;
    opacity: 0.3;
    transition: opacity 0.3s ease;
}

.badges i.earned {
    opacity: 1;
    color: gold;
}

.podcast-grid {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.podcast-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background-color: #eee;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: var(--secondary-color);
    color: white;
}

.podcast-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.podcast-episode {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.5s ease-out;
}

.podcast-episode:hover {
    transform: translateY(-5px);
}

.podcast-episode img {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.episode-details {
    padding: 15px;
}

.episode-details h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.player-container {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    bottom: 20px;
}

.now-playing {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

#episode-cover {
    width: 100px;
    height: 100px;
    border-radius: 10px;
    object-fit: cover;
}

.player-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.progress-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.timeline {
    flex-grow: 1;
    height: 5px;
    background-color: #eee;
    border-radius: 5px;
    cursor: pointer;
    position: relative;
}

.timeline:hover .progress-bar {
    background-color: var(--secondary-color);
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #eee;
    transform: translateY(-50%);
}

.progress-bar {
    height: 2px;
    background-color: var(--progress-color);
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    transition: width 0.1s linear;
}

.controls {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--primary-color);
    padding: 10px;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.controls button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.controls button:hover::after {
    width: 100%;
    height: 100%;
}

#play-pause {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    animation: pulse 2s infinite;
}

#play-pause:hover {
    background-color: var(--primary-color);
}

#play-pause.playing {
    animation: none;
}

.volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.volume-control input[type="range"] {
    -webkit-appearance: none;
    width: 100px;
    height: 4px;
    background: #eee;
    border-radius: 2px;
    outline: none;
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px;
    height: 12px;
    background: var(--secondary-color);
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

.quiz-container {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.quiz-container.hidden {
    display: none;
}

.quiz-content {
    margin: 20px 0;
}

.quiz-question {
    margin-bottom: 20px;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.quiz-option {
    padding: 10px;
    border: 2px solid #eee;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quiz-option:hover {
    background-color: #f5f5f5;
}

.quiz-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.5s ease;
}

.quiz-option:hover::before {
    transform: translateX(100%);
}

.quiz-option.selected {
    border-color: var(--secondary-color);
    background-color: rgba(52, 152, 219, 0.1);
    animation: pulse 0.5s ease;
}

#submit-quiz {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#submit-quiz:hover {
    background-color: var(--primary-color);
}

.achievements-panel {
    background-color: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 30px;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.achievement-card {
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
}

.achievement-card:hover {
    transform: translateY(-5px);
}

.achievement-card i {
    font-size: 32px;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.achievement-card.locked {
    opacity: 0.5;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.achievement-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: white;
    padding: 15px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideIn 0.5s ease-out;
    z-index: 1000;
}

.achievement-notification i {
    font-size: 24px;
    color: gold;
}

.achievement-notification .achievement-details h3 {
    margin: 0;
    color: var(--primary-color);
}

.achievement-notification .achievement-details p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #666;
}

@media (max-width: 768px) {
    .now-playing {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .controls {
        flex-wrap: wrap;
    }

    .podcast-filters {
        justify-content: center;
    }
}

.error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
}

.error-message.fade-out {
    animation: fadeOut 0.3s ease-out forwards;
}

.completion-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    z-index: 1000;
    animation: scaleIn 0.5s ease-out;
}

.completion-animation i {
    font-size: 48px;
    color: var(--progress-color);
    margin-bottom: 15px;
}

.completion-animation h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.completion-animation p {
    color: var(--secondary-color);
    font-size: 18px;
    font-weight: bold;
}

.completion-animation.fade-out {
    animation: scaleOut 0.5s ease-out forwards;
}

@keyframes scaleIn {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes scaleOut {
    from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    to { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
}

@keyframes fadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

#play-pause.loading {
    position: relative;
}

#play-pause.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.controls button.seeking {
    animation: seekPulse 0.2s ease-out;
}

@keyframes seekPulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.volume-control input[type="range"] {
    transition: background-color 0.3s ease;
}

.volume-control input[type="range"]:hover {
    background-color: var(--secondary-color);
}

.volume-control input[type="range"]::-webkit-slider-thumb {
    transition: all 0.2s ease;
}

.volume-control input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    background-color: var(--primary-color);
}

.timeline {
    position: relative;
    cursor: pointer;
}

.timeline:hover .progress-bar {
    background-color: var(--secondary-color);
}

.timeline::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #eee;
    transform: translateY(-50%);
}

.progress-bar {
    position: absolute;
    top: 50%;
    left: 0;
    height: 2px;
    background-color: var(--progress-color);
    transform: translateY(-50%);
    transition: width 0.1s linear;
} 