/*
Modern skin for PHP Gallery CMS.

Select this file from Admin -> Theme -> Custom CSS skin. The app copies it to
public/assets/custom.css and loads it after the built-in stylesheet.
*/

:root {
    --accent: #2563eb;
    --accent-dark: #1e3a8a;
    --paper: #f6f8fb;
    --panel: #ffffff;
    --gallery-panel: #ffffff;
    --line: #d9e2ef;
    --ink: #111827;
    --muted: #64748b;
    --field: #ffffff;
    --radius: 10px;
    --font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background: #f6f8fb;
    color: var(--ink);
}

a {
    color: #1d4ed8;
}

.site-header,
.site-main,
.site-footer {
    width: min(1320px, calc(100% - 2rem));
}

.site-header {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.brand {
    color: #0f172a;
    font-size: clamp(1.45rem, 3vw, 2.4rem);
    font-weight: 800;
    letter-spacing: 0;
}

.nav {
    gap: 0.5rem;
}

.nav a,
.button,
button,
input[type="submit"] {
    border: 1px solid #2563eb;
    background: #2563eb;
    color: #ffffff;
    border-radius: 8px;
    padding: 0.48rem 0.78rem;
    font-weight: 700;
    box-shadow: none;
}

.nav a:hover,
.button:hover,
button:hover,
input[type="submit"]:hover {
    border-color: #1d4ed8;
    background: #1d4ed8;
}

.button.secondary,
button.secondary {
    border-color: #cbd5e1;
    background: #ffffff;
    color: #1e3a8a;
}

.hero,
.panel,
.gallery-card,
.image-card {
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
    border-radius: 10px;
}

.hero {
    background: #ffffff;
}

.hero h1 {
    letter-spacing: 0;
}

.grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.1rem;
}

.gallery-card,
.image-card {
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.gallery-card:hover,
.gallery-card:focus-within,
.image-card:hover,
.image-card:focus-within {
    transform: translateY(-2px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 22px 65px rgba(15, 23, 42, 0.13);
}

.gallery-card-link {
    background: #ffffff;
}

.gallery-card img,
.gallery-collage,
.public-page .gallery-card img,
.public-page .gallery-collage {
    height: 14rem;
}

.gallery-card img,
.gallery-collage img,
.image-card img {
    filter: saturate(1.04) contrast(1.02);
}

.gallery-card-body,
.image-meta {
    padding: 0.95rem;
}

.gallery-card-body h2,
.image-meta h2 {
    color: #0f172a;
    font-weight: 800;
}

.tag {
    border-color: #bfdbfe;
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    font-weight: 700;
}

.tag:hover,
.tag:focus {
    border-color: #2563eb;
    background: #dbeafe;
}

input,
textarea,
select {
    border-color: #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
}

input:focus,
textarea:focus,
select:focus {
    border-color: #2563eb;
    outline: 3px solid rgba(37, 99, 235, 0.15);
}

table {
    border: 1px solid #d9e2ef;
    border-radius: 10px;
}

th {
    background: #f8fafc;
    color: #334155;
}

.inline-editor {
    border-color: #bfdbfe;
    background: #f8fbff;
    border-radius: 10px;
}

.lightbox {
    background: rgba(2, 6, 23, 0.92);
}

.lightbox img {
    border-radius: 10px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.lightbox-score-badge,
.lightbox-vote-panel {
    border-color: #ffffff;
    background: #ffffff;
    color: #111827;
    border-radius: 10px;
}

.lightbox-vote-panel button {
    border-color: #2563eb;
    background: #2563eb;
}

.lightbox-vote-indicator.is-up {
    border-color: #16a34a;
    color: #15803d;
}

.lightbox-vote-indicator.is-down {
    border-color: #dc2626;
    color: #b91c1c;
}

.site-footer {
    color: #64748b;
}

.admin-page {
    --accent: #2563eb;
    --accent-dark: #1e3a8a;
    --paper: #f6f8fb;
    --panel: #ffffff;
    --line: #d9e2ef;
    background: #f6f8fb;
}

.admin-page .site-header {
    background: #0f172a;
}

.admin-page .brand {
    color: #ffffff;
}

.admin-page .hero,
.admin-page .panel {
    border-color: #d9e2ef;
    border-radius: 10px;
}
