/* 
    Rash Nail Lounge - Link Tree Styles 
    Mobile First Design
*/

:root {
    /* Color Palette */
    --primary-color: #d4a373;
    /* Gold/Beige for premium feel */
    --secondary-color: #faedcd;
    --background-dark: #121212;
    --surface-dark: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #aaaaaa;
    --accent-color: #e9c46a;

    /* Brand Colors */
    --facebook: #1877F2;
    --instagram: #E4405F;
    --tiktok: #000000;
    --youtube: #FF0000;
    --whatsapp: #25D366;

    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-medium: 0.3s ease;
}

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

body {
    font-family: 'Outfit', sans-serif;
    /* Fallback color */
    background-color: var(--background-dark);
    /* Background Image */
    background-image: url('images/rashbackground.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;

    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
}

/* Background Overlay for contrast */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: rgba(0, 0, 0, 0.6);
    /* Dark overlay */
    backdrop-filter: blur(3px);
    /* Optional: slight blur to background for focus */
}

/* Container */
.container {
    width: 100%;
    max-width: 360px;
    /* Mobile optimal width */
    padding: var(--spacing-lg) var(--spacing-md);
    padding-bottom: 120px;
    /* Space for fixed footer + float button */
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    z-index: 1;
}

/* Header Styles */
.profile-header {
    text-align: center;
    animation: slideDown 0.8s ease-out;
}

.logo-container {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--spacing-md);
    border-radius: 50%;
    padding: 4px;
    /* Border gap */
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--surface-dark);
    background-color: #fff;
    /* In case png transparency needs backing */
}

h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 0.95rem;
    color: #e0e0e0;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Link Groups */
.link-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    width: 100%;
}

/* Link Cards (Glassmorphism Buttons) */
.link-card {
    display: flex;
    align-items: center;
    padding: var(--spacing-md);
    /* 16px */

    /* Glassmorphism Effect */
    background: rgba(30, 30, 30, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);

    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
    /* Slide in animation per item */
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease-out forwards;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Stagger animations */
.link-card:nth-child(1) {
    animation-delay: 0.1s;
}

.link-card:nth-child(2) {
    animation-delay: 0.2s;
}

.link-card:nth-child(3) {
    animation-delay: 0.3s;
}

.link-card:nth-child(4) {
    animation-delay: 0.4s;
}

.link-card:nth-child(5) {
    animation-delay: 0.5s;
}

.business-group .link-card:nth-child(1) {
    animation-delay: 0.6s;
}

.business-group .link-card:nth-child(2) {
    animation-delay: 0.7s;
}

.business-group .link-card:nth-child(3) {
    animation-delay: 0.8s;
}

.business-group .link-card:nth-child(4) {
    animation-delay: 0.9s;
}

.business-group .link-card:nth-child(5) {
    animation-delay: 1.0s;
}

.link-card:hover,
.link-card:active {
    transform: translateY(-2px) scale(1.02);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-color);
}

.icon-wrapper {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-right: var(--spacing-md);
}

.link-text {
    font-weight: 500;
    font-size: 1rem;
    flex: 1;
    text-align: center;
}

/* Brand Specific Hover Colors (Optional, adds nice touch) */
.facebook:hover .icon-wrapper {
    color: var(--facebook);
}

.instagram:hover .icon-wrapper {
    color: var(--instagram);
}

.tiktok:hover .icon-wrapper {
    color: var(--text-primary);
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.youtube:hover .icon-wrapper {
    color: var(--youtube);
}

.whatsapp:hover .icon-wrapper {
    color: var(--whatsapp);
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);

    text-align: center;
    padding: 15px 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    z-index: 1000;

    opacity: 0;
    animation: fadeIn 1s ease-out 1.2s forwards;
}

.dev-link {
    color: orange;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.dev-link:hover {
    color: #ffcc00;
    text-decoration: underline;
}

/* Floating Action Button */
.float-btn {
    position: fixed;
    bottom: 80px;
    /* Above the footer */
    right: 20px;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: var(--background-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(212, 163, 115, 0.5);
    font-size: 1.5rem;
    z-index: 100;
    transition: transform var(--transition-medium);
    animation: bounceIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) 1.5s backwards;
}

.float-btn:hover {
    transform: scale(1.1) rotate(15deg);
}

.float-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(212, 163, 115, 0);
    animation: ripple 2s infinite;
}

@keyframes ripple {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 163, 115, 0.4);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(212, 163, 115, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 163, 115, 0);
    }
}

/* Keyframe Animations */
@keyframes slideDown {
    from {
        transform: translateY(-30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }

    80% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
    }
}

/* Responsive Adjustments */
@media (min-width: 768px) {
    .container {
        max-width: 420px;
    }

    .link-card {
        padding: var(--spacing-md) var(--spacing-lg);
    }

    h1 {
        font-size: 2rem;
    }
}