/* ==========================================================================
   Marly Oliveira - Linktree Styling (style.css)
   Aesthetic: Premium, Wellness, Sage Green, Warm Linen, Gold, Glassmorphism
   ========================================================================== */

/* Variables */
:root {
    --primary-sage: #709B74;
    --dark-sage: #2C3E2F;
    --medium-sage: #597760;
    --light-sage: #D7E6D3;
    --bg-mint: #ECF6EC;
    --bg-linen: #F5EFEB;
    --accent-gold: #D6A870;
    --accent-gold-hover: #C5935A;
    
    --text-main: #2C322D;
    --text-muted: #5D685E;
    
    --glass-bg: rgba(255, 255, 255, 0.55);
    --glass-border: rgba(255, 255, 255, 0.4);
    --glass-shadow: 0 8px 32px 0 rgba(89, 119, 96, 0.06);
    
    --whatsapp-green: #25D366;
    --instagram-pink: #E1306C;
}

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

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-mint);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    padding: 20px;
}

/* Smooth Scrolling & Interactive Backdrops */
.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.6;
    pointer-events: none;
    animation: moveGlow 20s infinite alternate ease-in-out;
}

.bg-glow-1 {
    width: 400px;
    height: 400px;
    background-color: var(--light-sage);
    top: -10%;
    left: -10%;
}

.bg-glow-2 {
    width: 500px;
    height: 500px;
    background-color: var(--bg-linen);
    bottom: -10%;
    right: -10%;
    animation-delay: -5s;
}

@keyframes moveGlow {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(80px, 50px) scale(1.15);
    }
}

/* Main Container */
.container {
    width: 100%;
    max-width: 480px; /* Standard mobile profile view */
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

/* Header Styling */
.profile-header {
    text-align: center;
    margin-bottom: 30px;
    margin-top: 10px;
    animation: fadeInDown 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.profile-img-container {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    margin: 0 auto 16px;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-sage), var(--accent-gold));
    box-shadow: 0 8px 24px rgba(89, 119, 96, 0.15);
    position: relative;
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    background-color: #fff;
}

.profile-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--dark-sage);
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.profile-subtitle {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-gold);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.profile-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 320px;
    margin: 0 auto;
    font-weight: 400;
}

/* Links List Container */
.links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

/* Link Card Base Styling */
.link-card {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 18px;
    background-color: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--glass-shadow);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Hover State */
.link-card:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.85);
    border-color: var(--accent-gold);
    box-shadow: 0 12px 28px rgba(89, 119, 96, 0.12);
}

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

/* Card Icons */
.card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(112, 155, 116, 0.1);
    color: var(--medium-sage);
    margin-right: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.link-card:hover .card-icon {
    background-color: var(--medium-sage);
    color: #fff;
}

.svg-icon {
    width: 22px;
    height: 22px;
}

/* Text Container inside Cards */
.card-text {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: left;
    padding-right: 10px;
}

.card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark-sage);
    margin-bottom: 3px;
    transition: color 0.3s ease;
}

.link-card:hover .card-title {
    color: var(--medium-sage);
}

.card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Badge for special highlight (e.g. Detox/Offer) */
.card-badge {
    position: absolute;
    top: 0;
    right: 38px;
    background: linear-gradient(135deg, var(--accent-gold), #bca27e);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Card Arrow Icon */
.card-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0c0b2;
    transition: all 0.3s ease;
}

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

.arrow-icon {
    width: 18px;
    height: 18px;
}

/* Specific Link Customizations */
/* WhatsApp Card Hover */
#link-whatsapp:hover {
    border-color: rgba(37, 211, 102, 0.4);
}
#link-whatsapp:hover .card-icon {
    background-color: var(--whatsapp-green);
    color: #fff;
}

/* Instagram Card Hover */
#link-instagram:hover {
    border-color: rgba(225, 48, 108, 0.4);
}
#link-instagram:hover .card-icon {
    background-color: var(--instagram-pink);
    color: #fff;
}

/* Detox Pulse Animation */
.detox-card {
    border: 1px dashed rgba(214, 168, 112, 0.5);
    background-color: rgba(255, 255, 255, 0.7);
    animation: borderPulse 2s infinite alternate;
}

@keyframes borderPulse {
    0% {
        border-color: rgba(214, 168, 112, 0.3);
        box-shadow: var(--glass-shadow);
    }
    100% {
        border-color: rgba(214, 168, 112, 0.7);
        box-shadow: 0 8px 24px rgba(214, 168, 112, 0.08);
    }
}

/* Footer Styling */
.profile-footer {
    text-align: center;
    margin-top: 10px;
    padding-bottom: 20px;
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
    opacity: 0;
}

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

.social-icons a {
    color: var(--medium-sage);
    transition: all 0.3s ease;
    display: inline-block;
}

.social-icons a:hover {
    color: var(--accent-gold);
    transform: translateY(-2px);
}

.footer-icon {
    width: 20px;
    height: 20px;
}

.footer-copyright {
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 0.3px;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive Scaling for Larger Monitors */
@media (min-width: 768px) {
    body {
        background-color: var(--bg-mint);
    }
    .container {
        padding: 40px;
        background: rgba(255, 255, 255, 0.25);
        border-radius: 30px;
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 0 20px 50px rgba(89, 119, 96, 0.04);
    }
}
