/* Temel Ayarlar */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    min-height: 100vh;
    background-color: #f4f7f6;
    color: #333;
}

/* Sol Menü */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    padding: 20px;
}

.sidebar .logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 40px;
    text-align: center;
}

.sidebar nav ul {
    list-style: none;
}

.sidebar nav ul li {
    margin-bottom: 15px;
}

.sidebar nav ul li a {
    color: #bdc3c7;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 5px;
    transition: 0.3s;
}

.sidebar nav ul li a:hover, .sidebar nav ul li a.active {
    background-color: #34495e;
    color: white;
}



/* --- ARAMA ÇUBUĞU --- */
.arama-alani {
    flex: 1;
    margin: 0 30px;
}

#arama-kutusu {
    width: 100%;
    max-width: 400px;
    padding: 12px 20px;
    border: 2px solid #ecf0f1;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
    background: #fff url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2395a5a6" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>') no-repeat 15px center;
    padding-left: 45px;
}

#arama-kutusu:focus {
    border-color: #3498db;
    box-shadow: 0 0 10px rgba(52, 152, 219, 0.1);
}






/* Ana İçerik */
.main-content {
    flex: 1;
    padding: 40px;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.btn-primary {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #2980b9;
}

/* Etkinlik Kartları (Grid Sistemi) */
.etkinlik-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.etkinlik-karti {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s;
}

.etkinlik-karti:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

.kart-ust {
    margin-bottom: 15px;
}

.etiket {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    color: white;
}

.etiket.test { background-color: #e74c3c; }
.etiket.eslestir { background-color: #2ecc71; }

.kart-orta h3 {
    font-size: 18px;
    margin-bottom: 5px;
}

.kart-orta p {
    font-size: 14px;
    color: #7f8c8d;
    margin-bottom: 20px;
}

.kart-alt {
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.btn-icon {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
}

.btn-icon:hover {
    background: #f8f9fa;
    border-color: #bdc3c7;
}

/* --- MODAL (AÇILIR PENCERE) STİLLERİ --- */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1000; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100%; 
    background-color: rgba(0,0,0,0.6); 
    backdrop-filter: blur(5px); /* Arka planı hafif bulanık yapar */
}

.modal-icerik {
    background-color: #fff;
    margin: 8% auto;
    padding: 40px;
    border-radius: 15px;
    width: 80%;
    max-width: 800px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: asagidanGel 0.3s ease-out;
}

@keyframes asagidanGel {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.kapat-btn {
    position: absolute;
    right: 25px;
    top: 20px;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    color: #bdc3c7;
    transition: 0.2s;
}

.kapat-btn:hover { color: #e74c3c; }

.sablon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.sablon-karti {
    padding: 30px 20px;
    text-align: center;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s;
}

.sablon-karti h3 { margin-bottom: 10px; font-size: 18px; }
.sablon-karti p { font-size: 13px; color: #7f8c8d; }
.sablon-karti .ikon { font-size: 50px; margin-bottom: 15px; }

.sablon-karti.aktif:hover {
    border-color: #3498db;
    background: #f4f9fd;
    transform: translateY(-5px);
}

.sablon-karti.pasif {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}