/* ============================================================
   TAYLOR-GRAHAM LIBRARY  —  directory-list.css
   Ancillary stylesheet for directory listing pages only.
   Requires t-g-library.css to be loaded first.
   ============================================================ */


/* ── WRAPPER ──────────────────────────────────────────────── */

.dir-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    position: relative;
    z-index: 1;
}


/* ── BREADCRUMB ───────────────────────────────────────────── */

.breadcrumb {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 1rem;
    color: var(--brown);
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.breadcrumb a {
    color: var(--gold);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--brown-dark);
}

.breadcrumb .sep {
    color: var(--rule);
    margin: 0 0.2rem;
}

.breadcrumb .current {
    color: var(--brown-dark);
    font-style: normal;
}


/* ── SECTION TITLE ────────────────────────────────────────── */

.dir-title {
    font-family: 'Cinzel', serif;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.dir-title::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--rule), transparent);
}


/* ── FILE LISTING TABLE ───────────────────────────────────── */

.dir-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--warm-white, #FDFAF4);
    border: 1px solid var(--rule-soft);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(58, 46, 30, 0.10);
}

.dir-table thead tr {
    background: linear-gradient(90deg, var(--olive-light), var(--cream));
    border-bottom: 1px solid var(--rule-soft);
}

.dir-table thead th {
    font-family: 'Cinzel', serif;
    font-size: 10px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--sage-mid);
    padding: 0.8rem 1.2rem;
    text-align: left;
    font-weight: 600;
}

.dir-table thead th.col-size,
.dir-table tbody td.col-size {
    text-align: right;
}

.dir-table tbody tr {
    border-bottom: 1px solid var(--rule-soft);
    transition: background 0.15s;
    animation: fadeUp 0.3s ease both;
}

.dir-table tbody tr:last-child {
    border-bottom: none;
}

.dir-table tbody tr:hover {
    background: var(--sage-pale);
}

.dir-table tbody td {
    padding: 0.7rem 1.2rem;
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 1.05rem;
    color: var(--ink);
    vertical-align: middle;
}

.dir-table td a {
    color: var(--brown-dark);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: color 0.2s;
}

.dir-table td a:hover {
    color: var(--gold-dark);
}

.file-icon {
    font-size: 1rem;
    flex-shrink: 0;
    opacity: 0.75;
}

.col-date {
    font-style: italic;
    color: var(--brown);
    font-size: 0.9rem;
    white-space: nowrap;
}

.col-size {
    font-style: italic;
    color: var(--brown);
    font-size: 0.9rem;
    white-space: nowrap;
}

/* Parent directory row */
.row-parent td a {
    color: var(--olive);
    font-style: italic;
}


/* ── ERROR STATE ──────────────────────────────────────────── */

.dir-error {
    background: var(--cream);
    border: 1px solid var(--rule-soft);
    border-radius: 4px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(58, 46, 30, 0.10);
}

.dir-error p {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    color: var(--brown);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.dir-error code {
    font-family: monospace;
    font-size: 0.85rem;
    color: var(--brown-dark);
    background: var(--sage-pale);
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}


/* ── ANIMATION ────────────────────────────────────────────── */

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0);   }
}


/* ── MOBILE ───────────────────────────────────────────────── */

@media (max-width: 600px) {
    .dir-wrap {
        padding: 1.5rem 1rem;
    }
    .col-date,
    .col-size {
        display: none;
    }
    .dir-table thead th.col-date,
    .dir-table thead th.col-size {
        display: none;
    }
}
