/* Design Tokens & Custom Variables (Hiking & Mountains Pastel Theme) */
:root {
    --bg-gradient: linear-gradient(to bottom, #E3E9ED 0%, #EBEFEF 50%, #F5F4F0 100%);
    --primary-color: #7A8B99; /* Calm slate blue */
    --primary-hover: #637380;
    --secondary-color: #CFA499; /* Muted terracotta/dusty rose */
    --secondary-hover: #B88E83;
    
    --accent-peach: #EED6C4;
    --accent-mint: #C9D5C5;
    --accent-yellow: #EADCB9;
    
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(255, 255, 255, 0.95);
    --text-main: #343A40;
    --text-muted: #6C757D;
    --white: #FFFFFF;
    
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
    --shadow-md: 0 10px 25px -5px rgba(122, 139, 153, 0.12), 0 8px 16px -6px rgba(122, 139, 153, 0.06);
    --shadow-lg: 0 20px 40px -10px rgba(122, 139, 153, 0.18);
    
    --font-heading: 'Fredoka', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background: var(--bg-gradient);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 3rem 1rem;
    line-height: 1.6;
}

/* Landscape Theme Backdrop */
.theme-background {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: -2;
    pointer-events: none;
}

/* Clear Sky Sun (Subtle Misty Glow) */
.sun {
    position: absolute;
    top: 80px;
    right: 12%;
    width: 110px;
    height: 110px;
    background: radial-gradient(circle, #FFFDF2 0%, #F3E6D5 60%, #E3CEB5 100%);
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.45;
    box-shadow: 0 0 40px rgba(227, 206, 181, 0.25);
    z-index: -2;
}

/* Floating Clouds */
.floating-clouds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 350px;
    z-index: -1;
}

.cloud {
    position: absolute;
    fill: rgba(255, 255, 255, 0.65);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.02));
}

.cloud-1 {
    width: 130px;
    top: 50px;
    opacity: 0.9;
    animation: floatCloud 38s linear infinite;
}

.cloud-2 {
    width: 90px;
    top: 140px;
    opacity: 0.8;
    animation: floatCloud 26s linear infinite -12s;
}

.cloud-3 {
    width: 160px;
    top: 210px;
    opacity: 0.75;
    animation: floatCloud 48s linear infinite -5s;
}

@keyframes floatCloud {
    0% { transform: translateX(-200px); }
    100% { transform: translateX(calc(100vw + 200px)); }
}

/* Fixed Bottom Mountains */
.mountain-range {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 280px;
    z-index: -2;
}

/* Page Layout */
.page-container {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
    z-index: 10;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mountain/Badge Icon */
.hiking-icon-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid var(--white);
    border-radius: 50%;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.birthday-title {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.birthday-title .highlight {
    background: linear-gradient(120deg, #5A6977 0%, #A88F88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 92%;
    margin: 0 auto;
}

/* Premium Card Design (Glassmorphism) */
.card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 28px;
    padding: 2.5rem 2.25rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-main);
}

.text-center {
    text-align: center;
}

/* Profile Card Specifics */
.profile-card {
    align-items: center;
    text-align: center;
}

.profile-image-container {
    position: relative;
    width: 170px;
    height: 170px;
    margin-bottom: 0.5rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-md);
    z-index: 2;
    position: relative;
    transition: transform 0.5s ease;
}

.profile-card:hover .profile-image {
    transform: scale(1.05) rotate(3deg);
}

.glow-effect {
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: linear-gradient(45deg, #BFFCC6, #D5EBFE, #FFC6FF, #FFDAC1, #BFFCC6);
    background-size: 400%;
    z-index: 1;
    filter: blur(8px);
    opacity: 0.85;
    animation: animateGlow 12s linear infinite;
}

@keyframes animateGlow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.celebration-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

/* Payments & QR Card Specifics */
.payment-description {
    font-size: 0.98rem;
    color: var(--text-muted);
    margin-top: -0.75rem;
}

.qr-container {
    align-self: center;
    position: relative;
    width: 210px;
    height: 210px;
    background: var(--white);
    padding: 10px;
    border-radius: 22px;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.03);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.2), box-shadow 0.3s ease;
    overflow: hidden;
}

.qr-container:hover {
    transform: scale(1.06);
    box-shadow: var(--shadow-md);
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.qr-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(131, 162, 255, 0.95);
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    padding: 8px 0;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    font-family: var(--font-heading);
}

.qr-container:hover .qr-overlay-text {
    transform: translateY(0);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    padding: 0.9rem 1.75rem;
    border-radius: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.25, 0.8, 0.25, 1);
    width: 100%;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 6px 18px rgba(131, 162, 255, 0.35);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(131, 162, 255, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background-color: var(--white);
    color: var(--primary-color);
    border: 2px solid rgba(131, 162, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(131, 162, 255, 0.06);
    border-color: var(--primary-color);
}

/* Copy Link Container */
.copy-box {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.copy-label {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.copy-input-wrapper {
    display: flex;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.75);
    border: 1.5px solid rgba(131, 162, 255, 0.15);
    border-radius: 18px;
    padding: 5px;
}

.copy-input-wrapper input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-main);
    font-weight: 600;
    outline: none;
    min-width: 0;
}

.copy-input-wrapper .btn {
    width: auto;
    white-space: nowrap;
    padding: 0.6rem 1.4rem;
    border-radius: 14px;
}

/* Toast Notifications */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #33313B;
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 100;
    pointer-events: none;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.4s ease;
    opacity: 0;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* Footer styling */
.footer {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

/* Standard Animations */
.animate-pop {
    opacity: 0;
    animation: popIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s ease-out 0.35s forwards;
}

.animate-slide-up {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.12s forwards;
}

.animate-slide-up-delay {
    opacity: 0;
    animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.28s forwards;
}

@keyframes popIn {
    0% { transform: scale(0.88); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(40px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* Mobile Responsiveness Rules */
@media (max-width: 480px) {
    body {
        padding: 2rem 0.75rem;
    }
    
    .birthday-title {
        font-size: 2.25rem;
    }
    
    .card {
        padding: 1.85rem 1.35rem;
        gap: 1.25rem;
    }
    
    .profile-image-container {
        width: 140px;
        height: 140px;
    }
    
    .qr-container {
        width: 180px;
        height: 180px;
    }
    
    .copy-input-wrapper {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 0.5rem;
    }
    
    .copy-input-wrapper input {
        background: rgba(255, 255, 255, 0.8);
        border: 1.5px solid rgba(131, 162, 255, 0.2);
        border-radius: 14px;
        text-align: center;
    }
    
    .copy-input-wrapper .btn {
        width: 100%;
        padding: 0.85rem;
    }
}
