/* css/mobile.css - Complete Mobile App Styling */

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

:root {
    --primary: #6C63FF;
    --primary-dark: #5548E8;
    --secondary: #FF6584;
    --success: #4CAF50;
    --warning: #FFC107;
    --danger: #F44336;
    --text-dark: #2C3E50;
    --text-light: #7F8C8D;
    --bg-light: #F8F9FA;
    --white: #FFFFFF;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-light);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

.mobile-container {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    min-height: 100vh;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
}

/* ===== SPLASH SCREEN ===== */
.splash-screen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 20px;
    text-align: center;
}

.logo-container {
    margin-bottom: 60px;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-lg);
    animation: pulse 2s infinite;
}

.logo-emoji {
    font-size: 60px;
}

.splash-screen h1 {
    font-size: 48px;
    color: var(--white);
    margin-bottom: 10px;
}

.splash-screen > p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    margin-bottom: 40px;
}

.welcome-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    max-width: 300px;
    margin-bottom: 50px;
}

.features-preview {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.feature-item {
    text-align: center;
}

.feature-icon {
    font-size: 36px;
    display: block;
    margin-bottom: 8px;
}

.feature-item p {
    color: var(--white);
    font-size: 12px;
}

/* ===== BUTTONS ===== */
.btn {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary {
    background: var(--white);
    color: var(--primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary);
}

/* ===== AUTH PAGES ===== */
.auth-page {
    padding: 40px 30px;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.back-btn {
    color: var(--white);
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    margin-bottom: 30px;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-small {
    font-size: 60px;
    margin-bottom: 20px;
}

.auth-header h2 {
    color: var(--white);
    font-size: 32px;
    margin-bottom: 10px;
}

.auth-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
}

.auth-form {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 14px;
    border: 2px solid #E0E0E0;
    border-radius: 10px;
    font-size: 16px;
    transition: border 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
}

.auth-form .btn {
    margin-top: 10px;
    background: var(--primary);
    color: var(--white);
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
}

.auth-footer p {
    color: var(--white);
    font-size: 14px;
}

.auth-footer a {
    color: var(--white);
    font-weight: 600;
    text-decoration: underline;
}

/* ===== APP HEADER ===== */
.app-header {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: var(--white);
    padding: 15px 20px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.app-header h1 {
    font-size: 20px;
    font-weight: 600;
}

.logout-btn, .back-btn-header {
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    padding: 20px;
    padding-bottom: 100px;
}

/* ===== HOME PAGE ===== */
.welcome-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.welcome-card h2 {
    font-size: 22px;
    margin-bottom: 8px;
}

.welcome-card p {
    opacity: 0.9;
    font-size: 14px;
}

.quick-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 30px;
}

.stat-box {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.stat-icon {
    font-size: 30px;
    display: block;
    margin-bottom: 8px;
}

.stat-info h3 {
    font-size: 24px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.stat-info p {
    font-size: 11px;
    color: var(--text-light);
}

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

.menu-card {
    background: var(--white);
    padding: 20px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    text-decoration: none;
    transition: all 0.3s;
    text-align: center;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.menu-icon {
    font-size: 40px;
    margin-bottom: 12px;
}

.menu-card h3 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.menu-card p {
    font-size: 12px;
    color: var(--text-light);
}

/* ===== PAGE INTRO ===== */
.page-intro {
    margin-bottom: 25px;
}

.page-intro h2 {
    font-size: 26px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.page-intro p {
    color: var(--text-light);
    font-size: 14px;
}

/* ===== VIDEO PAGE ===== */
.category-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    font-size: 14px;
    transition: all 0.3s;
}

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

.video-list {
    display: grid;
    gap: 15px;
}

.video-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
}

.video-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play-btn {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.video-emoji {
    font-size: 80px;
    position: absolute;
    opacity: 0.2;
}

.video-info {
    padding: 15px;
}

.video-category {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    margin-bottom: 8px;
}

.video-info h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.video-info p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.5;
}

/* ===== WORKOUT PLANS ===== */
.workout-plans {
    display: grid;
    gap: 20px;
}

.workout-plan-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.workout-plan-card:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

.plan-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.plan-badge.beginner { background: var(--success); }
.plan-badge.cardio { background: var(--danger); }
.plan-badge.strength { background: var(--warning); color: var(--text-dark); }
.plan-badge.flexibility { background: var(--primary); }

.plan-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

.workout-plan-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.workout-plan-card p {
    opacity: 0.9;
    font-size: 14px;
    margin-bottom: 15px;
}

.plan-details {
    display: flex;
    gap: 20px;
    font-size: 13px;
}

/* ===== TIPS PAGE ===== */
.tips-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: 2px solid var(--primary);
    background: var(--white);
    color: var(--primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s;
}

.tab-btn.active {
    background: var(--primary);
    color: var(--white);
}

.tips-content {
    display: none;
}

.tips-content.active {
    display: block;
}

.tip-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    margin-bottom: 15px;
}

.tip-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.tip-icon {
    font-size: 32px;
    margin-right: 12px;
}

.tip-card h3 {
    font-size: 18px;
    color: var(--text-dark);
}

.tip-card p {
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 12px;
}

.tip-card ul {
    margin-left: 20px;
    color: var(--text-dark);
}

.tip-card li {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-light);
}

/* ===== PROFILE PAGE ===== */
.profile-header {
    text-align: center;
    padding: 30px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    border-radius: 16px;
    margin-bottom: 20px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.avatar-emoji {
    font-size: 40px;
}

.profile-header h2 {
    font-size: 24px;
    margin-bottom: 5px;
}

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

.profile-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.profile-stat {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
}

.profile-stat h3 {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 5px;
}

.profile-stat p {
    font-size: 12px;
    color: var(--text-light);
}

.profile-menu {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 18px;
    border: none;
    background: var(--white);
    width: 100%;
    text-align: left;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid var(--bg-light);
    cursor: pointer;
    transition: background 0.3s;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background: var(--bg-light);
}

.menu-item-icon {
    font-size: 24px;
    margin-right: 15px;
}

.profile-menu-item h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.profile-menu-item p {
    font-size: 12px;
    color: var(--text-light);
}

.profile-menu-item div {
    flex: 1;
}

.menu-arrow {
    font-size: 24px;
    color: var(--text-light);
}

/* ===== PROGRESS PAGE ===== */
.progress-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.progress-stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: var(--white);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    box-shadow: var(--shadow);
}

.stat-icon-large {
    font-size: 48px;
    display: block;
    margin-bottom: 10px;
}

.progress-stat-card h3 {
    font-size: 36px;
    margin-bottom: 5px;
}

.progress-stat-card p {
    opacity: 0.9;
    font-size: 14px;
}

.badges-section, .activity-section {
    margin-bottom: 30px;
}

.badges-section h3, .activity-section h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.badges-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.badge-card {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: all 0.3s;
}

.badge-card.earned {
    border: 2px solid var(--success);
}

.badge-card.locked {
    opacity: 0.4;
}

.badge-icon {
    font-size: 40px;
    display: block;
    margin-bottom: 8px;
}

.badge-card h4 {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.badge-card p {
    font-size: 11px;
    color: var(--text-light);
}

.activity-list {
    display: grid;
    gap: 12px;
}

.activity-card {
    background: var(--white);
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border-left: 4px solid var(--primary);
}

.activity-card h4 {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 4px;
}

.activity-card p {
    font-size: 13px;
    color: var(--text-light);
}

/* ===== BOTTOM NAVIGATION ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 5px 15px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.nav-label {
    font-size: 11px;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

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

/* ===== RESPONSIVE ===== */
@media (max-width: 400px) {
    .main-content {
        padding: 15px;
    }
    
    .menu-grid {
        gap: 12px;
    }
    
    .menu-card {
        padding: 15px;
    }
}