/* CSS centralizado do plugin Desafio Flexões */

/* ==================================================
   CSS de acompanhamento.php e acompanhamento-agachamento.php
================================================== */
.df-app {
    max-width: 420px;
    margin: 0 auto;
    color: #ffffff;
    text-align: center;
}

.df-cta,
.df-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
}

.df-btn,
.df-btn:link,
.df-btn:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 220px;
    height: 48px;
    padding: 0 16px;
    white-space: nowrap;
    font-size: 15px;
    font-weight: 600;
    border-radius: 10px;
    text-decoration: none;
    box-sizing: border-box;
}

.df-btn.primary {
    background: #1E88E5;
    color: #ffffff;
    border: none;
}

.df-btn.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255,255,255,0.7);
}

#df-form {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
}

#df-form input {
    width: 140px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #0D192C;
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.4);
    font-size: 14px;
}
.df-btn-small {
    width: 140px;
    height: 40px;
    padding: 0 16px;
    font-size: 14px;
}

.df-tip {
    margin-top: 10px;
    font-size: 13px;
    opacity: 0.75;
}

.df-tip strong {
    color: #F2A01F;
    font-weight: 600;
}

.df-toast {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,136,229,0.95);
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 9999;
}

.df-toast.show {
    opacity: 1;
}

.df-status {
    margin-top: 20px;
}

.df-status p {
    margin: 6px 0;
}

.df-semanas {
    margin-top: 16px;
    text-align: center;
}

.df-semana-item {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
}

.df-semana-item span {
    text-align: left;
    max-width: 420px;
    line-height: 1.4;
}

.df-semana-item strong {
    font-weight: 600;
}

.df-bullet {
    color: #F2A01F;
    font-size: 18px;
    margin-right: 6px;
}

.df-meta {
    color: #F2A01F;
    font-weight: 700;
}

.df-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.12);
    margin: 6px auto;
}

.df-btn.nav {
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 18px;
    border-radius: 50%;
}

.df-meta-card {
    margin: 16px auto 20px;
    padding: 16px 12px;
    border-radius: 14px;
    background: linear-gradient(
        180deg,
        rgba(30,136,229,0.18),
        rgba(30,136,229,0.05)
    );
    border: 1px solid rgba(255,255,255,0.15);
}

.df-meta-card .df-meta-numero {
    display: block;
    font-size: 34px;
    font-weight: 800;
    color: #F2A01F;
    line-height: 1.1;
}

.df-meta-card .df-meta-texto {
    font-size: 15px;
}

.df-meta-card .df-meta-dia {
    margin-top: 6px;
    font-size: 14px;
    opacity: 0.85;
}

.df-meta-principal {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
}

.df-progresso {
    margin-top: 12px;
}

.df-progresso-barra {
    width: 100%;
    height: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 6px;
    overflow: hidden;
}

.df-feedback {
    margin-top: 10px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
}

.df-feedback-success {
    font-weight: 700;
    color: #F2A01F;
}

.df-progresso-preenchido {
    height: 100%;
    background: linear-gradient(90deg, #F2A01F, #FFD27A);
}

.df-progresso-texto {
    margin-top: 6px;
    font-size: 13px;
    opacity: 0.85;
}

.df-sharing .df-share-action {
    display: none !important;
}

.df-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(13, 25, 44, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.df-popup {
    background: #0D192C;
    border-radius: 16px;
    padding: 20px 18px;
    max-width: 360px;
    width: 90%;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
}

.df-popup h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
}

.df-popup p {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 16px;
    color: rgba(255,255,255,0.85);
}

.df-popup-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.df-popup-actions .df-btn {
    min-width: 140px;
}

/* ==================================================
   CSS de resumo.php
================================================== */
.df-share-card {
    position: relative;
    padding: 18px;
    border-radius: 18px;
    background: linear-gradient(
        180deg,
        rgba(30,136,229,0.18),
        rgba(13,25,44,0.95)
    );
    border: 1px solid rgba(255,255,255,0.15);
    color: #ffffff;
}

.df-resumo-header {
    margin-bottom: 18px;
}

.df-resumo-nav {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
}

.df-nav-slot {
    display: flex;
    justify-content: center;
}

.df-resumo-titulo {
    text-align: center;
}

.df-resumo-titulo h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.df-resumo-titulo p {
    margin-top: 6px;
    font-size: 14px;
    opacity: 0.85;
}

.df-resumo-metricas {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.df-resumo-card {
    background: rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
}

.df-resumo-card strong {
    display: block;
    font-size: 24px;
    font-weight: 700;
    color: #F2A01F;
}

.df-resumo-card span {
    font-size: 13px;
    opacity: 0.85;
}

.df-share-card h3 {
    margin: 12px 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.df-share-fab {
    position: absolute;
    bottom: 14px;
    right: 14px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #1E88E5;
    color: #ffffff;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

.df-share-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 8px;
}

.df-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(30,136,229,0.15);
    color: #ffffff;
    border: 1px solid rgba(30,136,229,0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

.df-share-icon {
    font-size: 18px;
    line-height: 1;
}

.df-share-text {
    font-size: 14px;
}

.df-share-btn:hover {
    background: rgba(30,136,229,0.25);
}

/* ==================================================
   CSS para a Home Page (home.php)
================================================== */
.df-app .home-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 0 10px; /* Adiciona um respiro lateral */
}

.df-app .home-header h2 {
    font-size: 22px;
    margin: 0;
    text-align: left;
    flex-grow: 1;
}

.news-updates {
    background: linear-gradient(
        180deg,
        rgba(30,136,229,0.18),
        rgba(13,25,44,0.95)
    );
    border: 1px solid rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 18px;
    margin-bottom: 20px;
}

.challenges-list {
    display: flex; /* Alterado de grid para flex */
    flex-direction: column; /* Organiza em coluna */
    gap: 15px;
    margin-bottom: 20px;
}

.challenge-card {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.7);
    padding: 16px;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    transition: background-color 0.3s;
    display: flex; /* Adicionado para alinhar ícone e texto */
    align-items: center;
    gap: 15px;
    box-sizing: border-box;
}

.challenge-card:hover {
    background: rgba(30,136,229,0.25);
}

.challenge-card h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
}

.challenge-icon-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
}

/* Estilos para usuários não logados */
.challenges-preview {
    margin-top: 20px;
    padding: 0 10px;
}
.btn-login {
    padding: 6px 12px;
    background-color: #1E88E5;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    white-space: nowrap;
}
.challenges-list-preview {
    display: flex;
    flex-direction: column; /* Alterado para coluna */
    gap: 15px;
    margin-top: 15px;
}

.challenge-card-preview {
    background: rgba(255,255,255,0.1);
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.challenge-card-preview h4 {
    margin: 0;
    font-size: 16px;
}


/* ==================================================
   CSS para o Carrossel de Notícias
================================================== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 100%; /* Alterado para ocupar a largura do container */
    margin: auto;
    overflow: hidden;
    border-radius: 10px;
}

.carousel-slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 250px; /* Ajuste a altura conforme necessário */
    background-size: cover;
    background-position: center;
    display: none; /* JS vai controlar a exibição */
}

.carousel-prev,
.carousel-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%); /* Centraliza verticalmente */
    width: auto;
    padding: 12px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.4);
    border: none;
    border-radius: 50%;
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-prev {
    left: 8px;
    right: auto;
}

.carousel-next {
    right: 8px;
    left: auto;
}

.carousel-prev:hover,
.carousel-next:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
