/* Days From Today – Frontend Styles */

/* ── Hero block ── */
.dft-hero {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8f4fd 100%);
    border: 1px solid #d0d8f0;
    border-radius: 12px;
    padding: 28px 24px;
    text-align: center;
    margin: 0 0 28px;
}
.dft-hero-dow {
    font-size: 14px;
    font-weight: 600;
    color: #6c63ff;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 6px;
}
.dft-hero-date {
    font-size: 32px;
    font-weight: 700;
    color: #1a1d2e;
    line-height: 1.2;
    margin-bottom: 10px;
}
.dft-hero-sub {
    font-size: 14px;
    color: #6b7280;
}

/* ── Formats table ── */
.dft-formats-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 24px;
    font-size: 14px;
}
.dft-formats-table th {
    background: #f8f9fc;
    color: #6b7280;
    text-align: left;
    padding: 10px 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #e5e7eb;
}
.dft-formats-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
    vertical-align: middle;
}
.dft-formats-table tr:last-child td { border-bottom: none; }
.dft-formats-table tr:hover td { background: #fafbff; }

/* ── Copy button ── */
.dft-copy {
    background: transparent;
    border: 1px solid #d1d5db;
    border-radius: 5px;
    padding: 4px 10px;
    font-size: 12px;
    color: #6b7280;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
}
.dft-copy:hover    { border-color: #6c63ff; color: #6c63ff; background: #f5f4ff; }
.dft-copy.dft-copied { border-color: #10b981; color: #10b981; background: #f0fdf4; }

/* ── Calculator widget ── */
.dft-calc-widget {
    background: #f8f9fc;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    margin: 12px 0 24px;
}
.dft-calc-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.dft-calc-input {
    width: 90px;
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    outline: none;
    transition: border-color .15s;
}
.dft-calc-input:focus { border-color: #6c63ff; }
.dft-calc-unit {
    padding: 9px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    outline: none;
}
.dft-calc-btn {
    padding: 9px 20px;
    background: #6c63ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}
.dft-calc-btn:hover { background: #5a53e0; }
.dft-calc-result {
    font-size: 15px;
    color: #374151;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    min-height: 44px;
    line-height: 1.5;
}
.dft-calc-result strong { color: #1a1d2e; }

/* ── Relative dates table ── */
.dft-relative-table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0 24px;
    font-size: 14px;
}
.dft-relative-table th {
    background: #f8f9fc;
    color: #6b7280;
    text-align: left;
    padding: 10px 14px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
    border-bottom: 1px solid #e5e7eb;
}
.dft-relative-table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
}
.dft-relative-table tr:hover td { background: #fafbff; }

/* ── Sibling links ── */
.dft-siblings {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 24px;
}
.dft-sibling-link {
    display: inline-block;
    background: #f8f9fc;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    color: #6c63ff;
    text-decoration: none;
    transition: all .15s;
}
.dft-sibling-link:hover {
    background: #f0f4ff;
    border-color: #6c63ff;
    text-decoration: none;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .dft-hero-date { font-size: 24px; }
    .dft-formats-table, .dft-relative-table { font-size: 13px; }
    .dft-formats-table th, .dft-formats-table td,
    .dft-relative-table th, .dft-relative-table td { padding: 8px 10px; }
    .dft-calc-row { gap: 8px; }
}
