/* ==========================================
   PetAware Brand CSS
   Single source of truth for all PetAware apps.
   Reference via: _content/PetAware.Shared.UI/petaware-brand.css
   ========================================== */

/* -- Smooth scrolling -- */
html {
    scroll-behavior: smooth;
}

/* -- Brand gradient text effect -- */
.gradient-text {
    background: linear-gradient(135deg, #4FD0CB 0%, #3A8F8A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -- Glass morphism effect -- */
.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* -- Keyframe Animations -- */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-20px); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(79,208,203,0.7); }
    50%      { transform: scale(1.05); box-shadow: 0 0 0 20px rgba(79,208,203,0); }
}

@keyframes backgroundShift {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 1; }
    50%      { transform: scale(1.1) rotate(5deg); opacity: 0.8; }
}

/* -- Animation utility classes -- */
.animate-slide-up { animation: slideUp 0.8s cubic-bezier(0.4,0,0.2,1) forwards; }
.animate-fade-in  { animation: fadeIn  0.8s cubic-bezier(0.4,0,0.2,1) forwards; }
.floating          { animation: float   4s   ease-in-out infinite; }
.pulsing           { animation: pulse   3s   ease-in-out infinite; }
.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* -- Custom scrollbar -- */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--mud-palette-background); }
::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #4FD0CB 0%, #3A8F8A 100%);
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #3A8F8A 0%, #4FD0CB 100%);
}

/* -- Dashboard gradient header -- */
.dashboard-header {
    background: linear-gradient(135deg, #4FD0CB 0%, #3A8F8A 100%);
    color: white;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
}

.dashboard-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255,255,255,0.15) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255,255,255,0.12) 0%, transparent 25%);
    z-index: 1;
}

.dashboard-header > * {
    position: relative;
    z-index: 2;
}

/* -- Landing layout (shared across projects) -- */
.landing-layout,
.page {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

.landing-layout > main,
.page > main {
    flex: 1;
    width: 100%;
}

/* -- Gradient app bars -- */
.gradient-appbar {
    background: linear-gradient(135deg, #4FD0CB 0%, #3A8F8A 100%) !important;
}

.admin-appbar {
    background: linear-gradient(135deg, #1a237e 0%, #283593 100%) !important;
}

/* -- Main content area -- */
.main-content {
    background: #f8f9fa;
    min-height: 100vh;
}

.onboarding-content {
    background: #f8f9fa;
    min-height: 100vh;
}

/* -- Admin landing page -- */
.landing-page {
    min-height: 100vh;
}

.hero-section {
    background: linear-gradient(135deg, #1a237e 0%, #283593 50%, #3949ab 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* -- Inline code styling -- */
.inline-code {
    background: #E6FAF9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
    color: #3AB0A8;
}

/* -- Hero animated background (Landing Home) -- */
.hero-animated-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
}

.shape-circle {
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
    border: 1px solid rgba(255,255,255,0.2);
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
    opacity: 0.4;
    animation: float-1 20s ease-in-out infinite;
}

.shape-2 {
    width: 200px;
    height: 200px;
    bottom: 10%;
    left: 5%;
    opacity: 0.35;
    animation: float-2 25s ease-in-out infinite;
}

.shape-3 {
    width: 150px;
    height: 150px;
    top: 40%;
    right: 15%;
    opacity: 0.3;
    animation: float-3 18s ease-in-out infinite;
}

.shape-square {
    background: linear-gradient(45deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08));
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 15px;
    transform: rotate(45deg);
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 10%;
    opacity: 0.35;
    animation: float-rotate-1 22s ease-in-out infinite;
}

.shape-5 {
    width: 90px;
    height: 90px;
    bottom: 20%;
    right: 10%;
    opacity: 0.3;
    animation: float-rotate-2 28s ease-in-out infinite;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid rgba(255,255,255,0.15);
    background: transparent;
}

.shape-6 {
    top: 60%;
    left: 20%;
    opacity: 0.4;
    animation: float-rotate-1 30s ease-in-out infinite;
}

.shape-7 {
    top: 15%;
    right: 25%;
    opacity: 0.35;
    animation: float-rotate-2 24s ease-in-out infinite reverse;
}

.shape-blob {
    border-radius: 50% 40% 60% 50%;
    background: radial-gradient(ellipse at center, rgba(79,208,203,0.3) 0%, rgba(79,208,203,0.1) 50%, transparent 70%);
}

.shape-8 {
    width: 500px;
    height: 500px;
    top: -200px;
    left: -150px;
    opacity: 0.5;
    animation: morph-1 30s ease-in-out infinite;
}

.shape-9 {
    width: 450px;
    height: 450px;
    bottom: -150px;
    right: -100px;
    opacity: 0.45;
    animation: morph-2 25s ease-in-out infinite;
}

.shape-dots {
    width: 250px;
    height: 250px;
    top: 30%;
    right: 5%;
    background-image: radial-gradient(rgba(255,255,255,0.4) 3px, transparent 3px);
    background-size: 25px 25px;
    opacity: 0.5;
    animation: float-2 35s ease-in-out infinite;
}

.shape-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    opacity: 1;
}

.shape-wave path {
    fill: rgba(255,255,255,0.08);
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%      { transform: translate(-30px, 40px) scale(1.05); }
    50%      { transform: translate(20px, -20px) scale(0.95); }
    75%      { transform: translate(-20px, -30px) scale(1.02); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33%      { transform: translate(40px, -30px) scale(1.08); }
    66%      { transform: translate(-30px, 20px) scale(0.92); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-40px, 40px); }
}

@keyframes float-rotate-1 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    25%      { transform: rotate(55deg) translate(20px, -20px); }
    50%      { transform: rotate(35deg) translate(-10px, 30px); }
    75%      { transform: rotate(50deg) translate(-30px, -10px); }
}

@keyframes float-rotate-2 {
    0%, 100% { transform: rotate(45deg) translate(0, 0); }
    33%      { transform: rotate(60deg) translate(-20px, 20px); }
    66%      { transform: rotate(30deg) translate(30px, -30px); }
}

@keyframes morph-1 {
    0%, 100% { border-radius: 50% 40% 60% 50%; transform: rotate(0deg) scale(1); }
    25%      { border-radius: 40% 60% 50% 50%; transform: rotate(90deg) scale(1.1); }
    50%      { border-radius: 60% 50% 40% 60%; transform: rotate(180deg) scale(0.9); }
    75%      { border-radius: 50% 50% 60% 40%; transform: rotate(270deg) scale(1.05); }
}

@keyframes morph-2 {
    0%, 100% { border-radius: 60% 40% 50% 60%; transform: rotate(0deg); }
    50%      { border-radius: 40% 60% 60% 40%; transform: rotate(-180deg); }
}

@keyframes celebrationPop {
    from { opacity: 0; transform: scale(0.85); }
    to   { opacity: 1; transform: scale(1); }
}

@keyframes celebrationBounce {
    0%   { transform: translateY(20px) scale(0.5); opacity: 0; }
    50%  { transform: translateY(-10px) scale(1.1); }
    100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .shape {
        animation: none !important;
    }
}

/* Responsive hero shapes */
@media (max-width: 768px) {
    .shape-1 { width: 200px; height: 200px; }
    .shape-2 { width: 150px; height: 150px; }
    .shape-3 { width: 100px; height: 100px; }
    .shape-8, .shape-9 { width: 300px; height: 300px; }
    .shape-dots { display: none; }
}

