/* ========================================
   PAWBY KITCHEN - Premium Bio-Link Page
   ======================================== */

/* CSS Variables */
:root {
    --primary: #1a3a5c;
    --primary-light: #2a4a73;
    --primary-dark: #0f2942;
    --cream: #F5E9DA;
    --cream-light: #FDF8F3;
    --accent: #FFD54F;
    --accent-light: #FFE082;
    --accent-glow: rgba(255, 213, 79, 0.4);
    --text-dark: #1a1a2e;
    --text-light: #6b7280;
    --white: #ffffff;
    
    --shadow-sm: 0 2px 8px rgba(26, 58, 92, 0.15);
    --shadow-md: 0 8px 24px rgba(26, 58, 92, 0.25);
    --shadow-lg: 0 16px 48px rgba(15, 41, 66, 0.35);
    --shadow-glow: 0 8px 32px rgba(255, 213, 79, 0.3);
    
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 50%;
    
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Reset & Base Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, #1a3a5c 100%);
    min-height: 100vh;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Container */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    position: relative;
    z-index: 1;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.hero-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 213, 79, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

/* Logo Section */
.logo-wrapper {
    margin-bottom: 24px;
    perspective: 1000px;
}

.logo-container {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
    animation: float 4s ease-in-out infinite;
}

.logo-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, var(--white) 0%, var(--cream-light) 100%);
    border-radius: var(--radius-lg);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 0 3px rgba(255, 213, 79, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 1),
        inset 0 -2px 4px rgba(26, 58, 92, 0.1);
    transform: rotate(-5deg);
    transition: var(--transition-normal);
}

.logo-container:hover .logo-bg {
    transform: rotate(0deg) scale(1.05);
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.35),
        0 0 0 3px rgba(255, 213, 79, 0.5),
        inset 0 2px 4px rgba(255, 255, 255, 1);
}

/* Rotating Product Logos */
.logo-icons {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    perspective: 1000px;
    padding: 15px;
}

.product-logo {
    position: absolute;
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
    opacity: 0;
    transform: rotateY(-180deg) scale(0.5);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
}

.product-logo.active {
    opacity: 1;
    transform: rotateY(0deg) scale(1);
    animation: wiggleProduct 3s ease-in-out infinite;
}

.product-logo.exit {
    opacity: 0;
    transform: rotateY(180deg) scale(0.5);
}

@keyframes wiggleProduct {
    0%, 100% {
        transform: rotateY(0deg) rotate(-5deg) scale(1);
    }
    25% {
        transform: rotateY(0deg) rotate(5deg) scale(1.05);
    }
    50% {
        transform: rotateY(0deg) rotate(-3deg) scale(1);
    }
    75% {
        transform: rotateY(0deg) rotate(3deg) scale(1.05);
    }
}

/* Brand Title */
.brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 8vw, 2.75rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.02em;
    margin-bottom: 12px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Tagline */
.tagline {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--cream);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.paw-icon {
    display: inline-block;
    animation: bounce 2s ease-in-out infinite;
}

.sub-tagline {
    font-size: 0.875rem;
    color: rgba(245, 233, 218, 0.8);
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 213, 79, 0.3);
    border-radius: var(--radius-full);
    color: var(--cream);
    text-decoration: none;
    transition: var(--transition-normal);
}

.social-icon svg,
.social-icon i {
    width: 20px;
    height: 20px;
}

.social-icon:hover {
    background: var(--accent);
    color: var(--primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-glow);
    border-color: var(--accent);
}

.social-icon:active {
    transform: translateY(-1px) scale(0.95);
}

/* ========================================
   LINKS SECTION
   ======================================== */
.links-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Link Card Base */
.link-card {
    position: relative;
    display: block;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 213, 79, 0.2);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    text-decoration: none;
    color: var(--text-dark);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
    transition:
        transform var(--transition-normal),
        box-shadow var(--transition-normal),
        background var(--transition-fast),
        border-color var(--transition-normal);
    cursor: pointer;
    -webkit-user-select: none;
    user-select: none;
}

.link-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.link-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 213, 79, 0.1) 100%);
    opacity: 0;
    transition: var(--transition-normal);
}

.link-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(255, 213, 79, 0.4);
}

.link-card:hover::before {
    opacity: 1;
}

.link-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: var(--shadow-sm);
}

/* Featured Card */
.link-card.featured {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border: 2px solid var(--accent);
    padding: 24px;
}

.link-card.featured .card-title,
.link-card.featured .card-subtitle {
    color: var(--white);
}

.link-card.featured .card-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.link-card.featured .card-menu {
    color: var(--accent);
}

.link-card.featured:hover {
    box-shadow:
        var(--shadow-lg),
        0 0 40px rgba(255, 213, 79, 0.3);
    transform: translateY(-6px);
}

.card-glow {
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(255, 213, 79, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(30px);
    opacity: 0.6;
    pointer-events: none;
}

/* Card Content */
.card-content {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--cream);
    border-radius: var(--radius-sm);
    font-size: 22px;
    flex-shrink: 0;
    transition: var(--transition-normal);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.8),
        0 2px 8px rgba(26, 58, 92, 0.15);
    border: 2px solid rgba(255, 213, 79, 0.3);
}

.link-card.featured .card-icon {
    background: var(--accent);
    width: 56px;
    height: 56px;
    font-size: 28px;
    border-color: rgba(255, 255, 255, 0.5);
}

.link-card:hover .card-icon {
    transform: scale(1.08) rotate(-3deg);
}

.card-text {
    flex: 1;
    min-width: 0;
}

.card-title {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 2px;
    transition: var(--transition-fast);
}

.link-card.featured .card-title {
    font-size: 1.125rem;
}

.card-subtitle {
    display: block;
    font-size: 0.8125rem;
    color: var(--text-light);
}

.card-menu {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    opacity: 0.6;
    transition: var(--transition-normal);
}

.card-menu svg,
.card-menu i {
    width: 20px;
    height: 20px;
}

.link-card:hover .card-menu {
    opacity: 1;
    color: var(--accent);
}

/* Ripple Effect */
.ripple-container {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
    pointer-events: none;
}

.ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    transform: scale(0);
    animation: ripple 0.6s ease-out forwards;
    opacity: 0.4;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    text-align: center;
    margin-top: 48px;
    padding-top: 24px;
    opacity: 0;
    animation: fadeIn 0.8s ease 1s forwards;
}

.footer p {
    font-size: 0.8125rem;
    color: rgba(245, 233, 218, 0.7);
    margin-bottom: 4px;
}

.footer .heart {
    display: inline-block;
    animation: heartbeat 1.5s ease-in-out infinite;
}

.footer .copyright {
    font-size: 0.75rem;
    color: rgba(245, 233, 218, 0.5);
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(-2deg);
    }
    50% {
        transform: translateY(-10px) rotate(2deg);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes heartbeat {
    0%, 100% {
        transform: scale(1);
    }
    25% {
        transform: scale(1.15);
    }
    50% {
        transform: scale(1);
    }
    75% {
        transform: scale(1.1);
    }
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

@keyframes cardBounce {
    0% { transform: scale(0.98); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */
@media (max-width: 480px) {
    .container {
        padding: 32px 16px 48px;
    }
    
    .logo-container {
        width: 100px;
        height: 100px;
    }
    
    .product-logo {
        width: 85px;
        height: 85px;
    }
    
    .brand-title {
        font-size: 2rem;
    }
    
    .link-card {
        padding: 16px;
    }
    
    .link-card.featured {
        padding: 20px;
    }
    
    .card-icon {
        width: 44px;
        height: 44px;
    }
    
    .link-card.featured .card-icon {
        width: 52px;
        height: 52px;
    }
    
    .social-icon {
        width: 40px;
        height: 40px;
    }
    
    .social-icon svg,
    .social-icon i {
        width: 18px;
        height: 18px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        padding: 48px 24px 64px;
    }
}

/* Hover states for non-touch devices */
@media (hover: hover) {
    .link-card:hover .card-title {
        color: var(--primary);
    }
    
    .link-card.featured:hover .card-title {
        color: var(--accent);
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
