/* ==========================================================================
   DICA DO TREINADOR - EXCLUSIVE PREMIUM STYLES
   ========================================================================== */

/* Layout & Root Vars */
.dt-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Coach Layout */
.dt-coach-container {
    max-width: 1200px;
}

/* Header Premium */
.dt-header {
    background: linear-gradient(135deg, rgba(26,86,219,0.08) 0%, rgba(201,168,76,0.05) 100%);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
}

.dt-header::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), var(--brand-gold), var(--brand-primary));
}

.dt-header-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, var(--brand-primary), #2563EB);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(26,86,219,0.3);
    flex-shrink: 0;
}

.dt-header-icon i {
    width: 28px;
    height: 28px;
}

.dt-header-content {
    flex: 1;
}

.dt-header-title {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.5px;
}

.dt-header-sub {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    max-width: 600px;
}

/* Section Title */
.dt-section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.dt-section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--border-medium), transparent);
}

/* ================== DIRETOS DO TREINADOR (PUBLICATIONS) ================== */

.dt-pubs-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dt-pub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.dt-pub-card:hover {
    border-color: var(--brand-medium);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 20px rgba(26,86,219,0.05);
}

.dt-pub-important {
    border-left: 4px solid var(--danger);
}
.dt-pub-important:hover {
    border-color: var(--danger);
    box-shadow: var(--shadow-md), 0 0 20px rgba(248,113,113,0.1);
}

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

.dt-pub-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.dt-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dt-badge-new {
    background: var(--brand-gold-muted);
    color: var(--brand-gold);
    border: 1px solid rgba(201,168,76,0.3);
    animation: dtPulseGold 2s infinite;
}

.dt-badge-important {
    background: var(--danger-bg);
    color: var(--danger);
    border: 1px solid rgba(248,113,113,0.3);
}

@keyframes dtPulseGold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(201,168,76,0.2); }
    50% { box-shadow: 0 0 0 4px rgba(201,168,76,0); }
}

.dt-pub-date {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.dt-pub-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
}

.dt-pub-content {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
    white-space: pre-wrap;
}

.dt-pub-media {
    margin-top: 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-base);
    max-height: 400px;
}

.dt-pub-media img, .dt-pub-media video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: cover;
    display: block;
}

/* ================== BIBLIOTECA DE CONHECIMENTO ================== */

.dt-controls {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

/* Busca */
.dt-search {
    position: relative;
    width: 100%;
}
.dt-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    width: 18px; height: 18px;
}
.dt-search input {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: 24px;
    padding: 12px 16px 12px 40px;
    color: var(--text-primary);
    font-size: 14px;
    font-family: var(--font-sans);
    transition: all 0.2s;
    box-shadow: var(--shadow-sm);
}
.dt-search input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(26,86,219,0.15);
}

/* Categorias */
.dt-categories {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.dt-categories::-webkit-scrollbar { display: none; }

.dt-cat-chip {
    padding: 8px 16px;
    background: var(--bg-base);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}
.dt-cat-chip:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
    border-color: var(--border-medium);
}
.dt-cat-chip.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(26,86,219,0.3);
}

/* Grid de Artigos */
.dt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Card Artigo */
.dt-art-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: var(--shadow-sm);
}
.dt-art-card:hover {
    border-color: var(--brand-medium);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md), 0 10px 30px rgba(0,0,0,0.15);
}

/* Capa do Artigo */
.dt-art-cover {
    height: 140px;
    background: var(--bg-base);
    position: relative;
    overflow: hidden;
}
.dt-art-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}
.dt-art-card:hover .dt-art-cover img {
    transform: scale(1.05);
}
.dt-art-cover-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(26,86,219,0.1) 0%, rgba(26,86,219,0.02) 100%);
    color: var(--brand-primary);
    opacity: 0.5;
}
.dt-art-cover-fallback i {
    width: 40px; height: 40px;
}

/* Tipo de Mídia (Icon overlay) */
.dt-art-type {
    position: absolute;
    top: 10px; right: 10px;
    width: 28px; height: 28px;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.dt-art-type i { width: 14px; height: 14px; }

/* Corpo do Artigo */
.dt-art-body {
    padding: 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dt-art-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--brand-medium);
    margin-bottom: 6px;
}

.dt-art-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dt-art-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.dt-art-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid var(--border-subtle);
    font-size: 11px;
    color: var(--text-muted);
}
.dt-art-reading {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Destaques (Essencial / Semanal) */
.dt-art-card.is-essential {
    border-color: var(--brand-gold-muted);
    box-shadow: 0 0 15px rgba(201,168,76,0.05);
}
.dt-art-card.is-essential .dt-art-cat { color: var(--brand-gold); }
.dt-art-wrapper { position: relative; }
.dt-art-badge-overlay {
    position: absolute;
    top: -8px; left: 16px;
    background: linear-gradient(135deg, var(--brand-gold), #B8942E);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    box-shadow: var(--shadow-sm);
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.dt-art-badge-weekly {
    background: linear-gradient(135deg, var(--brand-primary), #2563EB);
}

/* ================== COACH ADMIN STYLES ================== */

.dt-admin-tabs {
    display: flex;
    background: var(--bg-card);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    padding: 4px;
    width: fit-content;
    margin-bottom: 24px;
}
.dt-admin-tab {
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    border: none;
    background: transparent;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
}
.dt-admin-tab:hover {
    color: var(--text-primary);
}
.dt-admin-tab.active {
    background: var(--bg-active);
    color: var(--brand-medium);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

/* Tabelas Admin */
.dt-table-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.dt-table {
    width: 100%;
    border-collapse: collapse;
}

.dt-table th {
    background: var(--bg-elevated);
    padding: 14px 16px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border-medium);
}

.dt-table td {
    padding: 16px;
    font-size: 13px;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    vertical-align: middle;
}

.dt-table tr:hover td {
    background: var(--bg-hover);
}

.dt-table tr:last-child td {
    border-bottom: none;
}

.dt-status-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.dt-status-pub {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid rgba(74,222,128,0.2);
}
.dt-status-draft {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid rgba(252,211,77,0.2);
}

.dt-actions {
    display: flex;
    gap: 8px;
}
.dt-btn-icon {
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-subtle);
    background: var(--bg-base);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.dt-btn-icon:hover {
    color: var(--brand-medium);
    border-color: var(--brand-medium);
    background: var(--bg-hover);
}
.dt-btn-icon.danger:hover {
    color: var(--danger);
    border-color: var(--danger);
    background: var(--danger-bg);
}

/* ================== DRAWER / LEITURA ================== */

.dt-reader-header {
    margin-bottom: 24px;
}
.dt-reader-cat {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(26,86,219,0.1);
    color: var(--brand-medium);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}
.dt-reader-title {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 16px;
}
.dt-reader-meta {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}
.dt-reader-media {
    width: 100%;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 32px;
    background: #000;
}
.dt-reader-media img, .dt-reader-media video {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
}
.dt-reader-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    white-space: pre-wrap;
}
.dt-reader-content p {
    margin-bottom: 16px;
}
.dt-reader-content h3 {
    color: var(--text-primary);
    font-size: 18px;
    margin: 32px 0 16px;
    font-weight: 700;
}

/* Empty State */
.dt-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-lg);
}
.dt-empty i {
    width: 48px; height: 48px;
    color: var(--border-medium);
    margin-bottom: 16px;
}
.dt-empty h3 {
    font-size: 16px;
    color: var(--text-primary);
    margin-bottom: 8px;
}
.dt-empty p {
    font-size: 13px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .dt-container { gap: 20px; padding-bottom: 80px; }
    .dt-header {
        padding: 20px 16px;
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 12px;
    }
    .dt-header-icon { width: 44px; height: 44px; border-radius: 12px; }
    .dt-header-icon i { width: 22px; height: 22px; }
    .dt-header-title { font-size: 20px; }
    .dt-header-sub { font-size: 13px; }

    .dt-pub-card { padding: 16px; border-radius: 16px; }
    .dt-pub-title { font-size: 16px; }
    .dt-pub-content { font-size: 13px; margin-bottom: 12px; }

    .dt-controls { gap: 10px; margin-bottom: 16px; }
    .dt-grid { grid-template-columns: 1fr; gap: 16px; }
    .dt-art-card { border-radius: 16px; }
    .dt-art-cover { height: 120px; }
    .dt-art-body { padding: 12px; }
    .dt-art-title { font-size: 14px; }

    .dt-table-wrapper { overflow-x: auto; margin: 0 -16px; border-radius: 0; border-left: none; border-right: none; }
    .dt-admin-tabs { width: 100%; gap: 4px; padding: 4px; }
    .dt-admin-tab { flex: 1; padding: 10px 4px; text-align: center; font-size: 12px; }

    .dt-reader-title { font-size: 20px; margin-bottom: 12px; }
    .dt-reader-media { margin-bottom: 20px; }
    .dt-reader-content { font-size: 14px; }
}
