@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Share Tech Mono', monospace;
    background-color: #1e2a0e;
    color: #e8f5a0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    position: relative;
    background-image:
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.15) 2px,
            rgba(0, 0, 0, 0.15) 4px
        );
}

.background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image: url('paper.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    opacity: 0.05;
    filter: grayscale(100%) contrast(200%);
}

.tape {
    position: absolute;
    width: 150px; height: 40px;
    background-color: rgba(180, 210, 60, 0.3);
    pointer-events: none;
    border: 1px dashed rgba(180, 210, 60, 0.4);
}

.tape-top {
    top: 60px; left: 50%;
    transform: translateX(-50%) rotate(-5deg);
    z-index: 1;
}

.tape-bottom {
    bottom: 100px; right: 10%;
    transform: rotate(8deg);
    z-index: 1;
}

.container {
    display: flex;
    max-width: 1200px;
    position: relative;
    z-index: 10;
    border: 3px solid #8aaa20;
    outline: 1px solid #5a6e10;
}

.sidebar {
    background-color: #28380a;
    padding: 40px 30px;
    min-width: 200px;
    border-right: 3px solid #8aaa20;
}

.sidebar h1 {
    font-size: 18px;
    font-weight: bold;
    color: #e8f5a0;
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid #8aaa20;
    padding-bottom: 10px;
}

nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

nav a {
    color: #c8e060;
    text-decoration: underline;
    font-size: 16px;
    font-family: 'Share Tech Mono', monospace;
    padding: 3px 0;
    transition: color 0.1s;
}

nav a:hover {
    color: #f0ff60;
    background-color: #3a5200;
    text-decoration: none;
    padding-left: 6px;
}

nav a::before {
    content: "> ";
    color: #8aaa20;
}

.sidebar hr {
    border: none;
    border-top: 1px dashed #8aaa20;
    margin: 16px 0;
}

.secondary-nav {
    margin-top: 20px;
}

.content-card {
    background-color: #141f05;
    padding: 40px 50px;
    max-width: 1000px;
    border-left: 2px solid #3a5200;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #8aaa20 #1e2a0e;
}

.content-card::-webkit-scrollbar { width: 8px; }
.content-card::-webkit-scrollbar-track { background: #1e2a0e; }
.content-card::-webkit-scrollbar-thumb { background-color: #8aaa20; border: 1px solid #3a5200; }

.content-card header h1 {
    font-size: 28px;
    color: #e8f5a0;
    margin-bottom: 10px;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
    text-shadow: 2px 2px #000, 0 0 8px rgba(200, 230, 0, 0.2);
}

.content-card header p {
    color: #a8c050;
    line-height: 1.5;
    margin-bottom: 20px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
}

.content-card header h2 {
    font-size: 20px;
    color: #c8e060;
    margin-bottom: 30px;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
    border-left: 4px solid #8aaa20;
    padding-left: 12px;
}

.text-box h2 {
    font-size: 20px;
    color: #e8f5a0;
    margin: 30px 0 16px 0;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.text-box h2:first-child { margin-top: 0; }

.text-box h3 {
    font-size: 16px;
    color: #c8e060;
    margin: 22px 0 12px 0;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
    border-bottom: 1px dashed #8aaa20;
    padding-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.text-box p {
    color: #b0cc60;
    line-height: 1.7;
    margin-bottom: 12px;
    padding-left: 12px;
    font-size: 15px;
    border-left: 2px solid #3a5200;
}

.text-box a {
    color: #e8f5a0;
    text-decoration: underline;
    font-family: 'Share Tech Mono', monospace;
}

.text-box a:hover {
    color: #f0ff60;
    background-color: #3a5200;
}

.footer {
    background-color: #1a2800;
    border-top: 3px double #8aaa20;
    padding: 20px 30px;
    margin-top: auto;
    width: 100%;
    color: #b0cc60;
    font-size: 15px;
    font-family: 'Share Tech Mono', monospace;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.copyright {
    color: #8aaa20;
    font-size: 14px;
    font-family: 'Share Tech Mono', monospace;
}

.copyright::before { content: "// "; }

.social-icons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.social-icons a {
    color: #e8f5a0;
    background-color: #28380a;
    text-decoration: none;
    padding: 5px 12px;
    border: 1px solid #8aaa20;
    transition: all 0.1s;
    font-size: 14px;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-icons a:hover {
    background-color: #8aaa20;
    color: #0a1400;
    border-color: #e8f5a0;
}

.header-section {
    position: relative;
    margin-bottom: 30px;
}

.site-title {
    position: absolute;
    top: -10px; right: 0;
    background-color: #28380a;
    padding: 12px 32px;
    font-size: 24px;
    font-weight: bold;
    color: #e8f5a0;
    transform: rotate(2deg);
    border: 2px solid #8aaa20;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.bird-image {
    width: 100%; max-width: 300px;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: grayscale(30%) sepia(40%) hue-rotate(30deg) contrast(120%);
    border: 2px solid #8aaa20;
}

.welcome-text {
    margin: 30px 0;
    color: #b0cc60;
    line-height: 1.6;
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
}

.welcome-text p { margin-bottom: 8px; }

.divider {
    border: none;
    border-top: 1px dashed #8aaa20;
    margin: 24px 0;
}

.notes-section h3 {
    font-weight: bold;
    color: #c8e060;
    margin-bottom: 12px;
    font-size: 14px;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.notes-section ul {
    list-style: none;
    color: #b0cc60;
    font-size: 15px;
    font-family: 'Share Tech Mono', monospace;
}

.notes-section li {
    margin-bottom: 8px;
    line-height: 1.5;
    padding-left: 16px;
}

.notes-section li::before {
    content: "* ";
    color: #8aaa20;
    margin-left: -16px;
}

.project-section { margin: 30px 0; }

.project-section h2 {
    font-size: 22px;
    color: #e8f5a0;
    margin-bottom: 16px;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-section p {
    color: #b0cc60;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 15px;
    font-family: 'Share Tech Mono', monospace;
}

.button-container {
    margin: 30px 0;
    text-align: center;
}

.special-button {
    background-color: #28380a;
    color: #e8f5a0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
    font-weight: bold;
    padding: 12px 28px;
    border: 2px solid #8aaa20;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.1s;
    outline: 1px solid #28380a;
    outline-offset: 3px;
}

.special-button:hover {
    background-color: #8aaa20;
    color: #0a1400;
    border-color: #e8f5a0;
    outline-color: #8aaa20;
}

.special-button:active {
    background-color: #e8f5a0;
    color: #0a1400;
    transform: translateY(2px);
}

.grid-background {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-image:
        linear-gradient(rgba(130, 160, 20, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(130, 160, 20, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
}

.kitten-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5em;
    margin: 2em 0;
}

.kitten-card {
    text-align: center;
    border: 1px solid #8aaa20;
    padding: 8px;
    background-color: #141f05;
    position: relative;
}

.kitten-card img {
    width: 100%; height: 180px;
    object-fit: cover;
    filter: sepia(20%) hue-rotate(40deg) contrast(110%);
    border: 1px solid #3a5200;
    display: block;
}

.kitten-card p {
    margin-top: 6px;
    font-weight: bold;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    color: #c8e060;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ── adoptable grid: fixed 3 columns ──────────────────────── */
.adoptable-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2em;
}

.kitten-card.adoptable {
    border: 2px solid #e8f5a0;
    background-color: #1a2806;
}

.kitten-card.adoptable img {
    height: 220px;
    border-color: #8aaa20;
}

.kitten-card.adoptable p {
    color: #e8f5a0;
    font-size: 16px;
}

.adoptable-badge {
    background-color: #e8f5a0;
    color: #0a1400;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 3px 8px;
    text-align: center;
}

.memorial-text {
    text-align: center;
    margin-top: 2em;
    color: #8aaa20 !important;
    font-size: 14px !important;
    border-left: none !important;
    padding-left: 0 !important;
}

/* ── filter multi-selects ─────────────────────────────────── */

.filter-selects {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0 0 24px;
}

.filter-select-group {
    flex: 1;
    min-width: 180px;
}

.filter-select-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    font-family: 'Share Tech Mono', monospace;
    color: #8aaa20;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.filter-select-group label::before {
    content: "> ";
}

.filter-select-group select {
    width: 100%;
    background: #141f05;
    color: #c8e060;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    border: 1px solid #8aaa20;
    padding: 4px 6px;
    text-transform: uppercase;
    letter-spacing: 1px;
    scrollbar-width: thin;
    scrollbar-color: #8aaa20 #1e2a0e;
    outline: none;
}

.filter-select-group select:focus {
    border-color: #e8f5a0;
}

.filter-select-group select option {
    background: #141f05;
    color: #c8e060;
    padding: 4px 6px;
}

.filter-select-group select option:checked {
    background: #3a5200;
    color: #e8f5a0;
}

.filter-select-group select::-webkit-scrollbar { width: 6px; }
.filter-select-group select::-webkit-scrollbar-track { background: #1e2a0e; }
.filter-select-group select::-webkit-scrollbar-thumb { background-color: #8aaa20; }

.filter-hint {
    font-size: 11px;
    color: #5a6e10;
    font-family: 'Share Tech Mono', monospace;
    margin: 4px 0 0;
    letter-spacing: 1px;
}

.filter-hint::before {
    content: "// ";
}

.filter-clear-btn {
    background: #1e2a0e;
    color: #8aaa20;
    font-family: 'Share Tech Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    border: 1px solid #3a5200;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.1s;
    align-self: flex-end;
    margin-bottom: 20px;
    white-space: nowrap;
}

.filter-clear-btn:hover {
    background: #3a5200;
    color: #e8f5a0;
    border-color: #8aaa20;
}

/* ── search input ─────────────────────────────────────────── */

#searchInput {
    width: 100%;
    padding: 10px 12px;
    font-size: 14px;
    font-family: 'Share Tech Mono', monospace;
    background: #141f05;
    color: #e8f5a0;
    border: 1px solid #8aaa20;
    border-radius: 0;
    box-sizing: border-box;
    text-transform: uppercase;
    letter-spacing: 1px;
    outline: none;
    margin-bottom: 16px;
}

#searchInput::placeholder {
    color: #3a5200;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#searchInput:focus {
    border-color: #e8f5a0;
}

/* ── org grid ─────────────────────────────────────────────── */

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 2em 0;
    justify-content: center;
}

.filter-btn {
    padding: 5px 14px;
    border: 1px solid #8aaa20;
    background: #1e2a0e;
    color: #c8e060;
    cursor: pointer;
    font-family: 'Share Tech Mono', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.1s;
}

.filter-btn:hover {
    background: #8aaa20;
    color: #0a1400;
    border-color: #e8f5a0;
}

.filter-btn.active {
    background: #3a5200;
    color: #e8f5a0;
    border-color: #e8f5a0;
}

.org-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1em;
    margin: 2em 0;
}

.org-card {
    border: 1px solid #8aaa20;
    border-top: 3px solid #8aaa20;
    padding: 1.2em;
    background: #141f05;
    transition: all 0.1s;
}

.org-card:hover {
    border-color: #e8f5a0;
    background-color: #1a2806;
}

.org-card h4 {
    margin-top: 0;
    margin-bottom: 0.8em;
    color: #e8f5a0;
    font-family: 'Share Tech Mono', monospace;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.org-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.org-links a {
    padding: 3px 8px;
    border: 1px solid #8aaa20;
    font-size: 13px;
    text-decoration: none;
    color: #c8e060;
    font-family: 'Share Tech Mono', monospace;
    text-transform: uppercase;
    transition: all 0.1s;
}

.org-links a:hover {
    background: #8aaa20;
    color: #0a1400;
    border-color: #e8f5a0;
}

@media (max-width: 768px) {
    body { padding: 10px; display: block; }
    .container { flex-direction: column; }
    .sidebar { width: 100%; margin-bottom: 0; border-right: none; border-bottom: 3px solid #8aaa20; }
    .content-card { padding: 24px 20px; max-height: none; }
    .site-title { position: static; transform: rotate(0deg); margin-bottom: 16px; text-align: center; display: block; }
    .tape { display: none; }
    .kitten-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .adoptable-grid { grid-template-columns: repeat(2, 1fr); }
    .org-grid { grid-template-columns: 1fr; }
    .filter-selects { flex-direction: column; }
}