:root {
    --bg-dark: #020617; /* Slate 950 */
    --text-main: #f8fafc; /* Slate 50 */
    --text-muted: #94a3b8; /* Slate 400 */
    --text-dim: #64748b; /* Slate 500 */
    
    --accent-blue: #0ea5e9; /* Sky 500 */
    --accent-purple: #8b5cf6; /* Violet 500 */
    
    --glass-bg: rgba(15, 23, 42, 0.6); /* Slate 900 with opacity */
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-hover: rgba(30, 41, 59, 0.8); /* Slate 800 with opacity */
    
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Background Mesh Gradient */
.background-mesh {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%);
    filter: blur(60px);
    pointer-events: none;
}

/* Avatar Image */
.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 3px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-bottom: 8px;
}

/* Container */
.container {
    width: 100%;
    max-width: 680px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    z-index: 1;
    position: relative;
}

/* Header */
.header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.tag {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #bae6fd; /* Azul bem claro similar à imagem */
    margin-bottom: 8px;
}

.tag svg {
    color: #bae6fd;
}

.title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0;
}

.subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-muted);
}

.description {
    font-size: 0.95rem;
    color: var(--text-dim);
    max-width: 480px;
    margin: 8px auto 0;
}

/* macOS Window */
.window {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.window-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    position: relative;
}

.window-controls {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 16px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.control.close { background-color: #ff5f56; }
.control.minimize { background-color: #ffbd2e; }
.control.maximize { background-color: #27c93f; }

.window-title {
    width: 100%;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.window-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Link Groups */
.link-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.group-title {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    margin-bottom: 4px;
    padding-left: 4px;
}

/* Link Cards */
.link-card {
    display: flex;
    align-items: center;
    padding: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link-card:hover {
    background: var(--glass-hover);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -10px rgba(0, 0, 0, 0.5);
}

.link-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    color: var(--accent-blue);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.link-card:hover .link-icon {
    background: rgba(14, 165, 233, 0.1);
    color: #38bdf8;
}

.link-content {
    flex: 1;
    min-width: 0; /* Prevents text overflow */
}

.link-content h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

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

.link-arrow {
    color: var(--text-dim);
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.2s ease;
    margin-left: 12px;
}

.link-card:hover .link-arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--text-main);
}

/* Share Button */
.share-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-main);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.share-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

/* Footer */
.footer {
    text-align: center;
    padding-top: 24px;
    padding-bottom: 16px;
}

.footer p {
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 32px 16px;
    }
    
    .title {
        font-size: 2.5rem;
    }
}

@media (max-width: 430px) {
    .window-body {
        padding: 16px;
    }
    
    .link-card {
        padding: 12px;
    }
    
    .link-icon {
        width: 40px;
        height: 40px;
        margin-right: 12px;
    }
    
    .link-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .link-content h3 {
        font-size: 0.95rem;
    }
    
    .link-content p {
        font-size: 0.8rem;
    }
    
    .title {
        font-size: 2.25rem;
    }
}

@media (max-width: 360px) {
    .container {
        padding: 24px 12px;
    }
    
    .window-body {
        padding: 12px;
    }
}
