/* ═══════════════════════════════════════════════════
   WASTE WEB · danieltubau.com · v2.2
   ═══════════════════════════════════════════════════ */

.dp-wrap {
    display: flex;
    max-width: 1080px;
    margin: 36px auto;
    padding: 0 20px;
    gap: 28px;
    align-items: flex-start;
    font-family: Georgia, 'Times New Roman', serif;
}

/* ══════════════════════════════════════════════════
   SIDEBAR — claro, con bordes visibles
══════════════════════════════════════════════════ */
.dp-sidebar {
    width: 205px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
}

.dp-perfil {
    background: #faf7f2;
    border: 1px solid #d8cdb8;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e8d8c0;
    border: 2px solid #c8772a;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    overflow: hidden;
}

.dp-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.dp-perfil-nombre {
    font-size: 13px;
    font-weight: bold;
    font-family: sans-serif;
    color: #1a0e04;
}

.dp-perfil-sub {
    font-size: 10px;
    color: #8a6030;
    font-family: sans-serif;
    margin-top: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Buscador */
.dp-search {
    background: #faf7f2;
    border: 1px solid #d8cdb8;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-search input {
    border: none;
    outline: none;
    font-size: 12px;
    font-family: sans-serif;
    color: #2c1a08;
    width: 100%;
    background: transparent;
}

.dp-search input::placeholder { color: #b09060; }

/* Calendario */
.dp-cal {
    background: #faf7f2;
    border: 1px solid #d8cdb8;
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 10px;
}

.dp-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.dp-cal-header span {
    font-size: 12px;
    font-weight: bold;
    font-family: sans-serif;
    color: #2c1a08;
}

.dp-cal-nav {
    color: #b09060;
    font-size: 18px;
    text-decoration: none;
    padding: 0 4px;
    border-radius: 4px;
    line-height: 1;
    transition: color .12s;
    display: inline-block;
}

.dp-cal-nav:hover { color: #c8772a; }
.dp-cal-nav.disabled { opacity: .3; pointer-events: none; }

.dp-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    text-align: center;
}

.dp-day-name {
    font-size: 9px;
    color: #b09060;
    font-family: sans-serif;
    padding: 3px 0;
    text-transform: uppercase;
}

.dp-day {
    font-size: 11px;
    font-family: sans-serif;
    padding: 5px 2px;
    border-radius: 4px;
    color: #c0b090;
    display: block;
    text-decoration: none;
    position: relative;
    transition: background .1s;
}

.dp-day.dp-empty { visibility: hidden; }

a.dp-day { color: #6a5030; cursor: pointer; }
a.dp-day:hover { background: #ede3cc; }

.dp-day.dp-has-entry { color: #2c1a08; font-weight: bold; }
.dp-day.dp-has-entry::after {
    content: '';
    display: block;
    width: 3px;
    height: 3px;
    background: #c8772a;
    border-radius: 50%;
    margin: 1px auto 0;
}

.dp-day.dp-today {
    background: #c8772a !important;
    color: #fff !important;
    font-weight: bold;
}

.dp-day.dp-today::after { background: rgba(255,255,255,.5); }

/* Selector año */
.dp-year-nav {
    background: #faf7f2;
    border: 1px solid #d8cdb8;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.dp-year-nav label,
.dp-filter label {
    display: block;
    font-size: 9px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #8a6030;
    font-family: sans-serif;
    margin-bottom: 8px;
}

.dp-year-nav select {
    width: 100%;
    font-size: 12px;
    font-family: sans-serif;
    border: 1px solid #d8cdb8;
    border-radius: 5px;
    padding: 5px 8px;
    color: #2c1a08;
    background: #fff;
    cursor: pointer;
    outline: none;
}

.dp-year-nav select:focus { border-color: #c8772a; }

/* Filtros */
.dp-filter {
    background: #faf7f2;
    border: 1px solid #d8cdb8;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 10px;
}

.dp-f-btn {
    display: block;
    padding: 6px 10px;
    font-size: 12px;
    font-family: sans-serif;
    border-radius: 5px;
    color: #6a5030;
    text-decoration: none;
    margin-bottom: 2px;
    transition: background .12s, color .12s;
}

.dp-f-btn:hover { background: #ede3cc; color: #3a1a08; }
.dp-f-btn.active { background: #e8d0a0; color: #6a2808; font-weight: bold; border-left: 3px solid #c8772a; padding-left: 7px; }

/* ══════════════════════════════════════════════════
   MAIN
══════════════════════════════════════════════════ */
.dp-main { flex: 1; min-width: 0; }

.dp-main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #b09060;
    font-family: sans-serif;
    margin-bottom: 6px;
    padding-bottom: 10px;
    border-bottom: 2px solid #c8772a;
}

.dp-vacio {
    color: #a09070;
    font-family: sans-serif;
    font-size: 14px;
    padding: 40px 0;
    text-align: center;
}

.dp-month-group { margin-bottom: 8px; }

.dp-month-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #c8772a;
    font-family: sans-serif;
    font-weight: bold;
    margin: 20px 0 4px 62px;
}

/* Entrada */
.dp-entrada {
    display: flex;
    gap: 14px;
    padding: 14px 12px;
    border-bottom: 1px solid #e8e0d0;
    border-radius: 6px;
    align-items: flex-start;
    background: #faf7f2;
    margin-bottom: 2px;
    transition: background .12s;
}

.dp-entrada:hover { background: #f5f0e6; }

.dp-fecha {
    width: 48px;
    flex-shrink: 0;
    text-align: center;
    padding-top: 2px;
}

.dp-dia {
    font-size: 30px;
    font-weight: 700;
    color: #2c1a08;
    line-height: 1;
    font-family: sans-serif;
}

.dp-dow {
    font-size: 9px;
    text-transform: uppercase;
    color: #b09070;
    font-family: sans-serif;
    letter-spacing: 1px;
    margin-top: 3px;
}

.dp-body { flex: 1; min-width: 0; }

.dp-titulo {
    font-size: 19px;
    font-weight: bold;
    color: #1a0e04;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.dp-titulo a { text-decoration: none; color: inherit; }
.dp-titulo a:hover { color: #c8772a; }

.dp-extracto {
    font-size: 16px;
    color: #5a4a30;
    line-height: 1.7;
    margin: 0 0 10px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dp-badges {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.dp-circulo {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    flex-shrink: 0;
    cursor: default;
}

.dp-circulo-priv { background: #f0d8c0; }
.dp-circulo-pub  { background: #d0e8d0; }

.dp-badge {
    font-size: 8px;
    letter-spacing: .3px;
    text-transform: uppercase;
    padding: 1px 6px;
    border-radius: 8px;
    font-family: sans-serif;
}

.dp-badge-ww {
    background: #f0e8d0;
    color: #8a6030;
    border: 1px solid #d8c090;
}

.dp-badge-dil {
    background: #e8f0f8;
    color: #3a6090;
    border: 1px solid #b0c8e0;
}

.dp-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 7px;
    overflow: hidden;
    background: #e8e0d0;
    align-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c0b090;
    font-size: 22px;
}

.dp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dp-thumb-vacio { border: 1px dashed #d8cfc0; background: transparent; }

/* ══════════════════════════════════════════════════
   ENTRADA INDIVIDUAL
══════════════════════════════════════════════════ */
.dp-single-wrap { align-items: flex-start; }
.dp-single-main { flex: 1; min-width: 0; }

.dp-single-fecha-grande {
    display: flex;
    align-items: baseline;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #c8772a;
}

.dp-single-dia {
    font-size: 52px;
    font-weight: 700;
    color: #2c1a08;
    line-height: 1;
    font-family: sans-serif;
}

.dp-single-fecha-texto {
    font-size: 14px;
    color: #b09070;
    font-family: sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.dp-single-article {
    background: #faf7f2;
    border: 1px solid #d8cdb8;
    border-radius: 8px;
    padding: 28px 32px;
}

.dp-single-titulo {
    font-size: 26px;
    font-weight: bold;
    color: #1a0e04;
    margin: 0 0 14px 0;
    line-height: 1.25;
}

.dp-single-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dp-single-thumb { margin-bottom: 24px; border-radius: 8px; overflow: hidden; }
.dp-single-thumb img { width: 100%; height: auto; display: block; border-radius: 8px; }

.dp-single-content { font-size: 16px; line-height: 1.8; color: #2c1a08; }
.dp-single-content p { margin-bottom: 1.4em; }
.dp-single-content h2 { font-size: 20px; margin: 1.6em 0 .6em; color: #1a0e04; }
.dp-single-content h3 { font-size: 17px; margin: 1.4em 0 .5em; color: #1a0e04; }
.dp-single-content blockquote {
    border-left: 3px solid #c8772a;
    margin: 1.4em 0;
    padding: 8px 0 8px 20px;
    color: #6a5a40;
    font-style: italic;
}

.dp-single-nav { margin-top: 24px; }

.dp-volver { font-size: 13px; font-family: sans-serif; color: #c8772a; text-decoration: none; }
.dp-volver:hover { color: #a85010; text-decoration: underline; }

/* Responsive */
@media (max-width: 740px) {
    .dp-wrap { flex-direction: column; gap: 20px; }
    .dp-sidebar { width: 100%; position: static; }
    .dp-thumb { width: 56px; height: 56px; }
    .dp-dia { font-size: 22px; }
    .dp-single-dia { font-size: 38px; }
    .dp-single-article { padding: 20px 18px; }
}

/* Badge especial para entradas de Diletante */
.dp-badge-diletante {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: bold;
    font-family: sans-serif;
    background: #e8e0f0;
    color: #6040a0;
    border: 1px solid #c0a8e0;
    flex-shrink: 0;
}
