/* --- Değişkenler & Renk Paleti --- */
:root {
    --bg-color: #0a0a0a;
    /* Simsiyah */
    --card-bg: #111111;
    /* Kartlar için bir tık açık */
    --text-main: #e0e0e0;
    /* Kırık beyaz yazı */
    --text-muted: #888888;
    /* Gri detaylar */
    --accent: #6a8a4a;
    /* SENİN SEÇTİĞİN YEŞİL */
    --accent-hover: #56703c;
    /* Yeşilin koyusu (hover için) */
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main);
    line-height: 1.6;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    padding: 40px 0;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: -1px;
}

.dot {
    color: var(--accent);
}

nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
    align-items: center;
}

nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 1rem;
    transition: 0.3s;
}

nav a:hover {
    color: var(--accent);
}

.btn-outlined {
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 10px 18px;
    border-radius: 4px;
    background: transparent;
    transition: 0.3s;
}

.btn-outlined:hover {
    border-color: var(--accent-hover);
    color: #fff;
    background: rgba(106, 138, 74, 0.1);
}

/* Hero */
.hero {
    padding: 80px 0;
}

.mono-tag {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
    color: #fff;
}

.addbotText {
    color: var(--accent);
    text-decoration: none;
    padding-top: 10px;
}

.highlight {
    background: linear-gradient(120deg, #6a8a4a, #9dbf7d, #6a8a4a);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: accentShift 6s ease-in-out infinite;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.form-status {
    margin-top: 12px;
    font-size: 0.9rem;
    color: var(--text-muted);
    min-height: 1.2em;
}

.form-status.success {
    color: var(--accent);
}

.form-status.error {
    color: #ff6b6b;
}

/* Bölüm Başlıkları */
.section-title {
    font-family: var(--font-mono);
    color: var(--text-main);
    font-size: 1.5rem;
    margin-bottom: 30px;
    border-bottom: 1px solid #222;
    padding-bottom: 10px;
}

.section-title::before {
    content: "# ";
    color: var(--accent);
}

/* Projects Grid */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

.card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 8px;
    border: 1px solid #222;
    transition: 0.3s;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(106, 138, 74, 0.12);
    transform: translateY(-5px);
}

.card h3 {
    color: #fff;
    margin-bottom: 10px;
}

.card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.tags span {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    background: rgba(106, 138, 74, 0.1);
    /* Yeşilin saydam hali */
    padding: 4px 8px;
    border-radius: 4px;
    margin-right: 5px;
}

/* Contact Form */
.contact {
    padding-bottom: 80px;
}

.contact-wrapper {
    max-width: 600px;
}

.contact-wrapper p {
    color: var(--text-muted);
    margin-bottom: 20px;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-main);
}

input,
textarea {
    width: 100%;
    padding: 12px;
    background: var(--card-bg);
    border: 1px solid #333;
    color: #fff;
    border-radius: 4px;
    font-family: var(--font-main);
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.btn-primary {
    background-color: var(--accent);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #222;
    margin-top: auto;
}

.mono-text {
    font-family: var(--font-mono);
    color: #444;
    font-size: 0.8rem;
}

/* Animasyonlar */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay {
    animation: fadeIn 1.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Önceki Değişkenler Aynen Kalıyor --- */
/* Yeni Eklenenler */

/* Login Overlay (Tam Ekran Kaplama) */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(5, 5, 5, 0.96);
    backdrop-filter: blur(6px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-box {
    text-align: center;
    background: #111;
    padding: 40px;
    border: 1px solid #333;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(106, 138, 74, 0.2);
}

.btn-discord {
    background-color: #5865F2;
    /* Discord Rengi */
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
}

.btn-discord:hover {
    background-color: #4752c4;
}

.nav-login {
    margin-top: 0;
    padding: 8px 14px;
    font-size: 0.85rem;
}

/* Navbar Sağ Taraf */
.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Dil Seçici */
.lang-select {
    background: #0f0f0f;
    color: var(--text-main);
    border: 1px solid var(--accent);
    padding: 8px 36px 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    min-width: 90px;
    appearance: none;
    text-align: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23a8c68a' d='M0 0h10L5 6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.lang-select option {
    background: #0f0f0f;
    color: #fff;
}

.lang-select:focus {
    outline: none;
    border-color: var(--accent-hover);
    box-shadow: 0 0 0 2px rgba(106, 138, 74, 0.2);
}

/* Kullanıcı Profili (Navbarda) */
.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #1a1a1a;
    padding: 5px 15px;
    border-radius: 50px;
    border: 1px solid #333;
}

.user-profile img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.user-profile span {
    font-size: 0.85rem;
    color: var(--text-main);
}

#logoutBtn {
    background: none;
    border: none;
    color: #ff4444;
    cursor: pointer;
    font-size: 0.9rem;
}

/* Form Input Readonly ayarı */
input:disabled {
    background-color: #1a1a1a;
    color: #666;
    cursor: not-allowed;
}

/* --- MEVCUT CSS'İN ALTINA EKLE veya DEĞİŞTİR --- */

/* 1. Navbar Düzeltmesi (Overlap Fix) */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    /* Mobilde aşağı kaymasına izin ver */
    gap: 15px;
    /* Elemanlar birbirine yapışmasın */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* 2. Hero Düzeni (GitHub Kartı ile Yan Yana) */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 80px 0;
    flex-wrap: wrap;
    /* Mobilde alt alta gelsin */
}

.hero-content {
    flex: 2;
    min-width: 300px;
}

/* GitHub Kartı Tasarımı */
.github-card {
    flex: 1;
    min-width: 250px;
    background: #161b22;
    /* GitHub Dark rengi */
    border: 1px solid #30363d;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.gh-header {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gh-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-val {
    font-weight: 700;
    color: #fff;
    font-size: 1.2rem;
}

.stat-label {
    font-size: 0.8rem;
    color: #8b949e;
}

.gh-footer {
    font-size: 0.8rem;
    color: #8b949e;
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 10px var(--accent);
}

/* 3. Featured Card (Active Bot Project) */
.active-project-section {
    margin-bottom: 60px;
}

.featured-card {
    background: linear-gradient(145deg, #111111, #0d0d0d);
    border: 1px solid #333;
    border-left: 4px solid var(--accent);
    /* Sol tarafı yeşil çizgi */
    padding: 30px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.featured-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.featured-header h3 {
    font-size: 1.8rem;
    color: #fff;
    margin: 0;
}

.live-badge {
    background: rgba(106, 138, 74, 0.2);
    color: var(--accent);
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--accent);
    animation: pulse 2s infinite;
}

.dev-stats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.time-stat {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.time-stat i {
    color: var(--accent);
    margin-right: 5px;
}

/* 4. Logout Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-box {
    background: #111;
    border: 1px solid #333;
    padding: 30px;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
}

.modal-actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.btn-danger {
    background: #ff4444;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger:hover {
    background: #cc0000;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(106, 138, 74, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(106, 138, 74, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(106, 138, 74, 0);
    }
}

@keyframes accentShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Loader overlay */
.app-loader {
    position: fixed;
    inset: 0;
    background: #050505;
    backdrop-filter: none;
    z-index: 12000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.app-loader p {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}
