/* Photo-Manuals.com — Custom styles (Pico CSS base) */

:root {
    --pm-accent: #1a73e8;
    --pm-accent-hover: #1557b0;
    --pm-bg-subtle: #f8f9fa;
    --pm-border: #e1e4e8;
    --pm-text-muted: #6c757d;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: 0.5rem 1rem;
    background: var(--pico-primary);
    color: var(--pico-primary-inverse);
    z-index: 100;
    text-decoration: none;
}

.skip-link:focus {
    top: 0;
}

/* Header with logo */
header.container nav {
    padding: 0.75rem 0;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.site-logo img {
    height: 40px;
    width: auto;
}

.site-logo strong {
    font-size: 1.25rem;
    color: var(--pico-color);
}

/* Breadcrumb navigation */
.breadcrumb {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    margin: 0 0 1.5rem 0;
    gap: 0;
    background: var(--pm-bg-subtle);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.breadcrumb li {
    display: inline;
    color: var(--pm-text-muted);
}

.breadcrumb li + li::before {
    content: "›";
    padding: 0 0.5rem;
    color: var(--pm-text-muted);
}

.breadcrumb li:last-child {
    color: var(--pico-color);
    font-weight: 500;
}

/* Page intro styling */
.page-intro {
    font-size: 1.125rem;
    color: var(--pm-text-muted);
    margin-bottom: 2rem;
}

/* Manufacturer grid — card style */
.manufacturer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.manufacturer-grid a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: #fff;
    border: 1px solid var(--pm-border);
    border-radius: 0.5rem;
    text-decoration: none;
    color: var(--pico-color);
    font-weight: 500;
    transition: all 0.15s ease;
}

.manufacturer-grid a:hover {
    border-color: var(--pm-accent);
    background: var(--pm-bg-subtle);
    color: var(--pm-accent);
}

.manufacturer-grid .count {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--pm-text-muted);
    background: var(--pm-bg-subtle);
    padding: 0.25rem 0.5rem;
    border-radius: 1rem;
}

.manufacturer-grid a:hover .count {
    background: #e8f0fe;
    color: var(--pm-accent);
}

/* Type list on manufacturer page */
.type-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.type-list li {
    margin: 0;
    border-bottom: 1px solid var(--pm-border);
}

.type-list li:first-child {
    border-top: 1px solid var(--pm-border);
}

.type-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0.5rem;
    text-decoration: none;
    color: var(--pico-color);
    transition: background 0.15s ease;
}

.type-list a:hover {
    background: var(--pm-bg-subtle);
    padding-left: 1rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
    padding-right: 1rem;
}

.type-list .count {
    font-size: 0.875rem;
    color: var(--pm-text-muted);
}

/* Model list on category page */
.model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.model-grid a {
    padding: 0.625rem 0.75rem;
    background: var(--pm-bg-subtle);
    border-radius: 0.375rem;
    text-decoration: none;
    color: var(--pico-color);
    font-size: 0.9375rem;
    transition: all 0.15s ease;
}

.model-grid a:hover {
    background: var(--pm-accent);
    color: #fff;
}

/* Summary table styling */
.summary-table {
    width: auto;
    margin: 1.5rem 0;
}

.summary-table th {
    width: 100px;
    font-weight: 500;
    color: var(--pm-text-muted);
    text-align: left;
    padding: 0.5rem 1rem 0.5rem 0;
    border: none;
    background: none;
}

.summary-table td {
    padding: 0.5rem 0;
    border: none;
    background: none;
}

/* Model detail page — side-by-side layout */
.model-detail {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.model-info {
    flex: 1;
    min-width: 0;
}

.model-info .summary-table {
    margin-top: 0;
}

.model-image {
    flex-shrink: 0;
    max-width: 250px;
    margin: 0;
}

.model-image img {
    width: 100%;
    height: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--pm-border);
}

/* Stack on mobile */
@media (max-width: 600px) {
    .model-detail {
        flex-direction: column-reverse;
    }

    .model-image {
        max-width: 200px;
    }
}

/* Download button */
.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1.5rem 0;
    padding: 0.875rem 1.5rem;
    background: var(--pm-accent);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: background 0.15s ease;
}

.download-btn:hover {
    background: var(--pm-accent-hover);
    color: #fff;
}

.download-btn::before {
    content: "↓";
    font-size: 1.125rem;
}

/* About section */
.about-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--pm-border);
}

.about-section h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.about-section p {
    color: var(--pm-text-muted);
    line-height: 1.7;
}

.about-section .source-link {
    font-size: 0.875rem;
}

/* Footer */
footer.container {
    margin-top: 4rem;
}

footer hr {
    margin-bottom: 1.5rem;
}

footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

footer nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

footer nav ul small {
    color: var(--pm-text-muted);
}

footer nav ul a {
    color: var(--pm-text-muted);
    text-decoration: none;
}

footer nav ul a:hover {
    color: var(--pm-accent);
}

/* Homepage hero */
.hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.hero .tagline {
    font-size: 1.25rem;
    color: var(--pm-text-muted);
    margin-bottom: 2rem;
}

.hero .stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin: 2rem 0;
}

.hero .stat {
    text-align: center;
}

.hero .stat-value {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--pm-accent);
}

.hero .stat-label {
    font-size: 0.875rem;
    color: var(--pm-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero .cta {
    margin-top: 2rem;
}

.hero .cta a {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: var(--pm-accent);
    color: #fff;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease;
}

.hero .cta a:hover {
    background: var(--pm-accent-hover);
}
