/* 
 * Health Tracker Page Styles
 * FitTeen Australia Theme
 */

/* Main Tracker Layout */
.tracker-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.tracking-categories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.track-category {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.track-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.track-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.track-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(76, 175, 80, 0.1);
    border-radius: 50%;
}

.track-header h3 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
}

.slider-container {
    margin: 1rem 0;
}

.health-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

.health-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
    border: 2px solid white;
}

.health-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--secondary-green));
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--text-medium);
}

.slider-labels span:nth-child(2) {
    font-weight: 600;
    color: var(--primary-green);
    background: rgba(76, 175, 80, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
}

.recommendation {
    font-size: 0.8rem;
    color: var(--text-medium);
    margin-top: 0.5rem;
    font-style: italic;
}

/* Today's Health Score - ENHANCED */
.tracking-summary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    text-align: center;
    position: sticky;
    top: 2rem;
    height: fit-content;
}

.tracking-summary h3 {
    margin: 0 0 1.5rem 0;
    font-size: 1.3rem;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.health-score {
    margin-bottom: 2rem;
}

.score-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.score-circle span {
    font-size: 2.5rem;
    font-weight: 900;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.score-circle small {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: -0.2rem;
}

.score-breakdown {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.score-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
}

.score-label {
    font-weight: 600;
    min-width: 70px;
    text-align: left;
}

.score-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.score-fill {
    height: 100%;
    background: linear-gradient(90deg, #4CAF50, #8BC34A);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.score-percent {
    font-weight: 700;
    min-width: 40px;
    text-align: right;
    font-size: 0.85rem;
}

/* Generate Chart Button - BEAUTIFUL */
.generate-chart-btn {
    background: linear-gradient(135deg, #FF6B6B, #4ECDC4);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.generate-chart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.generate-chart-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(255, 107, 107, 0.4);
    background: linear-gradient(135deg, #FF8A80, #4DD0E1);
}

.generate-chart-btn:hover::before {
    left: 100%;
}

.generate-chart-btn:active {
    transform: translateY(-1px);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .tracker-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .tracking-summary {
        position: static;
        order: -1;
    }
    
    .score-circle {
        width: 100px;
        height: 100px;
    }
    
    .score-circle span {
        font-size: 2rem;
    }
    
    .track-category {
        padding: 1rem;
    }
    
    .generate-chart-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}