/* ============================================
   CAPTA - Link Page Styles
   Design System: Gold/Champagne + Dark Theme
   Premium & Elegant Link Tree-style Page
   ============================================ */

/* ========== CSS Variables ========== */
:root {
    /* Colors */
    --gold-primary: #C9A954;
    --gold-light: #E8D5A3;
    --gold-dark: #A68B3D;
    --gold-gradient: linear-gradient(135deg, #C9A954 0%, #E8D5A3 50%, #C9A954 100%);

    --dark-bg: #0A1628;
    --dark-secondary: #0D1B30;
    --dark-tertiary: #132240;
    --dark-card: #152847;

    --text-light: #FFFFFF;
    --text-muted: #9A9A9A;
    --text-dark: #0A0A0A;

    --whatsapp-green: #25D366;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

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

    /* Shadows */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-gold: 0 4px 30px rgba(201, 169, 84, 0.2);
    --shadow-gold-strong: 0 8px 40px rgba(201, 169, 84, 0.35);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

/* ========== Background Effects ========== */
.page-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse at 30% 10%, rgba(201, 169, 84, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 70% 90%, rgba(201, 169, 84, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(201, 169, 84, 0.03) 0%, transparent 70%),
        linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-secondary) 50%, var(--dark-bg) 100%);
}

.page-bg::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: url('../Site/csimbolo.png') no-repeat center;
    background-size: contain;
    opacity: 0.02;
    pointer-events: none;
}

/* ========== Container ========== */
.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* ========== Profile Section ========== */
.profile {
    text-align: center;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease;
}

.logo-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    background: var(--gold-gradient);
    border-radius: 50%;
    opacity: 0.4;
    filter: blur(20px);
    animation: pulse 3s ease-in-out infinite;
}

.logo-image {
    position: relative;
    width: 100px;
    height: 100px;
    object-fit: contain;
    z-index: 1;
    filter: drop-shadow(0 0 20px rgba(201, 169, 84, 0.4));
}

.profile-info {
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.logo-text {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 600;
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.profile-tagline {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ========== Links Section ========== */
.links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    flex: 1;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    background: var(--dark-card);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-medium);
    animation: fadeInUp 0.6s ease backwards;
}

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

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

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

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

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

.link-card:hover {
    transform: translateY(-4px);
    border-color: rgba(201, 169, 84, 0.4);
    box-shadow: var(--shadow-gold);
}

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

/* CTA Primary - WhatsApp */
.link-card.cta-primary {
    background: linear-gradient(135deg, rgba(201, 169, 84, 0.15) 0%, rgba(201, 169, 84, 0.08) 100%);
    border: 2px solid var(--gold-primary);
    position: relative;
    overflow: hidden;
}

.link-card.cta-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(201, 169, 84, 0.15),
            transparent);
    transition: 0.6s;
}

.link-card.cta-primary:hover::before {
    left: 100%;
}

.link-card.cta-primary:hover {
    border-color: var(--gold-light);
    box-shadow: var(--shadow-gold-strong);
    transform: translateY(-5px) scale(1.01);
}

.link-card.cta-primary .link-title {
    color: var(--gold-light);
    font-weight: 600;
}

/* Link Icon */
.link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(201, 169, 84, 0.1);
    border-radius: var(--radius-md);
    flex-shrink: 0;
    transition: var(--transition-medium);
}

.link-card:hover .link-icon {
    background: rgba(201, 169, 84, 0.2);
}

.link-icon svg {
    stroke: var(--gold-primary);
    fill: none;
}

.link-icon svg[fill="currentColor"] {
    fill: var(--gold-primary);
    stroke: none;
}

/* WhatsApp Icon Special */
.whatsapp-icon {
    background: rgba(37, 211, 102, 0.15);
}

.whatsapp-icon svg {
    fill: var(--whatsapp-green);
}

.link-card.cta-primary:hover .whatsapp-icon {
    background: rgba(37, 211, 102, 0.25);
}

/* Instagram Icon Special */
.instagram-icon {
    background: linear-gradient(135deg,
            rgba(131, 58, 180, 0.15) 0%,
            rgba(253, 29, 29, 0.15) 50%,
            rgba(252, 176, 69, 0.15) 100%);
}

.instagram-icon svg {
    fill: url(#instagram-gradient);
}

/* Link Content */
.link-content {
    flex: 1;
    min-width: 0;
}

.link-title {
    display: block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-light);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.link-subtitle {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Link Arrow */
.link-arrow {
    flex-shrink: 0;
    opacity: 0.5;
    transition: var(--transition-medium);
}

.link-arrow svg {
    stroke: var(--gold-primary);
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(4px);
}

/* ========== Footer ========== */
.footer {
    text-align: center;
    padding-top: 40px;
    margin-top: auto;
    animation: fadeIn 0.6s ease 0.5s backwards;
}

.footer p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.footer-credit a {
    color: var(--gold-primary);
    transition: var(--transition-fast);
}

.footer-credit a:hover {
    color: var(--gold-light);
}

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* ========== Responsive Design ========== */
@media (max-width: 520px) {
    .container {
        padding: 30px 16px 50px;
    }

    .profile-image-wrapper {
        width: 120px;
        height: 120px;
    }

    .profile-image {
        width: 120px;
        height: 120px;
    }

    .logo span {
        font-size: 1.75rem;
    }

    .profile-tagline {
        font-size: 0.9rem;
    }

    .link-card {
        padding: 16px;
        gap: 12px;
    }

    .link-icon {
        width: 44px;
        height: 44px;
    }

    .link-icon svg {
        width: 20px;
        height: 20px;
    }

    .link-title {
        font-size: 0.95rem;
    }

    .link-subtitle {
        font-size: 0.8rem;
    }
}

@media (min-width: 520px) {
    .container {
        padding: 60px 24px 80px;
    }

    .profile {
        margin-bottom: 50px;
    }

    .profile-image-wrapper {
        width: 160px;
        height: 160px;
    }

    .profile-image {
        width: 160px;
        height: 160px;
    }

    .links {
        gap: 18px;
    }

    .link-card {
        padding: 20px 24px;
        gap: 18px;
    }
}

/* ========== Hover Effects for Desktop ========== */
@media (hover: hover) {
    .link-card:hover {
        transform: translateY(-4px);
    }

    .link-card.cta-primary:hover {
        transform: translateY(-5px) scale(1.01);
    }
}

/* ========== Safe Area for Mobile ========== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    .container {
        padding-bottom: calc(60px + env(safe-area-inset-bottom));
    }
}