@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,700&display=swap');

:root {
    --bg-top: #e9eef6;
    --bg-bottom: #f7f9fc;
    --surface: #ffffff;
    --surface-strong: #f8fbff;
    --ink: #071529;
    --ink-soft: #3a4f68;
    --line: #ccd9ea;
    --accent: #0b2f63;
    --accent-strong: #071f42;
    --mint: #5f7fa3;
    --radius-lg: 20px;
    --radius-md: 14px;
    --shadow-soft: 0 16px 35px rgba(7, 21, 41, 0.12);
    --shadow-card: 0 8px 20px rgba(7, 21, 41, 0.08);
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Manrope', sans-serif;
    color: var(--ink);
    background: linear-gradient(170deg, var(--bg-top) 0%, var(--bg-bottom) 70%);
    overflow-x: hidden;
}

body::before,
body::after {
    content: '';
    position: fixed;
    pointer-events: none;
    z-index: -1;
}

body::before {
    width: 460px;
    height: 460px;
    left: -140px;
    top: -120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(11, 47, 99, 0.18) 0%, rgba(11, 47, 99, 0) 70%);
}

body::after {
    width: 520px;
    height: 520px;
    right: -220px;
    bottom: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(95, 127, 163, 0.2) 0%, rgba(95, 127, 163, 0) 72%);
}

h1,
h2,
h3 {
    margin-top: 0;
    font-family: 'Fraunces', serif;
    color: #081a33;
    letter-spacing: 0.01em;
}

p {
    color: var(--ink-soft);
    line-height: 1.7;
}

a {
    color: var(--accent);
}

.main-container {
    display: flex;
    flex: 1 0 auto;
    width: min(1280px, 100% - 2rem);
    margin: 1rem auto;
    gap: 1rem;
}

#navbar {
    flex: 0 0 290px;
    width: 290px;
    min-width: 260px;
}

#content {
    flex: 1 1 auto;
    min-width: 0;
}

.navbar {
    position: sticky;
    top: 1rem;
    padding: 1rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 246, 255, 0.92) 100%);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(6px);
}

.brand-line {
    display: block;
    margin-top: 0.55rem;
    margin-bottom: 1rem;
    color: #4a6382;
    font-size: 0.87rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.logo {
    width: 200px;
    max-width: 100%;
    display: block;
    margin: 0 auto;
    border-radius: 16px;
    border: 1px solid var(--line);
    box-shadow: 0 8px 18px rgba(7, 21, 41, 0.14);
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.link {
    display: block;
    text-decoration: none;
    color: var(--ink);
    font-weight: 600;
    border-radius: 10px;
    padding: 0.72rem 0.9rem;
    transition: transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.link:hover,
.link:focus-visible {
    transform: translateX(4px);
    background: rgba(11, 47, 99, 0.1);
    color: var(--accent-strong);
    outline: none;
}

.aboutRabbitsDiv {
    padding: 1.4rem;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: linear-gradient(150deg, rgba(255, 255, 255, 0.9) 0%, rgba(243, 248, 255, 0.86) 100%);
    box-shadow: var(--shadow-soft);
}

.aboutRabbitsDiv > h1 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.aboutRabbit-textDiv {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.aboutRabbit-text {
    min-width: 0;
    padding: 1.1rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.aboutRabbit-text:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(7, 21, 41, 0.16);
}

.aboutRabbit-text .link {
    margin-top: 0.8rem;
    width: fit-content;
    background: linear-gradient(160deg, #dbe7f8 0%, #c3d8f5 100%);
    color: #0b2f63;
}

.insta-card {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #061a35 0%, #0b2f63 42%, #2e7eb9 100%);
    color: #eff6ff;
}

.insta-card::before {
    content: '';
    position: absolute;
    top: -70px;
    right: -70px;
    width: 210px;
    height: 210px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 72%);
}

.insta-card h2,
.insta-card p {
    position: relative;
    color: #eff6ff;
}

.insta-label {
    position: relative;
    margin: 0 0 0.5rem;
    display: inline-block;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    color: #d4e8ff;
}

.insta-meta {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.insta-meta span {
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 999px;
    padding: 0.28rem 0.62rem;
    font-size: 0.76rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.11);
}

.aboutRabbit-text .link.insta-link {
    position: relative;
    margin-top: 1rem;
    color: #061a35;
    background: linear-gradient(155deg, #ffffff 0%, #d5e9ff 100%);
}

.aboutRabbit-text .link.insta-link:hover,
.aboutRabbit-text .link.insta-link:focus-visible {
    background: linear-gradient(155deg, #ffffff 0%, #b8dcff 100%);
    color: #061a35;
}

.featured-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.featured-gallery > img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.featured-gallery > img.featured-logo {
    object-fit: contain;
    background: #f8fbff;
    padding: 0.6rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.9rem;
    padding: 0.25rem;
}

.image-container {
    overflow: hidden;
    position: relative;
    border-radius: 14px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.image-container::after {
    content: 'Tap to view';
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #fff;
    background: rgba(7, 21, 41, 0.62);
    border-radius: 999px;
    padding: 0.3rem 0.6rem;
}

.gallery-image {
    display: block;
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.gallery-image:hover {
    transform: scale(1.08);
}

#imageModal {
    display: none;
    position: fixed;
    z-index: 999;
    inset: 0;
    background-color: rgba(3, 8, 17, 0.9);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

#imageModal img {
    max-width: min(100%, 1000px);
    max-height: 92%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 26px 38px rgba(0, 0, 0, 0.5);
}

.result-success {
    color: #2f6f2e;
}

.result-error {
    color: #a02519;
}

footer {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    width: min(1280px, calc(100% - 2rem));
    margin: 0 auto 1.2rem;
}

.footer-content {
    padding: 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-card);
}

.footer-content p {
    margin: 0.25rem 0;
}

.footer-content a {
    color: var(--accent-strong);
    font-weight: 600;
    text-decoration-thickness: 2px;
}

.coming-soon {
    margin: 0;
    font-size: clamp(2rem, 6vw, 4rem);
    text-align: center;
}

.admin-panel {
    max-width: 560px;
    margin: 1rem auto;
    padding: 1.4rem;
    border-radius: var(--radius-md);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-card);
}

.admin-panel form {
    display: grid;
    gap: 0.8rem;
}

.fade-in-up {
    animation: fadeUp 0.45s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 980px) {
    .main-container {
        flex-direction: column;
        width: min(1280px, calc(100% - 1rem));
    }

    #navbar {
        width: 100%;
        min-width: 0;
    }

    .navbar {
        position: relative;
        top: 0;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-gallery > img {
        height: 210px;
    }

    footer {
        grid-template-columns: 1fr;
        width: min(1280px, calc(100% - 1rem));
    }
}

@media (max-width: 640px) {
    .aboutRabbitsDiv {
        padding: 0.95rem;
    }

    .nav-links {
        grid-template-columns: 1fr;
    }

    .featured-gallery {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .gallery-image {
        height: 240px;
    }
}