/* --- Değişkenler (Temalar için) --- */
:root {
    --bg-color: #f4f7f6;
    --container-bg: #ffffff;
    --text-color: #333;
    --primary-color: #007bff;
    --card-bg: #ffffff;
    --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    --code-bg: #2d2d2d;
    --border-color: #e0e0e0;
}

[data-theme="dark"] {
    --bg-color: #121212;
    --container-bg: #1e1e1e;
    --text-color: #e0e0e0;
    --primary-color: #4a9eff;
    --card-bg: #2a2a2a;
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    --border-color: #444;
}

/* --- Genel Stiller --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
}

/* --- Header --- */
.header {
    background-color: var(--container-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.8);
}
[data-theme="dark"] .header {
    background-color: rgba(30, 30, 30, 0.9);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav a {
    color: var(--text-color);
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.theme-toggle-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: transform 0.3s;
}

.theme-toggle-btn:hover {
    transform: scale(1.2);
}

/* --- Hero Section --- */
.hero {
    text-align: center;
    padding: 60px 20px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary-color), #6a11cb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
    color: var(--text-color);
    opacity: 0.8;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.3);
}

/* --- Kod Bölümü --- */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--border-color);
    background-color: var(--card-bg);
    color: var(--text-color);
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
}

.filter-btn.active,
.filter-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.code-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.code-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.code-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.code-card h3 {
    margin-bottom: 10px;
    color: var(--primary-color);
}

.code-card p {
    margin-bottom: 20px;
    opacity: 0.9;
}

.code-block-wrapper {
    position: relative;
    flex-grow: 1;
}

.copy-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    z-index: 10;
    transition: background-color 0.3s;
}

.copy-btn:hover {
    background-color: #0056b3;
}

pre[class*="language-"] {
    margin: 0;
    padding: 1.5em;
    border-radius: 8px;
    font-size: 0.9rem;
    overflow-x: auto;
}

/* --- Footer --- */
.footer {
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
    color: var(--text-color);
    opacity: 0.7;
}

/* --- Responsive Tasarım --- */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 15px;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .code-grid {
        grid-template-columns: 1fr;
    }
}
/* --- YENİ SAYFALAR İÇİN EKLENEN STİLLER --- */

/* --- Kategoriler Sayfası --- */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card {
    background-color: var(--card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.category-card .icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.category-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.category-card p {
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 20px;
}

.category-card a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: color 0.3s;
}

.category-card a:hover {
    text-decoration: underline;
}

/* --- Hakkımızda Sayfası --- */
.about-section {
    margin-bottom: 40px;
}

.about-section h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.team-member {
    text-align: center;
}

.team-member img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid var(--primary-color);
}

.team-member h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.team-member p {
    color: var(--text-color);
    opacity: 0.7;
}

/* --- İletişim Sayfası --- */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.contact-form {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: #0056b3;
}

.contact-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.contact-info p {
    line-height: 1.8;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* --- Responsive Tasarım (Yeni Sayfalar için) --- */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }
}

/* --- ADMIN PANELİ İÇİN STİLLER --- */

/* Giriş Ekranı */
.login-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--bg-color);
}
.login-container {
    background-color: var(--card-bg);
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    text-align: center;
    width: 100%;
    max-width: 400px;
}
.login-container h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}
.login-hint {
    margin-top: 15px;
    font-size: 0.9rem;
    color: var(--text-color);
    opacity: 0.7;
}

/* Admin Paneli Genel */
.admin-dashboard {
    background-color: var(--bg-color);
    min-height: 100vh;
}
.admin-header {
    background-color: var(--container-bg);
    border-bottom: 2px solid var(--primary-color);
    padding: 1rem 0;
}
.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.admin-header h1 {
    color: var(--primary-color);
}
.logout-btn {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
}
.logout-btn:hover {
    background-color: #c82333;
}

.admin-main {
    padding: 2rem 0;
}
.admin-main h2 {
    margin-bottom: 1rem;
    color: var(--text-color);
}

/* Kod Formu */
.code-form-section {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: var(--card-shadow);
}
.code-form-section .form-group {
    margin-bottom: 20px;
}
.code-form-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.code-form-section input,
.code-form-section textarea,
.code-form-section select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Poppins', sans-serif;
}
.form-actions {
    display: flex;
    gap: 15px;
}
.cancel-btn {
    background-color: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

/* Kod Tablosu */
.code-table {
    width: 100%;
    background-color: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}
.code-table th,
.code-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}
.code-table th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
}
.code-table tr:last-child td {
    border-bottom: none;
}
.language-tag {
    background-color: var(--primary-color);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
}
.actions {
    display: flex;
    gap: 10px;
}
.edit-btn, .delete-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    color: white;
}
.edit-btn { background-color: #28a745; }
.delete-btn { background-color: #dc3545; }
.edit-btn:hover { background-color: #218838; }
.delete-btn:hover { background-color: #c82333; }

/* Responsive */
@media (max-width: 768px) {
    .code-table {
        font-size: 0.9rem;
    }
    .actions {
        flex-direction: column;
    }
}
/* ==== İLETİŞİM SAYFASI EKLER ==== */

/* İletişim container genel düzen */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

/* Form alanı */
.contact-form {
    flex: 1;
    min-width: 320px;
    background: var(--bg-secondary, #f7f7f7);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-form .form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    transition: border 0.2s, box-shadow 0.2s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 4px rgba(0,123,255,0.3);
}

.contact-form button {
    display: inline-block;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 10px;
    padding: 12px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
}

.contact-form button:hover {
    background: #0056b3;
    transform: translateY(-1px);
}

/* Sağ taraftaki iletişim bilgileri */
.contact-info {
    flex: 1;
    min-width: 280px;
    padding: 25px;
    background: var(--bg-secondary, #f7f7f7);
    border-radius: 16px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.contact-info h3 {
    margin-bottom: 15px;
    font-size: 22px;
}

.contact-info p {
    margin: 10px 0;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Lucide ikonlar */
.contact-info i {
    width: 18px;
    height: 18px;
    stroke: #007bff;
    stroke-width: 2;
}

/* E-posta bağlantısı */
.contact-info a[href^="mailto:"] {
    color: #007bff;
    text-decoration: none;
}

.contact-info a[href^="mailto:"]:hover {
    text-decoration: underline;
}

/* Sosyal medya ikonları */
.social-links {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    transition: transform 0.2s, background 0.3s;
}

.social-links a:hover {
    background: #0056b3;
    transform: scale(1.1);
}

.social-links i {
    width: 18px;
    height: 18px;
    stroke: white;
}

/* Responsive düzen */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
}
