/* Style of the running page div */
.running {
    width: 1000px; /*fixed div size till break point */
    text-align: center;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Authentication container */
.auth-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

#fitbit-auth-btn {
    padding: 8px 16px;
    background-color: #00B0B9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.auth-status {
    color: #00B0B9;
    font-weight: bold;
}

/* Activity Details Modal */
#activity-details {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#activity-details h1 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    margin: 0;
    padding: 20px 24px;
    font-size: 20px;
    font-weight: 500;
    border-radius: 8px 8px 0 0;
}

.activity-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    padding: 24px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.summary-item {
    text-align: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.summary-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.summary-label {
    font-size: 12px;
    font-weight: 500;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 18px;
    font-weight: 600;
    color: #343a40;
}

.loading-indicator {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 14px;
}

.error-message, .no-data-message {
    text-align: center;
    padding: 40px 24px;
    color: #6c757d;
    font-size: 14px;
    background: #f8f9fa;
}

.error-message {
    color: #dc3545;
    background: #f8d7da;
}

/* Chart containers */
#activity-details canvas {
    margin: 16px 0;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Responsive design for activity details */
@media (max-width: 768px) {
    .activity-summary {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 16px;
    }

    .summary-item {
        padding: 12px;
    }

    .summary-value {
        font-size: 16px;
    }

    #activity-details h1 {
        font-size: 18px;
        padding: 16px 20px;
    }
}

.cache-info {
    position: fixed;
    bottom: 10px;
    right: 10px;
    font-size: 12px;
    color: #666;
    background-color: rgba(255, 255, 255, 0.7);
    padding: 5px 10px;
    border-radius: 3px;
}

/* Load More Activities Button */
.load-more-container {
    text-align: center;
    margin: 20px 0;
    padding: 0 20px;
}

#load-more-btn {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: white;
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.2),
                0 0 15px rgba(108, 117, 125, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    min-width: 160px;
    position: relative;
}

#load-more-btn::before {
    content: '';
    position: absolute;
    top: -3px;
    left: -3px;
    right: -3px;
    bottom: -3px;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4, #feca57, #ff9ff3, #54a0ff);
    background-size: 400% 400%;
    border-radius: 11px;
    z-index: -1;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

#load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3),
                0 0 25px rgba(108, 117, 125, 0.4),
                0 0 35px rgba(108, 117, 125, 0.2);
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

#load-more-btn:hover::before {
    animation-duration: 1.5s;
    box-shadow: 0 0 30px rgba(255, 107, 107, 0.3);
}

#load-more-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(108, 117, 125, 0.2);
}

#load-more-btn:disabled {
    background: #e9ecef;
    color: #6c757d;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* RESPONSIVE */
@media (max-width: 1000px) { /* <- 3-2 hexagons per row */
    .running {
        width: 100%;
        height: 100%;
        left: 0%;
        top: 0%;
        transform: translate(0%, 0%);
        position: relative;
    }

    .auth-container {
        position: relative;
        top: 0;
        right: 0;
        text-align: center;
        margin: 10px 0;
    }

    /* Mobile styling for load more button */
    .load-more-container {
        margin: 15px 0;
        padding: 0 15px;
    }

    #load-more-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 140px;
        border-radius: 6px;
    }
}