/*
 * AutoCAD & PDF File Download Manager - Frontend Styles
 *
 * This file is enqueued by enqueue_frontend_assets() in autocad-pdf-manager.php
 * but was missing from the plugin package, so none of the elements below
 * (download buttons, file list, access notice) had any styling - they were
 * rendering as plain unstyled links/lists on top of the site's dark theme.
 *
 * Colors match the site's existing dark / cyan theme.
 */

:root {
    --apm-bg-dark: #0b0f19;
    --apm-bg-panel: rgba(255, 255, 255, 0.03);
    --apm-border: rgba(255, 255, 255, 0.15);
    --apm-accent: #22d3ee;
    --apm-accent-hover: #67e8f9;
    --apm-text: #e5e7eb;
    --apm-text-muted: #9ca3af;
}

/* ---------- Download Section (single drawing page) ---------- */

.apm-download-section {
    margin: 40px 0;
    padding: 24px;
    background: var(--apm-bg-panel);
    border: 1px solid var(--apm-border);
    border-radius: 10px;
}

.apm-download-section h3 {
    margin: 0 0 16px;
    color: #fff;
    font-family: "Courier New", Courier, monospace;
    letter-spacing: 0.5px;
    font-size: 18px;
}

.apm-file-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.apm-file-list li {
    display: flex;
    align-items: center;
}

a.button.apm-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--apm-accent);
    color: #0b0f19;
    font-weight: 700;
    font-size: 14px;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    border: none;
    transition: background 0.2s ease, transform 0.15s ease;
}

a.button.apm-download-btn:hover,
a.button.apm-download-btn:focus {
    background: var(--apm-accent-hover);
    transform: translateY(-1px);
    color: #0b0f19;
}

/* ---------- Access Notice (login required) ---------- */

.apm-access-notice {
    margin-top: 20px;
    padding: 14px 18px;
    background: var(--apm-bg-panel);
    border: 1px dashed var(--apm-border);
    border-radius: 8px;
    color: var(--apm-text);
    font-size: 14px;
}

.apm-access-notice a {
    color: var(--apm-accent);
    text-decoration: underline;
}

.apm-access-notice a:hover {
    color: var(--apm-accent-hover);
}

/* ---------- Intermediary Download / Countdown Page ---------- */

.apm-download-wrapper h1 {
    font-family: "Courier New", Courier, monospace;
    color: #fff;
}

.apm-timer-box {
    border-color: var(--apm-border) !important;
    background: var(--apm-bg-panel);
    border-radius: 10px;
}

.apm-timer-box #apm-timer,
.apm-timer-box #apm-countdown-display {
    color: #fff;
}

.apm-download-wrapper .button {
    display: inline-block;
    background: var(--apm-accent);
    color: #0b0f19;
    font-weight: 700;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.2s ease;
}

.apm-download-wrapper .button:hover {
    background: var(--apm-accent-hover);
}

.apm-ad-slot {
    min-height: 0;
}

.apm-ad-slot:empty {
    display: none;
}

.apm-related-drawings h3 {
    color: #fff;
    font-family: "Courier New", Courier, monospace;
}

.apm-related-drawings ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.apm-related-drawings a {
    color: var(--apm-accent);
    text-decoration: none;
}

.apm-related-drawings a:hover {
    text-decoration: underline;
    color: var(--apm-accent-hover);
}
