/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
        Ubuntu, Cantarell, sans-serif;
    background-color: black;
    color: white;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Container and layout */
.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Caption Banner */
.caption-banner {
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    opacity: 1;
    transition: opacity 0.3s ease, transform 0.3s ease;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    transform: translateY(-100%);
    z-index: 500;
}

.caption-banner .name {
    font-weight: bold;
    margin-right: 10px;
}

.caption-banner .speech {
    font-style: italic;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 2rem 0 0;
}

.hero-image {
    height: 300px;
    object-fit: cover;
    margin-bottom: 1.5rem;
}

.hero-image-caption {
    height: 150px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    margin-top: -50px;
}

.site-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: white;
    text-transform: lowercase;
}

.site-subtitle {
    font-size: 1.1rem;
    color: lightgray;
    font-style: italic;
    margin-bottom: 2rem;
}

/* Social Links */
.social-links {
    text-align: center;
    margin: 2rem 0;

    a {
        display: inline-block;
        width: 36px;
        height: 36px;
        vertical-align: middle;
        margin: 0 5px;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    a:hover {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

/* Blog Welcome */

.blog-welcome {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 3rem;
    text-align: center;
    font-size: large;
}

.blog-welcome p {
    margin-bottom: 1rem;
    color: gainsboro;
}

/* Blog Posts */
.blog-posts {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.blog-post {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.post-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.post-title {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: white;
    text-transform: lowercase;
}

.post-date {
    color: darkgray;
    font-size: 0.9rem;
    text-transform: lowercase;
}

.post-images {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.post-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease;
}

.post-image:hover {
    transform: scale(1.05);
}

.post-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: gainsboro;
}

.post-content p:first-child {
    font-style: italic;
    color: lightgray;
}

.post-content p:last-child {
    text-align: right;
    font-style: italic;
    margin-top: 1.5rem;
}

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 100;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(255, 255, 255, 0.1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    z-index: 110;
    transition: color 0.3s ease;
}

.lightbox-close:hover,
.lightbox-close:focus {
    color: lightgray;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 16px;
    text-align: center;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

/* Navigation zones for lightbox */
.lightbox-nav {
    position: absolute;
    top: 50%;
    height: 75%;
    transform: translateY(-50%);
    width: 50%;
    z-index: 105;
    cursor: pointer;
}
.lightbox-prev {
    right: 50%;
}
.lightbox-next {
    left: 50%;
}

/* Make post images clickable */
.post-image {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.post-image:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Animation for lightbox */
@keyframes lightboxFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox {
    animation: lightboxFadeIn 0.3s ease-in-out;
}

@keyframes imageZoomIn {
    from {
        transform: translate(-50%, -50%) scale(0.7);
        opacity: 0;
    }
    to {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

.lightbox-content {
    animation: imageZoomIn 0.3s ease-in-out;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }

    .hero-image {
        height: 250px;
    }

    .hero-image-caption {
        height: 100px;
        margin-top: -50px;
        width: 100%;
    }

    .site-title {
        font-size: 2rem;
    }

    .site-subtitle {
        font-size: 1rem;
    }

    .blog-welcome {
        padding: 1.5rem;
    }

    .blog-welcome p {
        font-size: 1rem;
    }

    .blog-post {
        padding: 1.5rem;
    }

    .post-title {
        font-size: 1.5rem;
    }

    .post-images {
        gap: 0.5rem;
    }

    .post-image {
        height: 120px;
    }

    .post-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }

    .hero-image {
        height: 220px;
    }

    .hero-image-caption {
        height: 80px;
        margin-top: -40px;
    }

    .site-title {
        font-size: 1.8rem;
    }

    .blog-welcome {
        padding: 1rem;
    }

    .blog-post {
        padding: 1rem;
    }

    .post-title {
        font-size: 1.3rem;
    }

    .post-image {
        width: 100px;
        height: 100px;
    }

    .post-images {
        justify-content: space-around;
    }
}

/* cursor emojis */

body {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGhlaWdodD0nMzInIHdpZHRoPSczMic+PHRleHQgeT0nMjQnIGZvbnQtc2l6ZT0nMjQnPvCfkL48L3RleHQ+PC9zdmc+'),
        /* paw emoji */ default;
}

button,
a,
[role='button'],
[onclick],
input[type='submit'] {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGhlaWdodD0nMzInIHdpZHRoPSczMic+PHRleHQgeT0nMjQnIGZvbnQtc2l6ZT0nMjQnPvCfkJU8L3RleHQ+PC9zdmc+'),
        /* dog emoji */ pointer;
}

h2,
p,
time {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGhlaWdodD0nMzInIHdpZHRoPSczMic+PHRleHQgeT0nMjQnIGZvbnQtc2l6ZT0nMjQnPvCfprQ8L3RleHQ+PC9zdmc+'),
        /* bone emoji */ default;
}

.will-cause-spin {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGhlaWdodD0nMzInIHdpZHRoPSczMic+PHRleHQgeT0nMjQnIGZvbnQtc2l6ZT0nMjQnPvCfkqs8L3RleHQ+PC9zdmc+'),
        /* star spin emoji */ pointer;
}

.lightbox-prev {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGhlaWdodD0nMzInIHdpZHRoPSczMic+PHRleHQgeT0nMjQnIGZvbnQtc2l6ZT0nMjQnPuKshe+4jzwvdGV4dD48L3N2Zz4='),
        pointer;
}

.lightbox-next {
    cursor: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIGhlaWdodD0nMzInIHdpZHRoPSczMic+PHRleHQgeT0nMjQnIGZvbnQtc2l6ZT0nMjQnPuKeoe+4jzwvdGV4dD48L3N2Zz4='),
        pointer;
}

/* Floating hearts animation */
.floating-heart {
    position: fixed;
    left: 0;
    top: 0;
    font-size: 24px;
    pointer-events: none;
    animation: heart-float 2s ease forwards;
}

@keyframes heart-float {
    from {
        transform: translate(-50%, 0) scale(1);
        opacity: 1;
    }
    to {
        transform: translate(-50%, var(--heart-float-distance)) scale(1.5);
        opacity: 0;
    }
}

/* Treat overlay */
.treat-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    z-index: 200;
    animation: fadeIn 0.3s ease;
}

.treat-overlay.hide {
    animation: fadeOut 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}
