:root {
    --neon-glow: #00bfff;
    --bg-color: #121212;
    --card-color: rgba(25, 25, 25, 0.5);
    --text-color: #ffffff;
}
.theme-neon_blue { --neon-glow: #00bfff; }
.theme-sunset_orange { --neon-glow: #ff8c00; }
.theme-forest_green { --neon-glow: #228b22; }

html { scroll-behavior: smooth; height: 100%; }
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--text-color);
    overflow-x: hidden;
    min-height: 100%;
}
#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -100;
    object-fit: cover;
}
.page-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
.profile-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    flex-grow: 1;
}
.profile-card {
    background: var(--card-color);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    text-align: center;
    max-width: 600px;
    width: 100%;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn { from { opacity: 0; transform: scale(0.9); } to { opacity: 1; transform: scale(1); } }
.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--neon-glow);
    box-shadow: 0 0 15px var(--neon-glow), 0 0 25px var(--neon-glow);
    object-fit: cover;
    margin-bottom: 20px;
    animation: glow 2s infinite alternate;
}
@keyframes glow { from { box-shadow: 0 0 10px var(--neon-glow); } to { box-shadow: 0 0 25px var(--neon-glow), 0 0 35px var(--neon-glow); } }
.username { font-size: 2.5rem; font-weight: 600; margin: 0; }
.bio { font-size: 1.1rem; font-weight: 300; margin: 10px 0 20px 0; }

.discord-presence-card { background: rgba(0, 0, 0, 0.3); border-radius: 12px; padding: 15px; margin: 25px auto; max-width: 90%; transition: all 0.3s ease; text-align: left; }
.discord-presence-card.loading { opacity: 0.7; }
.discord-header { display: flex; align-items: center; }
.discord-avatar-wrapper { position: relative; margin-right: 15px; flex-shrink: 0; }
.discord-avatar { width: 60px; height: 60px; border-radius: 50%; }
.status-indicator { position: absolute; bottom: 2px; right: 2px; width: 15px; height: 15px; border-radius: 50%; border: 3px solid rgba(0, 0, 0, 0.3); }
.status-online { background-color: #43b581; }
.status-idle { background-color: #faa61a; }
.status-dnd { background-color: #f04747; }
.status-offline { background-color: #747f8d; }
.discord-user-info { display: flex; flex-direction: column; overflow: hidden; }
.discord-username { font-weight: 600; font-size: 1.1rem; }
.discord-activity { font-size: 0.9rem; color: #ccc; white-space: nowrap; overflow: hidden; }

.spotify-card { background: #1DB954; color: #fff; border-radius: 12px; padding: 15px; margin-top: 20px; text-align: left; transition: opacity 0.5s ease, transform 0.5s ease; opacity: 0; transform: translateY(20px); }
.spotify-header { display: flex; align-items: center; font-size: 0.8rem; opacity: 0.8; margin-bottom: 12px; }
.spotify-header .fa-spotify { font-size: 1.2rem; margin-right: 8px; }
.spotify-content { display: flex; align-items: center; }
#spotify-album-art { width: 60px; height: 60px; border-radius: 8px; margin-right: 15px; flex-shrink: 0; }
.spotify-info { overflow: hidden; }
#spotify-song { white-space: nowrap; overflow: hidden; }
#spotify-artist { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#spotify-song { font-weight: 600; font-size: 1rem; }
#spotify-artist { font-size: 0.9rem; opacity: 0.8; }

.marquee {
    display: inline-block;
    animation: marquee-scroll 8s linear infinite alternate;
    will-change: transform;
}
@keyframes marquee-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(var(--marquee-scroll-amount, -50px)); }
}

.links { display: flex; justify-content: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }
.links a { color: var(--text-color); font-size: 2rem; transition: transform 0.3s ease, color 0.3s ease; }
.links a:hover { transform: scale(1.2); color: var(--neon-glow); }

.contact-email { 
    margin-top: 25px; 
    width: 100%;
    text-align: center;
}
.contact-email a { 
    color: var(--text-color); 
    text-decoration: none; 
    opacity: 0.7; 
    transition: all 0.3s ease; 
    padding: 10px 15px;
    border-radius: 8px;
    display: inline-block;
}
.contact-email a:hover { 
    opacity: 1; 
    background-color: rgba(255, 255, 255, 0.1);
}
.contact-email i { 
    margin-right: 8px; 
}

.footer { 
    text-align: center; 
    padding: 20px; 
    font-size: 0.9em; 
    opacity: 0.6; 
    flex-shrink: 0;
}
.footer a { color: var(--text-color); text-decoration: none; }

#volume-control { position: fixed; bottom: 20px; left: 20px; font-size: 1.5rem; cursor: pointer; z-index: 100; opacity: 0.7; transition: opacity 0.3s; }
#volume-control:hover { opacity: 1; }
#player { display: none; }

@media (max-width: 600px) {
    .profile-card { padding: 30px 20px; }
    .username { font-size: 2rem; }
}

/* =========================================
   Kart Alt Bilgi (Ziyaretçi & Paylaş) - Revize Edilmiş
   ========================================= */
.card-footer {
    width: 100%;
    display: flex;
    justify-content: center; /* Ortadaki 'İletişim' butonunu hizalar */
    align-items: center;
    margin-top: 25px;
    position: relative; /* Köşelere hizalama için referans noktası */
    padding: 8px 0; /* Dikey boşluk */
    height: 40px; /* Sabit bir yükseklik vererek hizalamayı garantiler */
}

.visitor-counter {
    position: absolute;
    left: 15px; /* Sol kenardan boşluk */
    bottom: 12px; /* Alttan boşluk */
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.visitor-counter:hover {
    opacity: 1;
}


.contact-email {
    /* Flexbox bunu zaten ortalayacak, özel bir ayara gerek yok */
}

.share-button-wrapper {
    position: absolute;
    right: 15px; /* Sağ kenardan boşluk */
    bottom: 5px; /* Alttan boşluk */
}

#shareButton {
    background: none;
    border: none;
    color: var(--text-color);
    opacity: 0.7;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
}

#shareButton:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

#shareButton.copied {
    background-color: #43b581; /* Başarı yeşili */
    opacity: 1;
    color: #ffffff;
}