/**
 * Strava Sync Section Styles
 * Styles for Strava connection status and activity sync interface
 */

.vrc-strava-status-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.vrc-strava-connection-info {
    flex: 1;
    margin-top: 15px;
}

.vrc-strava-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vrc-strava-header > h4 {
    font-size: var(--vrc-font-size--m);
    margin: 0;
    display: inline;
    margin-right: auto;
}

.vrc-strava-header > .dashicons.dashicons-yes-alt {
    color: #46b450;
    margin-right: 8px;
}

/* Settings icon link styling */
.vrc-strava-header > a {
    color: var(--color-link);
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    padding: 4px;
}

.vrc-strava-header > a:hover {
    color: var(--color-link-hover);
}

.vrc-strava-header > a .dashicons {
    font-size: var(--vrc-font-size--l);
}

.vrc-strava-stats {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Sync button disabled state */
#vrc-manual-sync-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f0f0f0;
}

#vrc-manual-sync-btn:disabled:hover {
    background-color: #f0f0f0;
    border-color: grey;
}

#vrc-manual-sync-btn > .vrc-btn-text > .dashicons.dashicons-backup {
    font-size: var(--vrc-font-size--xs);
    margin-right: 4px;
    align-content: center;
}

#vrc-manual-sync-btn > .vrc-btn-loading > .dashicons.dashicons-update {
    font-size: var(--vrc-font-size--xs);
    margin-right: 4px;
    animation: spin 1s linear infinite;
}

/* Sync limit message */
.vrc-sync-limit-message {
    font-size: var(--vrc-font-size--xs);
    color: var(--color-text-light);
    margin: 8px 0 0 0;
    font-style: italic;
    padding-left: 25px;
}

.vrc-stat-item {
    display: flex;
    align-items: center;
    font-size: var(--vrc-font-size--s);
    color: #555;
}

/* Spinning animation for sync button */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .vrc-strava-status-card {
        flex-direction: column;
        gap: 15px;
    }

    .vrc-strava-stats {
        flex-direction: column;
        gap: 8px;
    }

    .vrc-stat-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}
