/**
 * Styles pour la partie publique
 *
 * @package Bussy_Running_Training
 */

/* Entraînement du jour */
.brt-training-today {
    background: #ffffff;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brt-training-header {
    margin-bottom: 20px;
}

.brt-training-title {
    margin: 0 0 12px 0;
    font-size: 28px;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.brt-training-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: #50575e;
    font-size: 14px;
}

.brt-training-meta > span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.brt-training-meta .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

/* Badges */
.brt-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    white-space: nowrap;
}

.brt-badge-today {
    background: #00a32a;
    color: #fff;
}

.brt-badge-upcoming {
    background: #2271b1;
    color: #fff;
}

.brt-badge-vma {
    background: #2271b1;
    color: #fff;
}

.brt-badge-running {
    background: #4ab866;
    color: #fff;
}

.brt-badge-strength {
    background: #d63638;
    color: #fff;
}

.brt-badge-ppg {
    background: #f0b849;
    color: #000;
}

.brt-badge-long_run {
    background: #72aee6;
    color: #fff;
}

.brt-badge-other {
    background: #787c82;
    color: #fff;
}

/* Saisie VMA */
.brt-vma-input-section {
    background: #f0f6fc;
    border: 1px solid #c3e3fc;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 20px;
}

.brt-vma-input-section label {
    display: block;
    margin-bottom: 8px;
    color: #1d2327;
}

.brt-vma-input {
    width: 80px;
    padding: 6px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 16px;
    margin-right: 8px;
}

.brt-vma-input-section .description {
    margin-top: 8px;
    color: #50575e;
    font-size: 13px;
}

/* Sections de l'entraînement */
.brt-training-content {
    margin-top: 24px;
}

.brt-training-section {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid #dcdcde;
}

.brt-training-section:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.brt-training-section h3 {
    margin: 0 0 12px 0;
    font-size: 18px;
    color: #1d2327;
}

.brt-training-section p {
    margin: 8px 0;
    line-height: 1.6;
}

/* Exercices */
.brt-exercise {
    background: #f6f7f7;
    border-left: 4px solid #2271b1;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}

.brt-exercise:last-child {
    margin-bottom: 0;
}

.brt-exercise h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #1d2327;
}

.brt-exercise-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brt-exercise-reps {
    margin: 0;
    font-size: 18px;
    color: #2271b1;
}

.brt-exercise-sets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.brt-set {
    background: #fff;
    border: 1px solid #c3e3fc;
    padding: 6px 12px;
    border-radius: 4px;
    font-weight: 600;
}

.brt-calculated {
    color: #2271b1;
    font-weight: normal;
    margin-left: 4px;
}

.brt-exercise-vma {
    margin: 0;
}

.brt-exercise-rest {
    margin: 0;
    color: #50575e;
    font-size: 14px;
}

.brt-exercise-rest .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.brt-exercise-notes {
    margin: 8px 0 0 0;
    color: #50575e;
    font-size: 14px;
    font-style: italic;
}

/* Export */
.brt-export-section {
    background: #f6f7f7;
    border-radius: 6px;
    padding: 20px;
    margin-top: 24px;
}

.brt-export-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
}

.brt-export-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Boutons */
.brt-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
}

.brt-button:hover {
    background: #135e96;
    color: #fff;
}

.brt-button-primary {
    background: #2271b1;
}

.brt-button-primary:hover {
    background: #135e96;
}

.brt-button .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.brt-pdf-button {
    background: #d63638;
}

.brt-pdf-button:hover {
    background: #c82333;
}

/* Liste des entraînements */
.brt-trainings-list {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
}

.brt-filter-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dcdcde;
}

.brt-filter-section label {
    margin-right: 8px;
    font-weight: 600;
}

.brt-filter-select {
    padding: 6px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

.brt-training-item {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 16px;
    margin-bottom: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.brt-training-item:hover {
    border-color: #2271b1;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brt-training-item.brt-training-today {
    background: #f0f6fc;
    border-color: #2271b1;
}

.brt-training-item.brt-training-past {
    opacity: 0.7;
}

.brt-training-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.brt-training-item-title {
    margin: 0;
    font-size: 20px;
    color: #1d2327;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.brt-view-training {
    padding: 6px 12px;
    background: transparent;
    color: #2271b1;
    border: 1px solid #2271b1;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.brt-view-training:hover {
    background: #2271b1;
    color: #fff;
}

.brt-training-item-meta {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 14px;
    color: #50575e;
}

.brt-training-item-meta > span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.brt-training-item-summary {
    font-size: 14px;
    color: #50575e;
}

.brt-no-training,
.brt-no-trainings {
    text-align: center;
    padding: 40px 20px;
    color: #50575e;
}

/* Tooltips Glossaire */
.brt-tooltip-wrapper {
    position: relative;
    display: inline;
}

.brt-tooltip-trigger {
    cursor: help;
    border-bottom: 1px dotted #2271b1;
    color: #2271b1;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: all 0.2s;
}

.brt-tooltip-trigger:hover {
    color: #135e96;
    border-bottom-style: solid;
}

.brt-help-icon {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

.brt-tooltip-content {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: #1d2327;
    color: #fff;
    padding: 12px 16px;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    min-width: 280px;
    max-width: 400px;
    text-align: left;
    font-size: 13px;
    line-height: 1.5;
}

.brt-tooltip-content::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1d2327;
}

.brt-tooltip-trigger:hover + .brt-tooltip-content,
.brt-tooltip-trigger:focus + .brt-tooltip-content,
.brt-tooltip-content:hover {
    display: block;
}

.brt-tooltip-title {
    display: block;
    font-size: 14px;
    margin-bottom: 6px;
    color: #72aee6;
}

.brt-tooltip-definition {
    margin: 0 0 8px 0;
}

.brt-tooltip-example,
.brt-tooltip-benefits,
.brt-tooltip-measure {
    margin: 6px 0 0 0;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
}

.brt-tooltip-example em,
.brt-tooltip-benefits em,
.brt-tooltip-measure em {
    color: #f0b849;
    font-style: normal;
    font-weight: 600;
}

/* Guide d'aide montres */
.brt-export-section h3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.brt-help-toggle {
    background: #f0f6fc;
    border: 1px solid #2271b1;
    color: #2271b1;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.brt-help-toggle:hover {
    background: #2271b1;
    color: #fff;
}

.brt-help-toggle .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.brt-watch-help {
    background: #f6f7f7;
    border: 2px solid #2271b1;
    border-radius: 8px;
    padding: 20px;
    margin: 16px 0;
}

.brt-watch-help h4 {
    margin: 0 0 16px 0;
    color: #1d2327;
    font-size: 18px;
}

.brt-watch-guides {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
    margin-bottom: 16px;
}

.brt-watch-guide {
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 16px;
}

.brt-watch-guide h5 {
    margin: 0 0 12px 0;
    color: #2271b1;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.brt-watch-guide h5 .dashicons {
    color: #2271b1;
}

.brt-guide-note {
    font-size: 13px;
    color: #50575e;
    background: #f0f6fc;
    padding: 8px 12px;
    border-left: 3px solid #2271b1;
    border-radius: 4px;
    margin: 0 0 12px 0;
}

.brt-guide-steps {
    margin: 12px 0;
    padding-left: 20px;
}

.brt-guide-steps li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.brt-guide-video {
    margin: 12px 0 0 0;
}

.brt-guide-video a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #2271b1;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.brt-guide-video a:hover {
    color: #135e96;
    text-decoration: underline;
}

.brt-guide-video .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Responsive */
@media screen and (max-width: 782px) {
    .brt-training-title {
        font-size: 22px;
    }

    .brt-training-meta {
        flex-direction: column;
        gap: 8px;
    }

    .brt-export-buttons {
        flex-direction: column;
    }

    .brt-export-button {
        width: 100%;
        justify-content: center;
    }

    .brt-training-item-header {
        flex-direction: column;
        gap: 12px;
    }

    .brt-view-training {
        width: 100%;
    }
}
