/* ══════════════════════════════════════════
   Techv RP — Global Stylesheet
   Mor / Liquid Glass Tema
   ══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:wght@300;400;500&display=swap');

/* ── CSS DEĞİŞKENLERİ ── */
:root {
    --purple-deep:    #0d0010;
    --purple-dark:    #1a0030;
    --purple-mid:     #3d0068;
    --purple-core:    #7b00e0;
    --purple-bright:  #a855f7;
    --purple-light:   #d8b4fe;
    --purple-glow:    #c026d3;
    --glass-bg:       rgba(120, 0, 220, 0.08);
    --glass-border:   rgba(168, 85, 247, 0.25);
    --text-main:      #f0e6ff;
    --text-muted:     rgba(208, 176, 255, 0.6);
    --accent:         #e879f9;
}

/* ── RESET & BASE ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', Arial, sans-serif;
    background-color: var(--purple-deep);
    background-image: url(/assets/images/bg.webp);
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-main);
    overflow-x: hidden;
}

/* Arka plan üzerine mor tonu overlay */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 0% 0%, rgba(123,0,224,.45) 0%, transparent 65%),
        radial-gradient(ellipse 50% 45% at 100% 100%, rgba(192,38,211,.35) 0%, transparent 65%),
        rgba(13, 0, 16, 0.72);
    pointer-events: none;
    z-index: 0;
}

/* Tüm içeriğin overlay'in üstünde görünmesi için */
body > * {
    position: relative;
    z-index: 1;
}

/* ── NAVBAR ── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    height: 68px;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(13, 0, 16, 0.55);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 32px rgba(123, 0, 224, 0.18);
    z-index: 100;
}

/* ── LOGO ── */
.logo {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: 'Syne', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--purple-light);
    text-decoration: none;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
}

/* ── NAV LİNKLER ── */
.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: .88rem;
    font-weight: 500;
    letter-spacing: .02em;
    display: flex;
    align-items: center;
    gap: .45rem;
    transition: color .2s;
}

.nav-links a:hover {
    color: var(--purple-light);
}

.nav-links a.active {
    color: var(--accent);
}

.nav-links i {
    font-size: .8rem;
}

/* ── KATIL BUTONU ── */
.join-btn {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .55rem 1.4rem;
    border-radius: 50px;
    background: linear-gradient(135deg, var(--purple-core), var(--purple-glow));
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: .03em;
    box-shadow: 0 0 20px rgba(192, 38, 211, 0.45);
    transition: box-shadow .25s, transform .2s;
    white-space: nowrap;
}

.join-btn:hover {
    box-shadow: 0 0 36px rgba(192, 38, 211, .7);
    transform: translateY(-1px);
}

/* ── GENEL İÇERİK KAPSAYICI ── */
.server-content {
    padding: 120px 10% 80px;
    text-align: center;
    color: var(--text-main);
}

.server-content h2 {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #fff, var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── H2 GENEL ── */
h2 {
    font-family: 'Syne', sans-serif;
    text-align: center;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #fff, var(--purple-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── GALERİ / KART GRİD ── */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

/* ── TEMEL KART (Liquid Glass) ── */
.card {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(28px) saturate(160%);
    -webkit-backdrop-filter: blur(28px) saturate(160%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .08),
        inset 0 -1px 0 rgba(0, 0, 0, .2),
        0 8px 40px rgba(123, 0, 224, .15),
        0 2px 8px rgba(0, 0, 0, .3);
    transition: transform .3s ease, box-shadow .3s ease;
}

/* Cam üst parlaması */
.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, .06) 0%,
        transparent 50%,
        rgba(123, 0, 224, .04) 100%
    );
    pointer-events: none;
    z-index: 1;
    border-radius: inherit;
}

.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .18), transparent);
    z-index: 2;
}

.card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .12),
        0 20px 60px rgba(123, 0, 224, .35),
        0 4px 12px rgba(0, 0, 0, .4);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 0;
}

.card p {
    padding: 1rem 1.2rem;
    font-size: .88rem;
    color: var(--text-muted);
    line-height: 1.6;
    position: relative;
    z-index: 2;
}

/* ── ÖZELLİKLER BÖLÜMÜ ── */
.features,
.quick {
    padding: 80px 10%;
}

.feature-grid,
.quick-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

/* ── ÖZELLİK KARTLARI (Liquid Glass) ── */
.feature-card,
.quick-card {
    position: relative;
    border-radius: 22px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    padding: 2rem 1.8rem;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .07),
        0 8px 32px rgba(123, 0, 224, .12);
    transition: transform .3s ease, box-shadow .3s ease;
    overflow: hidden;
}

.feature-card::before,
.quick-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.05) 0%, transparent 55%);
    pointer-events: none;
    border-radius: inherit;
}

.feature-card::after,
.quick-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
}

.feature-card:hover,
.quick-card:hover {
    transform: translateY(-8px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .1),
        0 20px 50px rgba(123, 0, 224, .28);
}

.feature-card i,
.quick-card i {
    font-size: 1.8rem;
    color: var(--purple-bright);
    margin-bottom: 1rem;
    display: block;
    position: relative;
    z-index: 1;
}

.feature-card h3,
.quick-card h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .5rem;
    position: relative;
    z-index: 1;
}

.feature-card p,
.quick-card p {
    font-size: .85rem;
    color: var(--text-muted);
    line-height: 1.65;
    position: relative;
    z-index: 1;
}

/* ── BUTON ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
    padding: .65rem 1.4rem;
    background: linear-gradient(135deg, var(--purple-core), var(--purple-glow));
    color: #fff;
    font-family: 'Syne', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .03em;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(192, 38, 211, .4);
    transition: all .25s;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    transition: left .4s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    box-shadow: 0 6px 28px rgba(192, 38, 211, .65);
    transform: translateY(-1px);
}

/* ── SUNUCU DURUMU ── */
.server-status {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1.8rem;
    border-radius: 20px;
    width: 360px;
    text-align: center;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 8px 30px rgba(123,0,224,.15);
    overflow: hidden;
}

.server-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.16), transparent);
}

.server-status h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .5rem;
}

.server-status p {
    font-size: .85rem;
    color: var(--text-muted);
}

/* Online göstergesi */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 8px rgba(74,222,128,.7);
    margin-right: .4rem;
    animation: pulse-dot 2s ease infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: .6; transform: scale(.85); }
}

/* ── SOSYAL MEDYA SIDEBAR ── */
.social-sidebar {
    position: fixed;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: .7rem;
    z-index: 1000;
}

.social-item {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.07),
        0 4px 16px rgba(0,0,0,.25);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.social-item:hover {
    transform: translateX(5px);
    border-color: rgba(168,85,247,.5);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.1),
        0 6px 24px rgba(123,0,224,.4);
}

/* İkon renkleri */
.discord i  { color: #5865F2; }
.youtube i  { color: #ff4444; }
.twitch i   { color: #9146FF; }
.tiktok i   { color: #ffffff; }
.instagram i{ color: #e1306c; }

.social-item:hover .discord i  { filter: drop-shadow(0 0 6px #5865F2); }
.social-item:hover .youtube i  { filter: drop-shadow(0 0 6px #ff4444); }
.social-item:hover .twitch i   { filter: drop-shadow(0 0 6px #9146FF); }
.social-item:hover .instagram i{ filter: drop-shadow(0 0 6px #e1306c); }

.flag img {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    opacity: .75;
    transition: opacity .2s;
}

.social-item:hover .flag img {
    opacity: 1;
}

/* ── FOOTER ── */
.footer {
    position: relative;
    z-index: 1;
    margin-top: 80px;
    border-top: 1px solid var(--glass-border);
    background: rgba(13, 0, 16, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3.5rem 10% 1.5rem;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 3rem;
    margin-bottom: 2.5rem;
}

.footer-logo img {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    margin-bottom: .6rem;
    display: block;
}

.footer-logo h2 {
    font-family: 'Syne', sans-serif;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--purple-light);
    margin-bottom: .4rem;
    background: none;
    -webkit-text-fill-color: var(--purple-light);
    text-align: left;
    letter-spacing: -.01em;
}

.footer-logo p {
    font-size: .84rem;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 240px;
}

.footer-links,
.footer-social {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.footer-links h3,
.footer-social h3 {
    font-family: 'Syne', sans-serif;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--purple-bright);
    opacity: .7;
    margin-bottom: .4rem;
    background: none;
    -webkit-text-fill-color: var(--purple-bright);
    text-align: left;
}

.footer-links a,
.footer-social a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: .86rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: color .2s;
}

.footer-links a:hover,
.footer-social a:hover {
    color: var(--purple-light);
}

.footer-social i {
    width: 16px;
    font-size: .85rem;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    border-top: 1px solid rgba(168, 85, 247, .1);
    padding-top: 1.4rem;
    font-size: .75rem;
    color: var(--text-muted);
    opacity: .65;
}

/* ── FADE-IN ON SCROLL ── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .65s ease, transform .65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── RESPONSİF ── */
@media (max-width: 768px) {
    .nav-links { display: none; }
    .navbar { padding: 0 1.2rem; }
    .social-sidebar { display: none; }
    .footer-container { flex-direction: column; gap: 2rem; }
    .server-status { width: 100%; }
    .features, .quick, .server-content { padding: 80px 5% 40px; }
}

.login-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.login-modal.active { display: flex; }
 
.login-box {
  background: #12141f;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 18px;
  padding: 44px 40px 36px;
  max-width: 400px;
  width: 92%;
  text-align: center;
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  animation: modalPop .3s cubic-bezier(.34,1.56,.64,1);
}
@keyframes modalPop {
  from { opacity: 0; transform: scale(.85) translateY(24px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 14px; right: 16px;
  background: none; border: none;
  color: #666; font-size: 17px; cursor: pointer;
  transition: color .2s;
}
.modal-close:hover { color: #fff; }
.modal-logo img {
  width: 68px; height: 68px;
  border-radius: 50%;
  border: 2px solid rgba(88,101,242,.5);
  margin-bottom: 18px;
}
.login-box h2 { color: #fff; font-size: 1.45rem; font-weight: 700; margin-bottom: 8px; }
.login-box > p { color: #8b95a8; font-size: .88rem; line-height: 1.55; margin-bottom: 28px; }
 
.discord-login-btn {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; width: 100%; padding: 14px;
  background: #5865F2; color: #fff; border: none;
  border-radius: 10px; font-size: .98rem; font-weight: 700;
  cursor: pointer; letter-spacing: .3px;
  transition: background .2s, transform .15s, box-shadow .2s;
}
.discord-login-btn:hover {
  background: #4752c4;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(88,101,242,.35);
}
.discord-login-btn i { font-size: 1.2rem; }
 
.modal-footer-text { margin-top: 18px; font-size: .75rem; color: #4b5563; }
.modal-footer-text a { color: #5865F2; text-decoration: none; }
 
/* Navbar kullanıcı profili */
.user-profile-nav {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; position: relative;
  padding: 6px 14px 6px 8px; border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  transition: background .2s; user-select: none;
}
.user-profile-nav:hover { background: rgba(255,255,255,.1); }
.user-avatar-nav { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #5865F2; }
.user-name-nav { color: #e5e7eb; font-size: .88rem; font-weight: 600; }
 
.user-dropdown {
  display: none; position: absolute;
  top: calc(100% + 10px); right: 0;
  background: #1a1c2e; border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 6px; min-width: 165px;
  z-index: 9999; box-shadow: 0 12px 36px rgba(0,0,0,.4);
  animation: dropIn .18s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-dropdown.open { display: block; }
.user-dropdown a {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; color: #c9d1d9; text-decoration: none;
  border-radius: 6px; font-size: .85rem; transition: background .15s;
}
.user-dropdown a:hover { background: rgba(255,255,255,.07); color: #fff; }
.user-dropdown a:last-child { color: #f87171; }
.user-dropdown a:last-child:hover { background: rgba(248,113,113,.1); }

/* ─── style.css'e eklenecek CSS ─────────────────────────────── */

/* Navbar kullanıcı profili */
.user-profile-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  position: relative;
  padding: 6px 12px 6px 8px;
  border-radius: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.09);
  transition: background .2s;
  user-select: none;
}
.user-profile-nav:hover { background: rgba(255,255,255,.1); }

.user-avatar-nav {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #5865F2;
  flex-shrink: 0;
}

.user-nav-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1;
}

.user-name-nav {
  color: #e5e7eb;
  font-size: .88rem;
  font-weight: 600;
}

/* Rol rozeti - navbar */
.nav-role-badge {
  font-size: .65rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  letter-spacing: .3px;
  white-space: nowrap;
}

/* Dropdown */
.user-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #1a1c2e;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 6px;
  min-width: 200px;
  z-index: 9999;
  box-shadow: 0 16px 48px rgba(0,0,0,.5);
  animation: dropIn .18s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.user-dropdown.open { display: block; }

/* Dropdown üst kullanıcı bilgisi */
.dropdown-user-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 12px;
}
.dropdown-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #5865F2;
  flex-shrink: 0;
}
.dropdown-name {
  color: #fff;
  font-size: .9rem;
  font-weight: 700;
}
.dropdown-tag {
  color: #8892a4;
  font-size: .75rem;
  margin-top: 2px;
}

.dropdown-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: 4px 6px;
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: #c9d1d9;
  text-decoration: none;
  border-radius: 8px;
  font-size: .87rem;
  transition: background .15s;
}
.user-dropdown a:hover { background: rgba(255,255,255,.07); color: #fff; }
.user-dropdown a.dropdown-danger { color: #f87171; }
.user-dropdown a.dropdown-danger:hover { background: rgba(248,113,113,.1); }
.user-dropdown a i { width: 14px; text-align: center; }
