/* public_html/assets/frontend/css/link-in-bio.css - COMPLETE VERSION */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #fdfaf3;
    --secondary-color: #af6d3b;
    --white: #ffffff;
    --black: #000000;
    --transition: all 0.3s ease;
    --radius: 15px;
    --radius-lg: 25px;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 20px 40px rgba(175, 109, 59, 0.15);
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, var(--primary-color), #f8f4e9);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #333;
    overflow-x: hidden;
}

.link-in-bio-container {
    width: 100%;
    max-width: 800px;
    position: relative;
    overflow: hidden;
    animation: containerAppear 1s ease;
}

@keyframes containerAppear {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Background Animation */
.bg-animation {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: var(--secondary-color);
    animation: float 8s infinite ease-in-out;
    filter: blur(1px);
}

.circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.circle-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: -75px;
    animation-delay: 2s;
}

.circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Main Content */
.link-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: contentAppear 0.8s ease 0.2s both;
}

@keyframes contentAppear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Brand Section */
.brand-section {
    text-align: center;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease 0.4s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.logo-container {
    position: relative;
    width: 140px;
    height: 140px;
    margin: 0 auto 1.5rem;
}

.link-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    position: relative;
    z-index: 2;
    animation: logoFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 5px 15px rgba(175, 109, 59, 0.2));
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(5deg);
    }
}

.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 160%;
    height: 160%;
    background: radial-gradient(circle, var(--secondary-color) 0%, transparent 70%);
    opacity: 0.2;
    border-radius: 50%;
    animation: pulse 3s infinite;
    filter: blur(10px);
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.brand-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    background: linear-gradient(45deg, var(--secondary-color), #8a572f);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 10px rgba(175, 109, 59, 0.1);
    letter-spacing: 0.5px;
}

.brand-tagline {
    color: #666;
    font-size: 1.2rem;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.8;
}

/* Video Preview */
.video-preview {
    margin-bottom: 3rem;
    animation: fadeIn 1s ease 0.6s both;
}

.video-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    height: 220px;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.video-container:hover .hero-video {
    transform: scale(1.05);
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(175, 109, 59, 0.4), rgba(253, 250, 243, 0.4));
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-text {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 24px;
    border-radius: 50px;
    backdrop-filter: blur(5px);
    font-size: 1.1rem;
    transition: var(--transition);
}

.video-text i {
    font-size: 1.8rem;
    animation: pulse 2s infinite;
}

/* Links Section */
.links-section {
    margin-bottom: 3rem;
    animation: fadeIn 1s ease 0.8s both;
}

.links-title {
    text-align: center;
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 1rem;
    font-weight: 600;
}

.links-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.link-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.link-button {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem;
    background: var(--white);
    border: 2px solid #eee;
    border-radius: var(--radius);
    text-decoration: none;
    color: #333;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.link-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(175, 109, 59, 0.1), transparent);
    transition: left 0.6s ease;
}

.link-button:hover::before {
    left: 100%;
}

.link-button:hover {
    transform: translateY(-5px);
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-hover);
}

.link-button.primary-link {
    border-color: var(--secondary-color);
    background: linear-gradient(135deg, var(--secondary-color), #8a572f);
    color: white;
    box-shadow: 0 8px 20px rgba(175, 109, 59, 0.2);
}

.link-button.whatsapp-link:hover {
    border-color: #25D366;
    background: linear-gradient(135deg, #25D366, #1da851);
    color: white;
}

.link-icon {
    width: 55px;
    height: 55px;
    background: var(--primary-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    transition: var(--transition);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.link-button.primary-link .link-icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.link-button:hover .link-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--white);
    color: var(--secondary-color);
}

.link-text {
    flex: 1;
    text-align: left;
}

.link-title {
    display: block;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
    letter-spacing: 0.3px;
}

.link-subtitle {
    display: block;
    font-size: 0.9rem;
    color: #666;
    opacity: 0.8;
    line-height: 1.4;
}

.link-button.primary-link .link-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.link-arrow {
    color: #999;
    transition: var(--transition);
    font-size: 1.2rem;
}

.link-button:hover .link-arrow {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.link-button.primary-link .link-arrow {
    color: white;
}

/* Ripple Effect */
.ripple {
    position: absolute;
    background: rgba(175, 109, 59, 0.3);
    border-radius: 50%;
    transform: scale(0);
    animation: ripple 0.6s linear;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Features */
.features-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
    animation: fadeIn 1s ease 1s both;
}

.feature {
    text-align: center;
    padding: 1.8rem 1.2rem;
    background: var(--primary-color);
    border-radius: var(--radius);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--secondary-color);
}

.feature:hover::before {
    opacity: 0.05;
}

.feature > * {
    position: relative;
    z-index: 2;
}

.feature-icon {
    width: 65px;
    height: 65px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 1rem;
    transition: var(--transition);
    box-shadow: 0 6px 12px rgba(175, 109, 59, 0.2);
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(10deg);
    background: white;
    color: var(--secondary-color);
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: #333;
    font-weight: 600;
}

.feature p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Footer */
.link-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #eee;
    color: #999;
    font-size: 0.9rem;
    animation: fadeIn 1s ease 1.2s both;
}

.skip-link {
    margin-top: 1rem;
}

.skip-link a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.skip-link a:hover {
    color: #8a572f;
    gap: 0.8rem;
}

/* Responsive */
@media (max-width: 768px) {
    .link-content {
        padding: 2rem;
    }
    
    .brand-title {
        font-size: 2.2rem;
    }
    
    .logo-container {
        width: 120px;
        height: 120px;
    }
    
    .video-container {
        height: 180px;
    }
    
    .link-button {
        padding: 1.2rem;
    }
    
    .link-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
    
    .link-title {
        font-size: 1.1rem;
    }
    
    .features-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .link-content {
        padding: 1.5rem;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .links-title {
        font-size: 1.5rem;
    }
    
    .link-button {
        padding: 1rem;
        gap: 1rem;
    }
    
    .link-icon {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .link-title {
        font-size: 1rem;
    }
    
    .link-subtitle {
        font-size: 0.85rem;
    }
    
    .video-text {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .video-text i {
        font-size: 1.5rem;
    }
}

/* Loading Animation for Content */
.link-content > * {
    opacity: 0;
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.brand-section { animation-delay: 0.2s; }
.video-preview { animation-delay: 0.4s; }
.links-section { animation-delay: 0.6s; }
.features-section { animation-delay: 0.8s; }
.link-footer { animation-delay: 1s; }