:root {
    --pop-pink: #FF007F;
    /* Vibrant Pink */
}

/* Basic Reset & Body Styling */
body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #ffffff;
    /* white */
    color: #333333;
    /* dark gray for text */
    margin: 0;
    padding: 20px;
    line-height: 1.6;
}

header,
footer {
    background-color: #ffffff;
    /* Unified white background */
    color: #333333;
    /* dark gray text */
    padding: 1rem;
    text-align: center;
    margin-bottom: 20px;
}

header {
    border-top: 5px solid #FF4500;
    /* OrangeRed */
}

footer {
    border-bottom: 5px solid var(--pop-pink);
    /* Pop Pink */
}

header h1 {
    margin: 0;
    font-family: 'Fredoka One', cursive;
    font-size: 4em;
    /* Larger for site title */
    font-weight: normal;
    /* Fredoka One is already bold */
    color: #FF4500;
    /* OrangeRed */
    text-shadow: none;
    /* Simplified */
    /* transform: skewX(-10deg); */
    /* Removed */
}

nav a {
    /* color: #fff; */
    /* Replaced by general 'a' styling or specific footer 'a' styling */
    text-decoration: none;
    margin: 0 10px;
    text-transform: uppercase;
    font-weight: bold;
}

nav a:hover {
    /* text-decoration: underline; */
    /* Handled by general 'a:hover' */
    /* color: #00ffff; */
    /* Ensure hover color from general 'a:hover' applies */
}


h1,
h2 {
    /* This rule can now primarily define shared color */
    color: #FF4500;
    /* OrangeRed */
    /* Font family and weight will be set in specific h1, h2 rules */
}

h1 {
    /* This rule affects top-level h1s in <main> (e.g. cat page titles) */
    font-family: 'Fredoka One', cursive;
    font-size: 3.5em;
    font-weight: normal;
    /* Fredoka One is already bold */
    text-align: center;
    margin-bottom: 0.5em;
    /* Adjusted margin */
    text-shadow: none;
    /* Simplified */
}

h2 {
    font-family: 'Poppins', sans-serif;
    /* Explicitly Poppins */
    font-weight: 700;
    /* Explicitly Poppins bold */
    text-shadow: none;
    /* Simplified */
    /* border-bottom removed */
    padding-bottom: 5px;
    margin-top: 30px;
    /* font-size is inherited or default, or can be set here if needed, e.g. 1.8em from #geolocation h2 */
}

main {
    background-color: #ffffff;
    /* Unified white background */
    padding: 20px;
    border-radius: 0;
    /* Removed border-radius */
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.2);
    /* Harder shadow */
    /* Paw print background removed */
}

/* Homepage Gallery Grid */
#cat-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.thumbnail {
    border: none;
    /* Removed border */
    border-radius: 8px;
    /* Increased radius */
    padding: 15px;
    /* Increased padding */
    text-align: center;
    background-color: #ffffff;
    /* Unified white background */
    /* transform: rotate(-1deg) skewX(-3deg); */
    /* Already removed in previous step, confirmed */
}

.thumbnail img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    /* Increased for more rounded theme */
    margin-bottom: 10px;
    /* clip-path removed */
    border: 3px solid #FF4500;
    /* Thicker accent color border */
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
    /* Harder shadow */
    transition: transform 0.2s ease-in-out;
}

.thumbnail img:hover {
    /* Hover effect removed */
}

.thumbnail p {
    margin: 0;
    font-weight: bold;
}

/* Cat Page Image Gallery */
#cat-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    /* Increased gap */
}

#cat-photos img {
    width: 100%;
    /* Fill grid cell */
    height: auto;
    object-fit: cover;
    border: 4px solid #FF4500;
    /* Thicker accent color border */
    padding: 5px;
    /* Keep padding for "polaroid" feel around the image content itself */
    border-radius: 15px;
    /* Added for rounded theme */
    background-color: #ffffff;
    /* Ensure white background for transparent images */
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.2);
    /* Harder shadow - check with rotation */
    transition: transform 0.3s ease;
    /* Keep transition for hover effects if any are added back */
    transform: rotate(-2deg);
    /* Base rotation */
}

#cat-photos img:nth-child(2n) {
    transform: rotate(3deg);
    margin-top: -10px;
}

#cat-photos img:nth-child(3n) {
    transform: rotate(-1deg);
    margin-left: 5px;
}

#cat-photos img:nth-child(4n) {
    transform: rotate(2deg);
    margin-bottom: -5px;
}

#cat-photos img:hover {
    /* Hover effect removed */
}

/* Responsive adjustments for cat page images - Grid handles this now */
/* @media (max-width: 768px) {
    #cat-photos img {
        max-width: calc(100% - 10px);
    }
} */


/* Links */
a {
    color: #00BCD4;
    /* Vibrant teal/cyan */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #0097A7;
    /* Darker teal/cyan */
    text-shadow: 1px 1px 0px var(--pop-pink);
    /* Subtle pop shadow */
}

footer a {
    color: #00BCD4;
    /* Consistent with other links */
}

/* Geolocation Section - Moved to top of main on cat page */
#geolocation {
    text-align: center;
    margin-bottom: 20px;
    /* Spacing after the section */
}

#geolocation h2 {
    font-size: 1.8em;
    /* Slightly smaller than main page H1, but still prominent */
    /* text-shadow is none (from h2 rule) */
    /* color from h1,h2 rule */
    /* border-bottom from h2 rule */
    margin-bottom: 10px;
    /* Space below heading */
    /* Specific font already set by general h2 rule */
}

#geo-links {
    /* The UL */
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-top: 10px;
    /* Space above the links */
}

#geo-links li {
    margin: 5px;
    /* Spacing around each link item */
}

#geo-links li::after {
    content: '🐈';
    /* Cat emoji separator */
    margin-left: 20px;
    /* Space after the link, before the emoji */
    display: inline-block;
}

#geo-links li:last-child::after {
    content: '';
    /* Remove emoji from last item */
    margin-left: 0;
}

#geo-links a {
    /* color: #00BCD4; */
    /* Inherited */
    text-decoration: underline;
    /* Make it clear it's a link */
    font-weight: bold;
    padding: 5px 8px;
    border: 1px solid #00BCD4;
    /* Use link color for border */
    border-radius: 15px;
    /* Softer, bubble-like appearance */
    transition: all 0.3s ease;
}

#geo-links a:hover {
    background-color: #00BCD4;
    /* Link color background */
    color: #fff;
    /* White text */
    /* text-shadow from general 'a:hover' rule */
}

/* Pedestal Section */
#pedestal a {
    display: inline-block;
    padding: 12px 20px;
    /* Increased padding */
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: #ffffff;
    /* White text */
    background-color: var(--pop-pink);
    /* Pop pink background */
    border: none;
    border-radius: 25px;
    /* Pill-shaped button */
    text-decoration: none;
    text-shadow: none;
    /* Ensure no inherited shadow interferes */
    text-transform: uppercase;
    /* Uppercase text */
    box-shadow: 3px 3px 0px #FF4500;
    /* OrangeRed shadow */
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
    /* Smooth transition */
}

#pedestal a:hover {
    text-decoration: none;
    background-color: #FF4500;
    /* OrangeRed on hover */
    color: #ffffff;
    /* Keep text white */
    box-shadow: 3px 3px 0px var(--pop-pink);
    /* Pink shadow on hover */
}

/* Instagram Link Section in Main */
.instagram-section {
    text-align: center;
    margin: 30px 0;
}

.instagram-link {
    display: inline-flex;
    /* Align icon and text */
    align-items: center;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.5em;
    /* Prominent size */
    color: #333;
    /* Dark text */
    text-decoration: none;
    padding: 10px 15px;
    border: 2px solid #333;
    /* Simple border */
    border-radius: 25px;
    /* Match pedestal button */
    transition: all 0.3s ease;
}

.instagram-link:hover {
    background-color: #333;
    color: #fff;
}

.instagram-link .instagram-icon {
    stroke: #333;
    /* Initial stroke color */
    margin-right: 10px;
    width: 28px;
    /* Match SVG width */
    height: 28px;
    /* Match SVG height */
}

.instagram-link:hover .instagram-icon {
    stroke: #fff;
    /* Stroke color on hover */
}

/* Footer Styling Adjustment Notes:
   The existing 'header, footer' rule already sets text-align: center and padding: 1rem.
   The specific 'footer' rule (just below 'header') already sets the border-bottom.
   If more specific padding for the footer is needed (e.g., to override 1rem),
   a rule like 'footer { padding-top: 20px; padding-bottom: 20px; }' could be added.
   For now, existing footer styling from 'header, footer' and the specific 'footer' border rule will apply.
*/