/* Shared modern theme for peeps-lab pages.
   Loaded after each page's inline <style>, so these rules override the old look. */

:root {
    --bg: #12161c;
    --surface: rgba(30, 36, 44, 0.78);
    --surface-raised: rgba(44, 52, 62, 0.85);
    --border: rgba(255, 255, 255, 0.07);
    --accent: #48b9c7;
    --accent-2: #6c7ee1;
    --text: #e8edf2;
    --text-muted: #a9b4c0;
}

body {
    background-color: var(--bg);
    background-image:
        radial-gradient(ellipse 60% 45% at 10% 0%, rgba(72, 185, 199, 0.16), transparent 70%),
        radial-gradient(ellipse 50% 40% at 95% 15%, rgba(108, 126, 225, 0.14), transparent 70%),
        radial-gradient(ellipse 60% 50% at 50% 100%, rgba(72, 185, 199, 0.08), transparent 70%);
    background-attachment: fixed;
    color: var(--text);
}

/* Header: gradient with a faint dot grid instead of the old checkerboard */
header {
    background: linear-gradient(120deg, #1b4f5a 0%, #2a7f8c 45%, #4b5bb5 100%);
    color: #fff;
    padding: 2.25rem 1rem;
    border-bottom: 1px solid var(--border);
}

header::before {
    background: radial-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
    background-size: 18px 18px;
    opacity: 0.35;
    -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
    mask-image: linear-gradient(to bottom, #000, transparent);
}

header h1 {
    margin: 0;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

/* Nav: sticky glass bar */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(18, 22, 28, 0.75);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0.7rem 1rem;
    text-align: center;
}

nav ul li a,
nav a {
    color: var(--text-muted);
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
}

nav ul li a:hover,
nav a:hover {
    color: #fff;
    background-color: rgba(72, 185, 199, 0.15);
}

/* Keep main full width (the gallery page centers it with auto margins, which shrinks it) */
main {
    width: 100%;
    box-sizing: border-box;
}

/* Content cards */
section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    max-width: 1200px;
    margin: 24px auto;
    padding: 24px 28px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

@media (max-width: 1250px) {
    section {
        margin: 20px;
    }
}

section h2 {
    margin-top: 0;
    padding-bottom: 8px;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, var(--accent), var(--accent-2), transparent) 1;
}

.blog-entry,
.project-card,
.lab-stat {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 12px;
}

/* Photos: consistent rounded tiles */
.pet-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.pet-img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.pet-img:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

.thumbnail,
.blog-img {
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

/* Footer: glass bar to match the nav */
footer {
    background: rgba(18, 22, 28, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    color: var(--text-muted);
}

footer p {
    margin: 4px 0;
}

footer .fa-envelope {
    color: var(--accent);
    margin-right: 4px;
}

/* Vacation gallery controls match the card style */
.gallery-controls {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.gallery-item {
    border-radius: 12px;
}
