/*
Theme Name: Sparkly Cat Blog
Theme URI: https://example.com/sparkly-cat-blog
Author: ChatGPT
Author URI: https://example.com
Description: A pink, sparkly, cat-obsessed WordPress theme with a cute blog layout and cat gallery.
Version: 1.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sparkly-cat-blog
*/

* {
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #ffebf7;
    margin: 0;
    padding: 0;
    color: #3a0031;
    cursor: none; /* hide default cursor for glitter cursor */
}

a {
    color: #ff4fb7;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.sparkle-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.7) 0, transparent 50%),
        radial-gradient(circle at 80% 0%, rgba(255, 200, 255, 0.7) 0, transparent 55%),
        radial-gradient(circle at 0% 80%, rgba(255, 255, 200, 0.7) 0, transparent 55%),
        radial-gradient(circle at 50% 50%, rgba(255, 160, 220, 0.5) 0, transparent 60%);
    opacity: 0.85;
    pointer-events: none;
    z-index: 0;
    animation: sparkleMove 18s linear infinite alternate;
}

@keyframes sparkleMove {
    0%   { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-25px, 25px, 0); }
}

/* glitter cursor */
.glitter-cursor {
    position: fixed;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    background: radial-gradient(circle at 30% 30%, #ffffff, #ffb6e6 60%, transparent 70%);
    box-shadow:
        0 0 10px rgba(255, 255, 255, 0.9),
        0 0 18px rgba(255, 105, 180, 0.9);
    transform: translate(-50%, -50%);
}

/* small sparkles following cursor */
.cursor-sparkle {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0, #ffe4f5 60%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    animation: cursorSparkle 0.6s ease-out forwards;
}

@keyframes cursorSparkle {
    0%   { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(6px, -10px) scale(0.4); }
}

/* floating hearts / sparkles */
.floating-heart {
    position: fixed;
    bottom: -40px;
    font-size: 1.4rem;
    pointer-events: none;
    z-index: 50;
    animation: floatUp 5s linear forwards;
}

@keyframes floatUp {
    0%   { transform: translateY(0) translateX(0); opacity: 0; }
    10%  { opacity: 1; }
    100% { transform: translateY(-120vh) translateX(40px); opacity: 0; }
}

.site-wrapper {
    position: relative;
    max-width: 1100px;
    margin: 40px auto 60px;
    padding: 0 20px;
    z-index: 1;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 20%, #ffffff, #ff9ad6);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 18px rgba(255, 105, 180, 0.7);
    font-size: 28px;
}

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

.site-title a {
    text-decoration: none;
    color: #ff2d9b;
}

.site-description {
    margin: 2px 0 0;
    color: #7c005f;
}

/* simple nav for About page etc */
.site-nav {
    display: flex;
    gap: 12px;
    font-size: 0.95rem;
}

.site-nav a {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 250, 253, 0.95);
    border: 1px solid rgba(255, 192, 203, 0.9);
    box-shadow: 0 8px 18px rgba(255, 182, 222, 0.6);
    text-decoration: none;
    color: #9b006f;
}

.site-nav a:hover {
    background: #ffb6e6;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(0, 3fr);
    gap: 20px;
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 182, 222, 0.9), rgba(255, 240, 250, 0.95));
    box-shadow: 0 16px 40px rgba(255, 105, 180, 0.35);
}

.hero-text h2 {
    margin-top: 0;
}

.hero-cats {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.hero-cats img {
    width: 32%;
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 10px 25px rgba(255, 20, 147, 0.45);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-cats img:nth-child(2) {
    margin-top: 18px;
}

.hero-cats img:nth-child(3) {
    margin-top: 10px;
}

.hero-cats img:hover {
    transform: translateY(-6px) rotate(-1deg) scale(1.02);
    box-shadow: 0 14px 30px rgba(255, 20, 147, 0.6);
}

.card {
    background: rgba(255, 250, 253, 0.98);
    border-radius: 18px;
    padding: 18px 20px;
    box-shadow: 0 12px 28px rgba(255, 192, 203, 0.45);
    border: 1px solid rgba(255, 192, 203, 0.7);
    margin-bottom: 24px;
}

.site-main {
    margin-top: 10px;
}

.post-list-title {
    margin-top: 0;
}

.post-card {
    position: relative;
    overflow: hidden;
}

.post-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(255,255,255,0.2), rgba(255,105,180,0.12), rgba(255,255,255,0.2));
    opacity: 0;
    transform: translateX(-50%);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.post-card:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 8px;
}

.post-header h2.entry-title,
.post-header h1.entry-title,
.post-header h3.entry-title {
    margin: 0;
    font-size: 1.1rem;
}

.post-meta {
    font-size: 0.8rem;
    color: #a0007c;
    white-space: nowrap;
}

.entry-content {
    margin-top: 8px;
}

.post-footer-icons {
    display: flex;
    gap: 6px;
    margin-top: 10px;
    font-size: 1.1rem;
}

.cat-gallery {
    margin-top: 10px;
}

.cat-gallery-title {
    margin-top: 0;
}

.gallery-text {
    margin-top: 4px;
    margin-bottom: 14px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
}

.gallery-item {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #ffb6e6, #ffe4f5);
    padding: 4px;
    box-shadow: 0 12px 26px rgba(255, 105, 180, 0.6);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item img {
    display: block;
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 12px;
}

.gallery-item::after {
    content: "✨";
    position: absolute;
    top: 6px;
    right: 10px;
    font-size: 1.1rem;
    text-shadow: 0 0 8px rgba(255,255,255,0.9);
}

.gallery-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 34px rgba(255, 20, 147, 0.7);
}

.site-footer {
    margin-top: 26px;
    text-align: center;
    font-size: 0.85rem;
    color: #8b006a;
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.8);
    padding-bottom: 10px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.pagination a,
.pagination span {
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 250, 253, 0.95);
    border: 1px solid rgba(255, 192, 203, 0.8);
    font-size: 0.85rem;
}

.about-cats {
    max-width: 720px;
    margin: 0 auto;
}

/* responsive tweaks */
@media (max-width: 720px) {
    body {
        cursor: auto; /* let default cursor on mobile */
    }
    .glitter-cursor {
        display: none;
    }
    .hero {
        grid-template-columns: 1fr;
    }
    .hero-cats {
        justify-content: center;
    }
    .site-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .site-nav {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}
