/* ===== Dog Website Stylesheet ===== */
/* Pawsitively the best styles on the internet! */

/* ----- 1. Variables & Global Reset ----- */
:root {
    /* Color Palette - Updated for dog theme */
    --color-primary: #8a2be2; /* Playful purple */
    --color-secondary: #4ecdc4; /* Calming teal */
    --color-accent: #ffb347; /* Warm orange */
    --color-dark: #4b5563; /* Gray for text */
    --color-light: #f3f4f6; /* Light gray for backgrounds */
    --color-white: #fff;

    /* Fonts - Maintained as requested */
    --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: rgb(138,43,226,0.1);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
div[id="photos"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgb(138,43,226,0.1);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
section[id="intro"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgb(138,43,226,0.1);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
section[id="highlights"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgb(138,43,226,0.1);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
div[id="favorites"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgb(138,43,226,0.1);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
div[id="routine"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgb(138,43,226,0.1);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
div[id="funfact"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgb(138,43,226,0.1);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
div[id^="photo."]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgb(138,43,226,0.1);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
div[id^="video."]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgb(138,43,226,0.1);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
section[id="ratings"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgb(138,43,226,0.1);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
div[id="bio"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgb(138,43,226,0.1);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
section[id="history"]:target {
    border: 5px solid var(--color-secondary);
    padding: 15px;
    background-color: rgb(138,43,226,0.1);
    border-radius: 15px;
    transform: scale(1.02);
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.paw {
    font-size: 1.5rem;
    opacity: 0.3; /* Default to faint/empty */
    margin-right: 0.2rem;
}

.paw.filled {
    opacity: 1; /* Filled paw */
}

.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.1);
    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-dark);
    background-color: var(--color-light);
    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="M30,30 Q40,20 50,30 T70,30 Q80,40 70,50 T70,70 Q60,80 50,70 T30,70 Q20,60 30,50 T30,30 Z" fill="%238a2be2" opacity="0.1"/></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);
    margin: 1.5rem 0;
    line-height: 1.6;
}

dt {
    font-weight: bold;
    color: var(--color-primary);
    margin-top: 1rem;
    font-size: 1.1em;
}

dd {
    font-weight: normal;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-dark);
}

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 - Style maintained as requested */
.site-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    padding: 2rem;
    text-align: center;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.site-title {
    color: var(--color-white);
    text-shadow: 2px 2px 0 var(--color-dark);
    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(255, 255, 255, 0.2);
}

.cat-nav a:hover,
.cat-nav a.active {
    background-color: var(--color-white);
    color: var(--color-primary);
    text-decoration: none;
    transform: translateY(-2px);
}

/* 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.1);
    transition: transform 0.3s ease;
    margin: 0 auto;
}

.hero-img:hover {
    transform: rotate(2deg) scale(1.02);
}

.caption {
    font-style: italic;
    margin-top: 0.5rem;
    color: var(--color-dark);
}

/* 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.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.gallery-img:hover {
    transform: scale(1.1);
}

/* Facts List - Updated for dogs */
.facts-list {
    background-color: var(--color-white);
    padding: 2rem;
    border-radius: 15px;
    margin: 2rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.facts-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.facts-list li::before {
    content: "🐕"; /* Changed from paw to dog */
    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;
}

/* ----- 4. Image Styles ----- */

/* Basic responsive image rule */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Common style for all dog images */
.dog-image {
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    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.15);
    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.15);
}

.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(138, 43, 226, 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%);
}

.dog-image {
    transition: filter 0.4s ease;
}

.dog-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-bone {
    /* Bone shape for dog theme */
    clip-path: polygon(
        25% 0%, 75% 0%, 100% 25%, 100% 75%, 75% 100%, 25% 100%, 0% 75%, 0% 25%
    );
    /* Fallback for older browsers */
    border-radius: 40% 40% 40% 40% / 60% 60% 40% 40%;
}

/* ----- 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;
    }
    
    /* Adjust image frames on mobile */
    .image-frame::before {
        top: -3px; left: -3px; right: -3px; bottom: -3px;
    }
}
