:root {
    --bg-color: #f1f5f9;
    --card-bg: #ffffff;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --primary-color: #3b82f6;
    --shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #020617;
        --card-bg: #0f172a;
        --text-primary: #f8fafc;
        --text-secondary: #94a3b8;
        --primary-color: #3b82f6;
        --shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-color);
    font-family: 'Outfit', sans-serif;
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    line-height: 1.5;
}

.profile-container {
    width: 100%;
    max-width: 480px;
    /* Mobile width */
    background-color: var(--card-bg);
    min-height: 100vh;
    box-shadow: var(--shadow);
    position: relative;
    padding-bottom: 40px;
    overflow-x: hidden;
}

.banner {
    height: 180px;
    background: linear-gradient(135deg, #0d0f15 0%, #1e2235 100%);
    position: relative;
}

/* Abstract modern pattern in banner */
.banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 80% 20%, rgba(255, 61, 119, 0.4) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(51, 138, 255, 0.4) 0%, transparent 40%);
    opacity: 0.8;
}

.profile-header {
    text-align: center;
    padding: 0 20px;
    margin-top: -65px;
    position: relative;
    z-index: 2;
}

.avatar-container {
    width: 130px;
    height: 130px;
    border-radius: 50%;
    background-color: var(--card-bg);
    padding: 6px;
    margin: 0 auto;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.name {
    font-size: 24px;
    font-weight: 700;
    margin-top: 15px;
    color: var(--text-primary);
}

.title {
    font-size: 15px;
    color: var(--primary-color);
    font-weight: 500;
    margin-top: 4px;
}

.bio {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 12px;
    padding: 0 15px;
}

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding: 0 20px;
}

.action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.icon-wrapper {
    width: 50px;
    height: 50px;
    background-color: var(--bg-color);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.action-btn:hover .icon-wrapper,
.action-btn:active .icon-wrapper {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

.action-btn span {
    font-size: 12px;
    font-weight: 500;
}

.links-container {
    margin-top: 35px;
    padding: 0 25px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.link-card {
    display: flex;
    align-items: center;
    background-color: var(--bg-color);
    padding: 12px;
    border-radius: 18px;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.link-card:hover {
    border-color: rgba(59, 130, 246, 0.2);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.link-card:active {
    transform: scale(0.98);
}

.link-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-right: 15px;
}

.link-text {
    flex-grow: 1;
    font-weight: 500;
    font-size: 15px;
}

.link-arrow {
    color: var(--text-secondary);
    font-size: 14px;
    opacity: 0.6;
}

.save-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 50px);
    margin: 35px auto 10px auto;
    padding: 18px;
    background-color: var(--text-primary);
    color: var(--card-bg);
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.save-btn i {
    margin-right: 10px;
    font-size: 18px;
}

.save-btn:active {
    transform: scale(0.97);
}

footer {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-secondary);
    opacity: 0.6;
}

/* --- THEMES --- */

/* Glassmorphism Theme */
body.theme-glass {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}
.theme-glass .profile-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
}
.theme-glass .name, .theme-glass .link-text { color: white; }
.theme-glass .title { color: #60a5fa; }
.theme-glass .link-card { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.05); }

/* Gold Premium Theme */
body.theme-gold {
    background: #0a0a0a;
}
.theme-gold .profile-container {
    background: #111;
    color: #e5e5e5;
    border-left: 2px solid #d4af37;
    border-right: 2px solid #d4af37;
}
.theme-gold .name { color: #d4af37; }
.theme-gold .title { color: #c5a028; text-transform: uppercase; letter-spacing: 1px; }
.theme-gold .link-icon { background: linear-gradient(135deg, #d4af37 0%, #c5a028 100%) !important; }
.theme-gold .save-btn { background: #d4af37; color: black; }
.theme-gold .link-card { border-bottom: 1px solid rgba(212, 175, 55, 0.2); background: transparent; }

/* Minimalist White Theme */
body.theme-minimal {
    --bg-color: #ffffff;
    --card-bg: #ffffff;
    --text-primary: #000000;
    --text-secondary: #666666;
    background: #f8f9fa;
}
.theme-minimal .profile-container {
    box-shadow: 0 10px 50px rgba(0,0,0,0.03);
}
.theme-minimal .banner { height: 100px; background: #eee; }
.theme-minimal .save-btn { border-radius: 4px; }
.theme-minimal .link-card { border-radius: 8px; background: #fcfcfc; border: 1px solid #eee; }
