/* HealthAlpha Color Theme */
:root {
    --primary-color: #00b894;
    --primary-dark: #00a085;
    --primary-light: #00d4a5;
    --secondary-color: #0984e3;
    --accent-color: #6c5ce7;
    --text-dark: #2d3436;
    --text-light: #636e72;
    --text-white: #ffffff;
    --bg-white: #ffffff;
    --bg-light: #f8f9fa;
    --bg-card: #ffffff;
    --border-color: #e9ecef;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto;
    overflow-x: hidden;
}

.container {
    padding: 0 16px;
}

/* Header */
.header {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
}

.back-btn, .search-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s;
}

.back-btn:active, .search-btn:active {
    transform: scale(0.95);
}

.header-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Main Content */
.main-content {
    padding: 20px 0 80px;
}

/* Featured Section */
.featured-section {
    margin-bottom: 32px;
}

.featured-card {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 16px;
    padding: 32px 24px;
    overflow: hidden;
    min-height: 200px;
}

.featured-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="white" opacity="0.1"/></svg>');
    opacity: 0.3;
}

.featured-content {
    position: relative;
    z-index: 1;
}

.featured-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 12px;
}

.featured-title {
    color: var(--text-white);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.featured-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin-bottom: 20px;
}

.play-btn {
    background: var(--text-white);
    color: var(--primary-color);
    border: none;
    padding: 12px 28px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.2s;
}

.play-btn:active {
    transform: scale(0.95);
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.see-all {
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}

/* Categories Grid */
.categories-section {
    margin-bottom: 32px;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.category-card {
    background: var(--bg-white);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:active {
    transform: translateY(2px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.category-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 24px;
}

.category-icon.meditation {
    background: linear-gradient(135deg, #a29bfe, #6c5ce7);
    color: white;
}

.category-icon.yoga {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
}

.category-icon.sleep {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.category-icon.focus {
    background: linear-gradient(135deg, #ffeaa7, #fdcb6e);
    color: white;
}

.category-icon.nature {
    background: linear-gradient(135deg, #55efc4, #00b894);
    color: white;
}

.category-icon.energy {
    background: linear-gradient(135deg, #ff7675, #d63031);
    color: white;
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.category-count {
    font-size: 13px;
    color: var(--text-light);
}

/* Recent Section */
.recent-section {
    margin-bottom: 32px;
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
}

.recent-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.recent-cover.nature-bg {
    background: linear-gradient(135deg, #55efc4, #00b894);
}

.recent-cover.sleep-bg {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

.recent-info {
    flex: 1;
}

.recent-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.recent-artist {
    font-size: 13px;
    color: var(--text-light);
}

.recent-play {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.recent-play:active {
    transform: scale(0.95);
}

/* Songs Page */
.songs-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 24px 0;
    margin-bottom: 20px;
}

.songs-header .category-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 14px;
    margin-bottom: 12px;
}

.songs-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.songs-header p {
    font-size: 14px;
    opacity: 0.9;
}

.songs-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 100px;
}

.song-item {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: transform 0.2s;
}

.song-item:active {
    transform: scale(0.98);
}

.song-number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: var(--text-light);
    font-size: 14px;
}

.song-cover {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
}

.song-info {
    flex: 1;
}

.song-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.song-duration {
    font-size: 13px;
    color: var(--text-light);
}

.song-menu {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 18px;
    padding: 8px;
    cursor: pointer;
}

/* Player Page */
.player-container {
    min-height: 100vh;
    background: linear-gradient(to bottom, var(--primary-color), var(--secondary-color));
    display: flex;
    flex-direction: column;
}

.player-header {
    padding: 16px;
}

.player-back {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
}

.player-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 40px 24px 24px;
}

.album-art {
    width: 100%;
    max-width: 320px;
    height: 320px;
    margin: 0 auto 40px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.album-art i {
    font-size: 80px;
    color: rgba(255, 255, 255, 0.9);
}

.song-details {
    text-align: center;
    margin-bottom: 40px;
    color: white;
}

.current-song-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.current-song-artist {
    font-size: 16px;
    opacity: 0.8;
}

.progress-section {
    margin-bottom: 32px;
}

.progress-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    margin-bottom: 8px;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 2px;
    width: 35%;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.progress-time {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.8);
}

.player-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-bottom: 32px;
}

.control-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.control-btn:active {
    transform: scale(0.95);
}

.control-btn.play-pause {
    width: 72px;
    height: 72px;
    background: white;
    color: var(--primary-color);
    font-size: 28px;
}

.player-actions {
    display: flex;
    justify-content: space-around;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.action-btn {
    background: none;
    border: none;
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 22px;
}

.action-btn span {
    font-size: 12px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 375px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .category-card {
        padding: 16px;
    }

    .category-icon {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}