/* ===== Cat Website Stylesheet ===== */
/* Pawsitively the best styles on the internet! */

/* ----- 1. Variables & Global Reset ----- */
:root {
    /* Updated Darker Color Palette */
    --color-primary: #e891c2; /* Deeper playful pink */
    --color-secondary: #7aaefc; /* Richer calming blue */
    --color-accent: #fcd34d; /* Warmer sunny yellow */
    --color-dark: #374151; /* Darker gray for text */
    --color-light: #e5e7eb; /* Darker light gray for backgrounds */
    --color-bg: #1f2937; /* New dark background */
    --color-white: #f9fafb; /* Softer white */
    --color-header: #9333ea; /* New header color - deeper purple */

    /* Fonts */
    --font-heading: 'Comic Neue', cursive, sans-serif;
    --font-body: 'Nunito', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

div[id^="trait."]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(138,43,226,0.15);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
div[id="photos"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(138,43,226,0.15);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
section[id="intro"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(138,43,226,0.15);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
section[id="highlights"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(138,43,226,0.15);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
div[id="favorites"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(138,43,226,0.15);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
div[id="routine"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(138,43,226,0.15);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
div[id="funfact"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(138,43,226,0.15);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
div[id^="photo."]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(138,43,226,0.15);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
div[id^="video."]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(138,43,226,0.15);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
section[id="ratings"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(138,43,226,0.15);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
div[id="bio"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(138,43,226,0.15);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
section[id="history"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgba(138,43,226,0.15);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
}
.paw {
    font-size: 1.5rem;
    opacity: 0.3; /* Default to faint/empty */
    margin-right: 0.2rem;
    color: white;
}

.paw.filled {
    opacity: 1; /* Filled paw */
    color: white;
}
.abt-img {
    max-width: 400px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 5px solid var(--color-white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    margin: 0 auto; /* This ensures horizontal centering */
}
.abt-img:hover {
    transform: rotate(2deg) scale(1.02);
}

body {
    font-family: var(--font-body);
    color: var(--color-white);
    background-color: var(--color-bg);
    line-height: 1.6;
    background-image: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path d="M10 10 C15 5, 20 10, 25 5 C30 10, 35 5, 40 10 C45 5, 50 10, 55 5 C60 10, 65 5, 70 10 C75 5, 80 10, 85 5 C90 10, 95 5, 100 10 L100 100 L10 100 Z" fill="%23e891c2" opacity="0.08"/></svg>');
    background-size: 300px;
}

/* ----- 2. Typography ----- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    text-align: center;
}

h2 {
    font-size: 2rem;
    border-bottom: 3px dotted var(--color-accent);
    padding-bottom: 0.5rem;
    display: inline-block;
}
/* Description List Styling */
dl {
    font-family: var(--font-body); /* Uses the same font as the rest of the site */
    margin: 1.5rem 0;
    line-height: 1.6;
}

dt {
    font-weight: bold;
    color: var(--color-primary); /* Uses the pink color for terms */
    margin-top: 1rem;
    font-size: 1.1em;
}


dd {
    font-weight: normal;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-light); /* Updated to use lighter color for better contrast */
}

a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--color-primary);
    text-decoration: underline wavy;
}

/* ----- 3. Layout & Components ----- */

/* Header & Navigation - Darker Version */
.site-header {
    background: linear-gradient(135deg, var(--color-header) 0%, #7c3aed 100%);
    padding: 2rem;
    text-align: center;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.site-title {
    color: var(--color-white);
    text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    font-size: 2.5rem;
}

.cat-nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 2rem;
    margin-top: 1rem;
}

.cat-nav a {
    color: var(--color-white);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    background-color: rgba(0, 0, 0, 0.4);
    transition: all 0.3s ease;
}

.cat-nav a:hover {
    background-color: var(--color-white);
    color: var(--color-header);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Main Content */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
    text-align: center;
}

.hero-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    border-radius: 20px;
    border: 5px solid var(--color-white);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.hero-img:hover {
    transform: rotate(2deg) scale(1.02);
}

/* Improved Caption Styles */
.caption {
    font-style: italic;
    margin-top: 1rem;
    color: var(--color-white);
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.9) 0%, rgba(31, 41, 55, 0.9) 100%);
    padding: 0.8rem 1.2rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-accent);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.gallery-caption {
    background: linear-gradient(135deg, rgba(55, 65, 81, 0.95) 0%, rgba(31, 41, 55, 0.95) 100%);
    color: var(--color-white);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 500;
}

/* Gallery */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background: rgba(55, 65, 81, 0.5);
    padding: 0.8rem;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
    border-radius: 8px;
}

.gallery-img:hover {
    transform: scale(1.1);
}

/* Facts List */
.facts-list {
    background-color: rgba(55, 65, 81, 0.6);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.facts-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--color-light);
}

.facts-list li::before {
    content: "🐾";
    position: absolute;
    left: 0;
}

/* Footer */
.site-footer {
    background-color: var(--color-dark);
    color: var(--color-white);
    text-align: center;
    padding: 2rem;
    margin-top: 3rem;
    border-radius: 20px 20px 0 0;
    border-top: 3px solid var(--color-header);
}

/* ----- 4. Image Styles ----- */

/* Basic responsive image rule */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Common style for all cat images */
.cat-image {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

/* Thematic Frame Styles */
.image-polaroid {
    background: var(--color-white);
    padding: 0.8rem 0.8rem 2.5rem 0.8rem;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transform: rotate(-1deg);
}

.image-polaroid:hover {
    transform: rotate(0deg);
}

.image-frame {
    padding: 0.8rem;
    background: var(--color-white);
    position: relative;
    border-radius: 25px;
}

.image-frame::before {
    content: "";
    position: absolute;
    top: -5px; left: -5px; right: -5px; bottom: -5px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    z-index: -1;
    border-radius: 30px;
}

/* Fun Hover Effects & Animations */
.image-hover-lift:hover {
    transform: translateY(-7px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.25);
}

.image-hover-tilt {
    transform: rotate(0.5deg);
}

.image-hover-tilt:hover {
    transform: rotate(-1.5deg);
}

.image-hover-zoom {
    overflow: hidden;
    border-radius: 15px;
}

.image-hover-zoom img {
    transition: transform 0.5s ease;
    width: 100%;
}

.image-hover-zoom:hover img {
    transform: scale(1.08);
}

.image-hover-spotlight {
    position: relative;
    overflow: hidden;
}

.image-hover-spotlight::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at center, transparent 40%, rgba(232, 145, 194, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.image-hover-spotlight:hover::before {
    opacity: 1;
}

/* Special Thematic Filters */
.filter-warm {
    filter: brightness(105%) saturate(110%) contrast(95%);
}

.filter-dreamy {
    filter: brightness(105%) contrast(90%) saturate(80%) blur(0.4px);
}

.filter-playful {
    filter: saturate(135%) contrast(110%);
}

.cat-image {
    transition: filter 0.4s ease;
}

.cat-image:hover {
    filter: saturate(120%) brightness(102%);
}

/* Shape Variations */
.image-circle {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.image-squircle {
    border-radius: 25% !important;
}

.image-kitten-ears {
    clip-path: polygon(
        50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%
    );
    /* Fallback for older browsers */
    border-radius: 30% 30% 50% 50% / 30% 30% 70% 70%;
}

/* ----- 5. Utilities ----- */
.text-center {
    text-align: center;
}

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

.paw-print {
    display: inline-block;
    margin: 0 0.5rem;
    font-size: 1.2rem;
}

/* ----- 6. Responsive Design ----- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    .cat-nav ul {
        flex-direction: column;
        gap: 0.5rem;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
    
    .caption {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Adjust image frames on mobile */
    .image-frame::before {
        top: -3px; left: -3px; right: -3px; bottom: -3px;
    }
}