/* Public Links Page Styles */

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
}

.page-wrapper {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Background Decoration */
.bg-decoration {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
}

.bg-gradient {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.15) 0%, transparent 50%);
    animation: rotate 30s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Container */
.container {
    position: relative;
    z-index: 1;
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* Profile Section */
.profile {
    text-align: center;
    margin-bottom: 40px;
    width: 100%;
}

.profile-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--card-border);
    background: var(--card-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-image.placeholder {
    font-size: 48px;
    color: var(--text-color);
    opacity: 0.5;
}

.profile-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-color);
}

.profile-description {
    font-size: 16px;
    opacity: 0.8;
    max-width: 400px;
    margin: 0 auto;
}

/* Social Icons */
.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
    flex-wrap: wrap;
}

.social-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--card-bg);
    border: 2px solid var(--card-border);
    color: #ffffff;
    font-size: 26px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

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

/* Link Card */
.link-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.link-card:hover {
    transform: translateY(-2px);
    background: var(--accent-color);
    border-color: var(--accent-color);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.link-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.link-icon.link-icon-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.link-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.link-name {
    font-size: 16px;
    font-weight: 600;
}

.link-description {
    font-size: 13px;
    opacity: 0.7;
    margin-top: 4px;
    line-height: 1.4;
}

.link-arrow {
    opacity: 0.5;
    transition: opacity 0.3s;
}

.link-card:hover .link-arrow {
    opacity: 1;
}

/* Separator */
.separator {
    display: flex;
    align-items: center;
    margin: 24px 0;
    position: relative;
}

.separator::before,
.separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--card-border);
}

.separator-text {
    padding: 0 20px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.7;
}

/* Category Header */
.category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.9;
}

.category-header i {
    font-size: 16px;
    color: var(--accent-color);
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: 40px;
    text-align: center;
    font-size: 14px;
    opacity: 0.6;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 30px 16px;
    }
    
    .profile-image {
        width: 100px;
        height: 100px;
    }
    
    .profile-name {
        font-size: 24px;
    }
    
    .link-card {
        padding: 14px 16px;
    }
    
    .link-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile {
    animation: fadeInUp 0.6s ease;
}

.links-container > * {
    animation: fadeInUp 0.6s ease backwards;
}

.links-container > *:nth-child(1) { animation-delay: 0.1s; }
.links-container > *:nth-child(2) { animation-delay: 0.15s; }
.links-container > *:nth-child(3) { animation-delay: 0.2s; }
.links-container > *:nth-child(4) { animation-delay: 0.25s; }
.links-container > *:nth-child(5) { animation-delay: 0.3s; }
.links-container > *:nth-child(6) { animation-delay: 0.35s; }
.links-container > *:nth-child(7) { animation-delay: 0.4s; }
.links-container > *:nth-child(8) { animation-delay: 0.45s; }
.links-container > *:nth-child(9) { animation-delay: 0.5s; }
.links-container > *:nth-child(10) { animation-delay: 0.55s; }