@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap');

:root {
    --bg-light: #cbd5e1;
    --bg-dark: #334155;
    --text-light: #111827;
    --text-dark: #f8fafc;
    --link-bg-light: #e2e8f0;
    --link-bg-dark: rgba(255,255,255,0.09);
    --divider-light: #64748b;
    --divider-dark: rgba(255,255,255,0.35);
    --switcher-bg-light: rgba(15,23,42,0.12);
    --switcher-bg-dark: rgba(255,255,255,0.18);
    --switcher-border-light: rgba(15,23,42,0.22);
    --switcher-border-dark: rgba(255,255,255,0.30);
}

html.dark { --bg: var(--bg-dark); --text: var(--text-dark); }
html:not(.dark) { --bg: var(--bg-light); --text: var(--text-light); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    cursor: default;
    transition: background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.container { 
    position: fixed;
    top: 35px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;          /* ← Güncellendi: 750px */
    padding: 0 24px;
    box-sizing: border-box;
}

/* Mobil Responsive */
@media (max-width: 520px) {
    .container {
        padding: 0 18px;
        top: 20px;
    }
    .avatar-wrapper {
        width: 175px;
        height: 175px;
        margin-bottom: 20px;
    }
    .name { font-size: 1.7rem; }
    .title { font-size: 1.05rem; }
    .bio { 
        font-size: 1.02rem; 
        line-height: 1.46; 
        max-width: 620px; 
    }
    .link-item {
        padding: 16px 20px;
        margin-bottom: 12px;
    }
    .main-share-btn {
        margin: 28px auto 35px;
        padding: 13px 24px;
    }
    .social-footer {
        gap: 22px;
        font-size: 1.85rem;
        margin: 40px 0 20px;
    }
}

.lang-btn, .theme-btn {
    position: absolute;
    top: 24px;
    width: 52px;
    height: 52px;
    background: var(--switcher-bg-light);
    border: 2px solid var(--switcher-border-light);
    border-radius: 50%;
    color: var(--text);
    font-size: 1.4rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html.dark .lang-btn,
html.dark .theme-btn {
    background: var(--switcher-bg-dark);
    border-color: var(--switcher-border-dark);
}
.lang-btn { left: 24px; }
.theme-btn { right: 24px; }

.lang-btn:hover, .theme-btn:hover {
    background: #64748b;
    color: white;
    border-color: #64748b;
    transform: scale(1.08);
}
html.dark .lang-btn:hover,
html.dark .theme-btn:hover {
    background: #94a3b8;
    border-color: #94a3b8;
    color: #111827;
}

.flag {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.profile { text-align: center; margin-bottom: 40px; }
.avatar-wrapper {
    width: 200px; height: 200px; margin: 0 auto 24px;
    border: 8px solid #475569;
    border-radius: 50%;
    background: var(--bg);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
html:not(.dark) .avatar-wrapper {
    border-color: #334155;
}
#avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }

.name { font-size: 1.85rem; font-weight: 600; margin-bottom: 4px; }
.title { font-size: 1.15rem; opacity: 0.85; margin-bottom: 16px; }

.bio { 
    font-size: 1.05rem; 
    line-height: 1.48; 
    max-width: 620px;      /* ← Bio 2 satır olacak şekilde genişletildi */
    margin: 0 auto; 
    text-align: center;
}

.main-share-btn {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; max-width: 240px; margin: 32px auto 40px;
    background: #475569; 
    color: white; 
    border: none;
    padding: 14px 28px; 
    font-size: 1.05rem; 
    font-weight: 500;
    border-radius: 9999px; 
    box-shadow: 0 8px 20px rgba(71,85,105,0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html.dark .main-share-btn {
    background: #64748b;
}
.main-share-btn:hover,
html.dark .main-share-btn:hover {
    background: linear-gradient(135deg, #3b82f6, #1e40af) !important;
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(30,64,175,0.4);
}

.link-item {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--link-bg-light);
    margin-bottom: 14px;
    border-radius: 16px;
    padding: 18px 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html.dark .link-item { background: var(--link-bg-dark); }
.link-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: white;
}
.link-item a { text-decoration: none; color: inherit; flex: 1; font-weight: 500; }

.copy-btn { background: none; border: none; font-size: 1.5rem; cursor: pointer; }

.social-footer { 
    display: flex; 
    justify-content: center; 
    gap: 28px; 
    font-size: 2rem; 
    margin: 48px 0 24px; 
}
.social-icon { 
    color: inherit; 
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); 
}
.social-icon:hover { 
    transform: scale(1.25) rotate(8deg); 
    filter: drop-shadow(0 6px 12px var(--accent)); 
}

.divider {
    height: 1px;
    background: var(--divider-light);
    margin: 24px 0;
}
html.dark .divider { background: var(--divider-dark); }

.footer { 
    text-align: center; 
    font-size: 0.95rem; 
    opacity: 0.7; 
}

.theme-transitioning * {
    transition: background-color 0.45s cubic-bezier(0.4, 0, 0.2, 1) 60ms,
                color 0.45s cubic-bezier(0.4, 0, 0.2, 1) 60ms,
                border-color 0.45s cubic-bezier(0.4, 0, 0.2, 1) 60ms !important;
}

.toast {
    position: fixed; 
    bottom: 30px; 
    left: 50%; 
    transform: translateX(-50%) translateY(100px);
    background: var(--text); 
    color: var(--bg);
    padding: 14px 24px; 
    border-radius: 9999px; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    font-size: 1rem; 
    font-weight: 500; 
    opacity: 0; 
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); 
    z-index: 9999;
}
.toast.show { 
    transform: translateX(-50%) translateY(0); 
    opacity: 1; 
    visibility: visible; 
}

/* engxneerz kırmızı gradient */
.coded-by {
    background: linear-gradient(90deg, #ef4444, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    text-decoration: none;
}
.coded-by:hover {
    opacity: 0.85;
}