/* =============================================
   PAARY SWEETS & BAKERY — Link-in-Bio Styles
   Premium Indian Confectionery Branding
   ============================================= */

/* === Design Tokens === */
:root {
    --primary-maroon: #6B1F2B;
    --accent-maroon: #8B1E22;
    --soft-gold: #C8A26A;
    --ivory-bg: #F8F3ED;
    --warm-beige: #EFE4D7;
    --card-bg: #FFFDFC;
    --border-color: #E7D9CC;
    --text-primary: #3D2A26;
    --text-secondary: #7B625C;
    --gradient-cta: linear-gradient(135deg, #8B1E22, #B22D2D);
    --shadow-sm: 0 2px 8px rgba(107, 31, 43, 0.06);
    --shadow-md: 0 4px 20px rgba(107, 31, 43, 0.08);
    --shadow-lg: 0 8px 32px rgba(107, 31, 43, 0.12);
    --shadow-card: 0 4px 16px rgba(107, 31, 43, 0.06), 0 1px 4px rgba(0,0,0,0.04);
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --font-heading: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-body: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition-smooth: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* === Body & Background === */
body {
    font-family: var(--font-body);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: var(--ivory-bg);
    position: relative;
    overflow-x: hidden;
}

/* Warm ivory luxury background with subtle radial glow */
.bg-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 60% 50% at 50% 20%, rgba(200, 162, 106, 0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 30% 80%, rgba(107, 31, 43, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 50% 60% at 70% 80%, rgba(200, 162, 106, 0.06) 0%, transparent 70%);
}

/* Very light traditional floral pattern */
.bg-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.04;
    background-image:
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%236B1F2B' fill-opacity='1'%3E%3Ccircle cx='40' cy='40' r='2'/%3E%3Ccircle cx='40' cy='20' r='1.5'/%3E%3Ccircle cx='40' cy='60' r='1.5'/%3E%3Ccircle cx='20' cy='40' r='1.5'/%3E%3Ccircle cx='60' cy='40' r='1.5'/%3E%3Ccircle cx='28' cy='28' r='1'/%3E%3Ccircle cx='52' cy='28' r='1'/%3E%3Ccircle cx='28' cy='52' r='1'/%3E%3Ccircle cx='52' cy='52' r='1'/%3E%3Cpath d='M40 30 Q45 35 40 40 Q35 35 40 30Z' stroke='%236B1F2B' fill='none' stroke-width='0.5'/%3E%3Cpath d='M40 40 Q45 45 40 50 Q35 45 40 40Z' stroke='%236B1F2B' fill='none' stroke-width='0.5'/%3E%3Cpath d='M30 40 Q35 35 40 40 Q35 45 30 40Z' stroke='%236B1F2B' fill='none' stroke-width='0.5'/%3E%3Cpath d='M40 40 Q45 35 50 40 Q45 45 40 40Z' stroke='%236B1F2B' fill='none' stroke-width='0.5'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
}

/* Soft vignette edges */
.bg-vignette {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(61, 42, 38, 0.08) 100%);
}

/* === Container === */
.container {
    max-width: 480px;
    width: 100%;
    margin: 0 auto;
    background-color: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    position: relative;
    z-index: 1;
    padding-bottom: 24px;
    border: 1px solid var(--border-color);
}

/* Gold decorative accents at top and bottom of container */
.top-accent {
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--soft-gold), transparent);
    opacity: 0.7;
}

.bottom-accent {
    height: 2px;
    margin: 8px 40px 0;
    background: linear-gradient(90deg, transparent, var(--soft-gold), transparent);
    opacity: 0.4;
}

/* === Profile Section === */
.profile-section {
    padding: 32px 24px 20px;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, rgba(239, 228, 215, 0.25), rgba(255, 253, 252, 0));
}

/* Decorative gold corner flourishes */
.profile-section::before,
.profile-section::after {
    content: '❧';
    position: absolute;
    font-size: 18px;
    color: var(--soft-gold);
    opacity: 0.35;
}

.profile-section::before {
    top: 16px;
    left: 20px;
}

.profile-section::after {
    top: 16px;
    right: 20px;
    transform: scaleX(-1);
}

/* Logo card */
.profile-image-container {
    position: relative;
    width: 200px;
    margin: 0 auto 18px;
}

.logo-card {
    background: white;
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(200, 162, 106, 0.2);
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
}

.logo-card:hover {
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.profile-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    transition: transform var(--transition-smooth);
}

/* Brand name — luxury serif */
.brand-name {
    font-family: var(--font-heading);
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-maroon);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
    line-height: 1.2;
}

/* Gold accent divider */
.gold-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 8px auto 10px;
    max-width: 200px;
}

.gold-divider::before,
.gold-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--soft-gold), transparent);
}

.divider-ornament {
    color: var(--soft-gold);
    font-size: 10px;
    line-height: 1;
}

/* Tagline */
.tagline {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Location */
.location {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-weight: 300;
}

.location i {
    color: var(--accent-maroon);
    font-size: 11px;
    margin-right: 4px;
}

/* === Social Icons === */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-maroon);
    font-size: 17px;
    text-decoration: none;
    background: rgba(107, 31, 43, 0.06);
    border: 1px solid rgba(107, 31, 43, 0.1);
    transition: all var(--transition-smooth);
}

.social-icon:hover {
    color: var(--soft-gold);
    background: rgba(200, 162, 106, 0.1);
    border-color: var(--soft-gold);
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 14px rgba(200, 162, 106, 0.25);
}

/* === Links Section === */
.links-section {
    padding: 12px 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Link card */
.link-button {
    display: flex;
    align-items: center;
    padding: 16px 18px;
    background-color: var(--card-bg);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 15px;
    box-shadow: var(--shadow-card);
    transition: all var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 162, 106, 0.06), transparent);
    transition: left 0.7s ease;
}

.link-button:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    border-color: var(--soft-gold);
    background-color: #FFFCF8;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:active {
    transform: translateY(-1px);
}

/* Icon circle */
.button-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    font-size: 20px;
    background: linear-gradient(135deg, rgba(107, 31, 43, 0.08), rgba(107, 31, 43, 0.14));
    color: var(--primary-maroon);
    transition: all var(--transition-smooth);
}

.link-emoji {
    font-size: 20px;
    line-height: 1;
}

.link-button:hover .button-icon {
    background: linear-gradient(135deg, var(--primary-maroon), var(--accent-maroon));
    color: white;
    box-shadow: 0 3px 10px rgba(107, 31, 43, 0.25);
    transform: scale(1.05);
}

.link-button:hover .link-emoji {
    filter: brightness(1.15);
    transform: scale(1.1);
}

/* Arrow indicator */
.link-arrow {
    margin-left: auto;
    font-size: 12px;
    color: var(--border-color);
    transition: all var(--transition-smooth);
}

.link-button:hover .link-arrow {
    color: var(--soft-gold);
    transform: translateX(3px);
}

/* === Footer === */
footer {
    text-align: center;
    padding: 24px 0;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

footer p {
    margin-bottom: 6px;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}

.footer-links a {
    color: var(--primary-maroon);
    text-decoration: none;
    transition: color var(--transition-smooth);
    font-size: 12px;
}

.footer-links a:hover {
    color: var(--soft-gold);
    text-decoration: underline;
}

.footer-sep {
    color: var(--border-color);
    margin: 0 4px;
}

.footer-credit {
    margin-top: 10px;
    font-size: 11px;
    color: var(--text-secondary);
    opacity: 0.75;
}

.footer-credit a {
    color: var(--primary-maroon);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-smooth);
}

.footer-credit a:hover {
    color: var(--soft-gold);
    text-decoration: underline;
}

/* === Bottom CTA Button === */
.bottom-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 16px 20px;
    z-index: 100;
    background: linear-gradient(to top, var(--ivory-bg) 60%, transparent);
    pointer-events: none;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 480px;
    width: 100%;
    height: 56px;
    padding: 0 32px;
    background: var(--gradient-cta);
    background-size: 200% 200%;
    color: white;
    border-radius: 14px;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    border: none;
    box-shadow: 0 6px 24px rgba(139, 30, 34, 0.35);
    transition: all var(--transition-smooth);
    position: relative;
    overflow: hidden;
    pointer-events: all;
    animation: ctaGlow 4s ease-in-out infinite;
}

@keyframes ctaGlow {
    0%, 100% { box-shadow: 0 6px 24px rgba(139, 30, 34, 0.35); }
    50% { box-shadow: 0 8px 32px rgba(139, 30, 34, 0.5), 0 0 20px rgba(200, 162, 106, 0.15); }
}

.cta-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(45deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 32px rgba(139, 30, 34, 0.45), 0 0 24px rgba(200, 162, 106, 0.2);
    background-position: 100% 50%;
}

.cta-btn:hover::after {
    opacity: 1;
    animation: shimmerButton 1.5s infinite;
}

.cta-btn:active {
    transform: translateY(-1px);
}

/* === Animations === */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes shimmerButton {
    0% { transform: rotate(45deg) translateX(-100%); }
    100% { transform: rotate(45deg) translateX(100%); }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.03); }
    100% { transform: scale(1); }
}

/* Page entrance animation */
.container {
    animation: slideUp 0.6s ease-out;
}

/* Shimmer effect class */
.shimmer {
    position: relative;
    overflow: hidden;
}

.shimmer::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
        transparent,
        rgba(200, 162, 106, 0.08),
        rgba(200, 162, 106, 0.15),
        rgba(200, 162, 106, 0.08),
        transparent);
    animation: shimmerEffect 2s ease-in-out infinite;
    border-radius: inherit;
    pointer-events: none;
}

@keyframes shimmerEffect {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Stagger entrance for link cards */
.link-button {
    opacity: 0;
    animation: slideUp 0.5s ease-out forwards;
}

.link-button:nth-child(1) { animation-delay: 0.1s; }
.link-button:nth-child(2) { animation-delay: 0.2s; }
.link-button:nth-child(3) { animation-delay: 0.3s; }
.link-button:nth-child(4) { animation-delay: 0.4s; }
.link-button:nth-child(5) { animation-delay: 0.5s; }
.link-button:nth-child(6) { animation-delay: 0.6s; }

/* === Responsive — Mobile First === */
@media (max-width: 520px) {
    body {
        padding: 12px 10px 100px;
    }

    .container {
        border-radius: 20px;
    }

    .profile-section {
        padding: 28px 18px 16px;
    }

    .profile-image-container {
        width: 170px;
    }

    .brand-name {
        font-size: 24px;
    }

    .tagline {
        font-size: 12px;
        letter-spacing: 1.5px;
    }

    .links-section {
        padding: 10px 14px 14px;
        gap: 10px;
    }

    .link-button {
        padding: 14px 14px;
        font-size: 14px;
    }

    .button-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        margin-right: 12px;
    }

    .link-emoji {
        font-size: 18px;
    }

    .social-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .bottom-buttons {
        padding: 12px 14px;
    }

    .cta-btn {
        height: 52px;
        font-size: 15px;
        border-radius: 12px;
    }

    footer {
        margin-bottom: 70px;
    }
}

@media (max-width: 360px) {
    .brand-name {
        font-size: 22px;
    }

    .profile-image-container {
        width: 150px;
    }

    .link-button {
        padding: 12px 12px;
        font-size: 13px;
    }

    .button-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
        margin-right: 10px;
    }
}

/* Ensure no horizontal scroll */
html, body {
    max-width: 100vw;
    overflow-x: hidden;
}

/* Bottom padding for sticky CTA */
body {
    padding-bottom: 100px;
}

/* Touch-friendly: minimum tap target 44px */
a, button {
    min-height: 44px;
}

/* Smooth font rendering */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Focus styles for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--soft-gold);
    outline-offset: 2px;
}

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