body, h1, h2, h3, p, a { margin:0; padding:0; font-family: Arial, sans-serif; }
body { background:#f5f5f5; color:#333; transition: 0.3s; }
.container { width:90%; max-width:1200px; margin:0 auto; }

.site-header { background: linear-gradient(90deg,#6a11cb,#2575fc); color:white; padding:2rem 0; text-align:center; }
.site-header h1 { font-size:2.5rem; margin-bottom:0.5rem; }
/* Kontroller alanı şık tasarım */
.controls {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.controls input, 
.controls select {
    padding: 0.6rem 1rem;
    border-radius: 50px;
    border: 1px solid #ddd;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
    min-width: 180px;
}

.controls input:focus, 
.controls select:focus {
    border-color: #2575fc;
    box-shadow: 0 0 8px rgba(37,117,252,0.4);
}

.controls button#darkModeToggle {
    background: linear-gradient(135deg,#6a11cb,#2575fc);
    color: white;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.controls button#darkModeToggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,117,252,0.5);
}

/* Dark mode uyumlu */
body.dark-mode .controls input, 
body.dark-mode .controls select {
    background: #333;
    color: #ddd;
    border: 1px solid #555;
}

body.dark-mode .controls input:focus, 
body.dark-mode .controls select:focus {
    box-shadow: 0 0 8px rgba(106,17,203,0.4);
    border-color: #6a11cb;
}

body.dark-mode .controls button#darkModeToggle {
    background: linear-gradient(135deg,#2575fc,#6a11cb);
}


/* Directory grid 3 sütun */
.directory { display:grid; grid-template-columns: repeat(3,1fr); gap:1.5rem; margin:2rem 0; }
.site-card { background:white; padding:1.5rem; border-radius:10px; box-shadow:0 4px 12px rgba(0,0,0,0.1); display:flex; gap:1rem; align-items:flex-start; transition: 0.3s; }
.site-card:hover { transform: translateY(-5px); }
.site-card .icon { font-size:2.5rem; color:#6a11cb; }
.site-card .site-info h3 a { text-decoration:none; color:#2575fc; }
.site-card .site-info p { margin:0.5rem 0; font-size:0.9rem; color:#555; }
.site-card .category { background:#2575fc; color:white; font-size:0.8rem; padding:0.2rem 0.5rem; border-radius:5px; }

.pagination { display:flex; justify-content:center; gap:1rem; margin-bottom:2rem; }
.pagination button { padding:0.4rem 0.8rem; border-radius:5px; border:1px solid #2575fc; background:white; cursor:pointer; }
.pagination button.active { background:#2575fc; color:white; }

.site-footer { background:#333; color:white; text-align:center; padding:1.5rem 0; margin-top:2rem; }
.site-footer .social-icons a { color:white; margin:0 0.5rem; font-size:1.2rem; }
.site-footer .social-icons a:hover { color:#2575fc; }

/* Dark Mode */
body.dark-mode { background:#1e1e1e; color:#ddd; }
body.dark-mode .site-header { background: linear-gradient(90deg,#0f0f0f,#1a1a1a); }
body.dark-mode .site-card { background:#2c2c2c; }
body.dark-mode .site-card .site-info h3 a, body.dark-mode .site-card .category { color:#6a11cb; }
body.dark-mode .controls input, body.dark-mode .controls select { background:#444; color:#ddd; }
body.dark-mode .category-btn { background:#6a11cb; }
body.dark-mode .category-btn:hover { background:#2575fc; }

/* Responsive */
@media(max-width:900px){ .directory{ grid-template-columns:repeat(2,1fr); } }
@media(max-width:600px){ .directory{ grid-template-columns:1fr; } }


/* Kategori menüsü şık tasarım */
.category-menu {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0;
    padding: 0.5rem 0;
}

.category-btn {
    padding: 0.45rem 0.9rem;
    background: #2575fc;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37,117,252,0.4);
    background: #6a11cb;
}

.category-btn.active {
    background: #6a11cb;
    box-shadow: 0 4px 12px rgba(106,17,203,0.5);
}

/* Dark mode uyumlu */
body.dark-mode .category-btn {
    background: #6a11cb;
    color: white;
}

body.dark-mode .category-btn:hover {
    background: #2575fc;
    box-shadow: 0 4px 12px rgba(37,117,252,0.4);
}

/* Responsive */
@media(max-width:600px) {
    .category-menu {
        gap: 0.4rem;
    }
    .category-btn {
        font-size: 0.85rem;
        padding: 0.35rem 0.7rem;
    }
}
