:root {
    --bg-gradient: radial-gradient(circle at top left, #e0eafc, #cfdef3);
    --text-color: #2d3436;
    --text-dim: #636e72;
    --card-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(255, 255, 255, 0.4);
    --shadow: 0 15px 35px rgba(31, 38, 135, 0.08);
    --tab-bg: rgba(0, 0, 0, 0.05);
    --accent-red: #FF0000;
}
body.dark-mode {
    --bg-gradient: radial-gradient(circle at top left, #0f172a, #1e293b);
    --text-color: #f1f1f1;
    --text-dim: #94a3b8;
    --card-bg: rgba(30, 41, 59, 0.85);
    --glass-border: rgba(255, 255, 255, 0.08);
    --shadow: 0 15px 45px rgba(0, 0, 0, 0.3);
    --tab-bg: rgba(255, 255, 255, 0.05);
}
body {
    background: var(--bg-gradient);
    color: var(--text-color);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; margin: 0; overflow-x: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.linktree-container {
    background: var(--card-bg);
    backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 32px; box-shadow: var(--shadow);
    padding: 40px 25px; max-width: 420px; width: 90%; margin: 40px auto;
    text-align: center; position: relative; display: flex;
    flex-direction: column; align-items: center; transition: background 0.3s ease;
}
.dark-mode-toggle {
    position: absolute; top: 25px; right: 25px; z-index: 100;
    background: rgba(128, 128, 128, 0.15); border: none; border-radius: 50%;
    width: 42px; height: 42px; cursor: pointer; display: flex;
    align-items: center; justify-content: center; font-size: 20px;
    color: var(--text-color); transition: all 0.3s ease;
}
.dark-mode-toggle:hover { transform: rotate(15deg) scale(1.1); background: rgba(128, 128, 128, 0.25); }
/* Profile Image */
.profile-image { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; margin-bottom: 20px; transition: transform 0.3s; }
.profile-image:hover { transform: scale(1.05); }
/* Tab Pill Tasarımı */
.tab-pill-container { display: flex; justify-content: center; margin-bottom: 30px; }
.tab-pill-wrapper {
    background-color: var(--tab-bg); padding: 8px; border-radius: 50px;
    display: inline-flex; gap: 5px; border: 1px solid var(--glass-border);
}
.tab-pill-btn {
    border: none; cursor: pointer; padding: 12px 30px; border-radius: 40px;
    font-size: 16px; font-weight: 600; color: var(--text-dim);
    background: transparent; transition: all 0.3s ease; display: flex; align-items: center; gap: 10px;
}
.tab-pill-btn.active { background-color: var(--card-bg); color: var(--text-color); box-shadow: var(--shadow); }
.tab-pill-btn i { font-size: 14px; opacity: 0.7; }
body.dark-mode .tab-pill-btn i { opacity: 0.9; }
.button-wrapper { position: relative; margin-bottom: 15px; width: 100%; }
.link-item-flex, .yt-lock-btn {
    display: flex; align-items: stretch; border-radius: 8px;
    overflow: hidden; transition: all 0.3s ease; width: 100%; border: none; cursor: pointer;
}
.yt-lock-btn {
    background: var(--accent-red); padding: 15px; color: white;
    justify-content: center; font-size: 16px;
}
.yt-lock-btn i { transition: transform 0.3s ease; margin-right: 8px; }
.yt-lock-btn:hover i { transform: scale(1.3); }
/* Ana Link Alanı */
.main-link-area {
    flex-grow: 1; display: flex; align-items: center; justify-content: space-between;
    padding: 15px 20px; color: white; text-decoration: none; font-size: 16px; font-weight: 600;
}
/* Paylaş Tetikleyici Buton */
.share-trigger-btn {
    background: rgba(0, 0, 0, 0.1); border: none; color: white;
    padding: 0 18px; cursor: pointer; border-left: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 18px; transition: background 0.2s;
}
.share-trigger-btn:hover { background: rgba(0, 0, 0, 0.2); }
/* Tarih Hover Efekti */
.btn-date-hover {
    font-size: 11px; background: rgba(0, 0, 0, 0.8); color: #fff;
    padding: 5px 10px; border-radius: 4px; opacity: 0;
    transform: translateX(20px); transition: all 0.3s ease; white-space: nowrap;
}
/* Hover Animasyonları */
.link-item-flex:hover, .yt-lock-btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.link-item-flex:hover .btn-date-hover { opacity: 1; transform: translateX(0); }
/* Paylaşım Modalı */
.maes-modal {
    display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    align-items: center; justify-content: center; padding: 20px; border-radius: 25px;
}
.maes-modal-content {
    background: var(--card-bg); color: var(--text-color); width: 100%; max-width: 400px;
    border-radius: 28px; padding: 30px; position: relative;
    box-shadow: var(--shadow); border: 1px solid var(--glass-border);
    animation: modalSlideUp 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.share-preview-card {
    background: #004d00; border-radius: 20px; padding: 30px;
    text-align: center; margin-bottom: 25px; color: white;
}
.share-preview-card i { font-size: 50px; margin-bottom: 15px; display: block; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2)); }
.share-preview-card strong { display: block; font-size: 18px; margin-bottom: 5px; }
.share-preview-card small { opacity: 0.8; font-size: 11px; word-break: break-all; }
.share-grid { display: flex; justify-content: space-between; gap: 10px; overflow-x: auto; padding-bottom: 10px; }
.share-item { text-decoration: none; color: var(--text-color); display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 65px; }
.share-item span { font-size: 10px; font-weight: 500; opacity: 0.8; }
.icon-box {
    width: 45px; height: 45px; border-radius: 50%; display: flex;
    align-items: center; justify-content: center; font-size: 20px;
    background: var(--tab-bg); border: 1px solid var(--glass-border); transition: transform 0.2s;
}
.share-item:hover .icon-box { transform: scale(1.1); }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; font-size: 20px; color: var(--text-dim); cursor: pointer; }
.is-hidden { display: none !important; }
.tab-content { display: none; animation: fadeIn 0.4s; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes modalSlideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
/* Sayfa Paylaş Butonu Konumlandırma */
.page-share-btn {
    position: absolute;
    top: 25px;
    left: 25px;
    z-index: 100;
    background: rgba(128, 128, 128, 0.15);
    border: none;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--text-color);
    transition: all 0.3s ease;
}

.page-share-btn:hover {
    transform: scale(1.1);
    background: rgba(128, 128, 128, 0.25);
}
/* Footer Sosyal Medya Düzeni */
.footer-social-grid {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding-bottom: 10px;
}
.footer-social-item {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--tab-bg);
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    text-decoration: none;
    border: 1px solid var(--glass-border);
    transition: all 0.3s ease;
}
.footer-social-item:hover {
    transform: translateY(-3px);
    background: var(--card-bg);
    box-shadow: var(--shadow);
    color: #6e8efb;
}
body.dark-mode .footer-social-item {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}
body.dark-mode .footer-social-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #a777e3;
}
/* --- Mobil Uyumluluk --- */
@media screen and (max-width: 480px) {
    .linktree-container {
        padding: 30px 15px;
        margin: 20px auto;
        width: 92%;
    }
    .page-share-btn, .dark-mode-toggle {
        top: 15px;
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    .page-share-btn { left: 15px; }
    .dark-mode-toggle { right: 15px; }
    .profile-image {
        width: 90px;
        height: 90px;
    }
    .tab-pill-btn {
        padding: 10px 15px;
        font-size: 14px;
        flex: 1;
        justify-content: center;
    }
    .main-link-area {
        padding: 12px 15px;
        font-size: 14px;
    }
    .maes-modal {
        padding: 10px;
    }
    .maes-modal-content {
        padding: 20px;
        border-radius: 24px;
        max-width: 100%;
        margin-bottom: 0;
        animation: modalSlideUpMobile 0.4s ease-out;
    }
    .share-grid {
        justify-content: flex-start;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
    }

    .share-preview-card {
        padding: 20px;
    }
}
@keyframes modalSlideUpMobile {
    from { transform: translateY(100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}