@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;700;900&display=swap');

:root {
    --bg-color: #FAEDDF; /* Soft cream/tan base */
    --text-color: #3A271E; /* Deep espresso */
    --text-muted: #795548; /* Lighter brown */
    --primary: #5D4037; /* Chocolate brown */
    --primary-dark: #3E2723; /* Dark cocoa */
    --secondary: #D7CCC8; /* Soft tan */
    --accent: #D4A373; /* Warm Caramel/Dapple highlight */
    --danger: #E53935; /* Ruby red */
    --danger-dark: #B71C1C; /* Darker red */
    --card-bg: rgba(255, 255, 255, 0.95);
    --shadow-soft: 0 10px 40px -10px rgba(93, 64, 55, 0.15);
    --shadow-heavy: 0 20px 40px -10px rgba(62, 39, 35, 0.3);
    --border-radius: 25px;
    --font-main: 'Outfit', sans-serif;
}

body {
    margin: 0; 
    padding: 0; 
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Base App Container for other pages to not break */
.app-container {
    max-width: 500px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* MINIMALIST BODY (Home Page Specific) */
.minimalist-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
}

/* Floating Paws Animation */
.paw {
    position: absolute;
    font-size: 2rem;
    opacity: 0.12;
    z-index: -1;
    color: var(--primary-dark);
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1));
    animation: float-up 12s infinite ease-in;
}
.paw1 { bottom: -50px; left: 10%; animation-delay: 0s; font-size: 3.5rem; }
.paw2 { bottom: -50px; left: 35%; animation-delay: 4s; font-size: 2.5rem; animation-duration: 15s; }
.paw3 { bottom: -50px; left: 60%; animation-delay: 2s; font-size: 4rem; animation-duration: 10s;}
.paw4 { bottom: -50px; left: 80%; animation-delay: 8s; font-size: 3rem; }
.paw5 { bottom: -50px; left: 90%; animation-delay: 5s; font-size: 2rem; animation-duration: 14s; }

@keyframes float-up {
    0% { transform: translateY(0vh) rotate(-10deg); opacity: 0; }
    10% { opacity: 0.2; }
    50% { transform: translateY(-50vh) rotate(20deg); }
    90% { opacity: 0.2; }
    100% { transform: translateY(-110vh) rotate(-10deg); opacity: 0;}
}

/* Minimalist Container Card */
.container.playful-card {
    max-width: 420px;
    width: 100%;
    background: var(--card-bg);
    padding: 30px;
    padding-top: 15px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-heavy);
    text-align: center;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    border: 3px dashed var(--secondary);
}

.top-controls {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.lang-toggle {
    background: #ffffff;
    border: 2px solid var(--secondary);
    padding: 6px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(62, 39, 35, 0.05);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.lang-toggle:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 6px 16px rgba(62, 39, 35, 0.12);
}

/* Profile specific with animations */
.profile-pic {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--accent);
    box-shadow: 0 10px 25px rgba(93, 64, 55, 0.25);
    margin: 0 auto 20px auto;
    display: block;
}

.wag-animation {
    transform-origin: bottom center;
    animation: happy-wag 3s infinite ease-in-out;
}

@keyframes happy-wag {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(5deg) scale(1.02); }
    75% { transform: rotate(-5deg) scale(1.02); }
}

.bounce-title {
    font-size: 2.5rem; 
    color: var(--primary-dark); 
    margin: 0 0 5px 0;
    text-shadow: 2px 2px 0px var(--secondary);
    font-weight: 900;
}

.bio-text { 
    font-weight: 600; 
    color: var(--text-muted); 
    font-size: 1.1rem; 
    line-height: 1.4;
    margin-bottom: 25px;
}

/* Mini Nav for Home Page */
.mini-nav {
    display: flex;
    justify-content: space-around;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 2px dashed var(--secondary);
}
.mini-nav a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    transition: 0.2s;
}
.mini-nav a:hover, .mini-nav a.active {
    color: var(--primary-dark);
    transform: scale(1.1);
}

/* General Layout Items */
a { text-decoration: none; color: inherit; transition: color 0.2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 10px 0; font-weight: 800; color: var(--primary-dark); letter-spacing: -0.02em; }
h2 { font-size: 1.5rem; }
p { line-height: 1.6; margin-bottom: 15px; font-weight: 400; }

.panel {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 30px;
    margin: 10px 20px 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(255,255,255,0.9);
}

/* Buttons */
.btn {
    display: inline-block;
    width: 100%;
    padding: 16px 20px;
    border-radius: 16px;
    border: none;
    font-size: 1.05rem;
    font-family: var(--font-main);
    font-weight: 800;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    margin-bottom: 12px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    box-shadow: var(--shadow-heavy);
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:hover { 
    transform: translateY(-3px) rotate(-1deg); 
    box-shadow: 0 20px 40px -10px rgba(62, 39, 35, 0.5); 
}

.btn-whatsapp {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: white;
    box-shadow: 0 20px 40px -10px rgba(34, 197, 94, 0.25);
}
.btn-whatsapp:hover { transform: translateY(-3px) scale(1.02); }

.btn-phone {
    background: linear-gradient(135deg, var(--accent), #D7CCC8);
    color: var(--primary-dark);
}
.btn-phone:hover { transform: translateY(-3px) scale(1.02); }

/* Lost Mode Overrides */
.lost-banner {
    background: linear-gradient(135deg, var(--danger), var(--danger-dark));
    color: white;
    text-align: center;
    padding: 18px;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
    border-radius: 12px;
    margin-bottom: 20px;
    animation: flash 0.8s infinite alternate;
}
@keyframes flash {
    0% { transform: scale(1); box-shadow: inset 0 0 20px rgba(0,0,0,0.2), 0 10px 30px rgba(229, 57, 53, 0.3); }
    100% { transform: scale(1.02); box-shadow: inset 0 0 0px rgba(0,0,0,0), 0 20px 40px rgba(229, 57, 53, 0.6); }
}

.blink-badge {
    display: inline-block;
    background: var(--danger);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: blink 1s infinite alternate;
}
@keyframes blink {
    0% { opacity: 1; transform: scale(1); }
    100% { opacity: 0.85; transform: scale(1.05); }
}
.medical-alert {
    color: var(--danger-dark);
    font-weight: 800;
    font-size: 1.15rem;
    margin-bottom: 15px;
}

/* Forms */
.form-group { margin-bottom: 15px; }
.form-control {
    width: 100%;
    padding: 16px;
    border: 2px dashed var(--secondary);
    border-radius: 14px;
    box-sizing: border-box;
    font-family: var(--font-main);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-color);
    transition: all 0.3s ease;
}
.form-control::placeholder { color: #A1887F; font-weight: 400;}
.form-control:focus {
    outline: none;
    border: 2px solid var(--accent);
    box-shadow: 0 0 0 4px rgba(212, 163, 115, 0.25);
}

/* Nav for other pages (Gallery/Feeding/Admin) */
.main-nav {
    display: flex;
    justify-content: space-around;
    padding: 16px 10px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(93, 64, 55, 0.08);
    margin-top: auto;
    position: sticky;
    bottom: 0;
    z-index: 100;
}
.nav-item {
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-muted);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}
.nav-icon {
    font-size: 1.45rem;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.nav-item:hover .nav-icon, .nav-item.active .nav-icon {
    transform: translateY(-4px) scale(1.15);
}
.nav-item:hover, .nav-item.active {
    color: var(--primary-dark);
}
