/* Genel ayarlar */
body { display:flex; flex-direction:column; min-height:100vh; margin:0 }
main, main.content { padding:20px }
section { margin-bottom:30px }
h2 { color:#2c3e50 }

/* Butonlar */
.btn, .whatsapp-btn { display:inline-block; padding:10px 15px; margin-top:10px; text-decoration:none; border-radius:5px }
.btn { background:#3498db; color:white }
.whatsapp-btn { background:#25D366; color:white }
.auth-buttons .btn { margin-left:10px; padding:8px 12px; border-radius:4px; text-decoration:none; font-size:14px; box-shadow:0 3px 0 #1a252f; transition:all 0.2s ease }
.auth-buttons .btn:hover { transform:translateY(-2px) }
.auth-buttons .login { background:#3498db; color:white }
.auth-buttons .signup { background:#2ecc71; color:white }
.auth-buttons .admin-panel { background:#e67e22; color:white }
.auth-buttons .admin-panel:hover { background:#d35400; transform:translateY(-2px) }
.btn-home { display:inline-block; margin-top:10px; padding:10px 15px; border-radius:8px; background:#27ae60; color:white; text-decoration:none; font-weight:bold; transition:0.2s }
.btn-home:hover { background:#1e8449; transform:translateY(-2px) }
.download-btn, .system_button {
    height: 35px;
    color: #fff;
    font-weight: bold;
    border-radius: 6px;
    padding: 8px 16px;
    margin-top: 5px;
    margin-bottom: 5px;
    cursor: pointer;
    text-shadow: 0 1px 1px rgba(0,0,0,0.2);
    box-shadow: 0 4px #2c5fa4;
    transition: all 0.2s ease-in-out;

    /* ORTALAMA İÇİN EKLENENLER */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
}.download-btn { padding:8px 70px; margin-left:7px; font-size:13px; border:1px solid #2c5fa4; background:linear-gradient(#4A90E2,#357ABD); text-decoration:none; vertical-align:middle }
.download-btn:hover { background:linear-gradient(#5AA0F2,#3d6fbf) }
.download-btn:active { box-shadow:0 2px #2c5fa4; transform:translateY(2px) }
.system_button { background:linear-gradient(#4A90E2,#357ABD); border:1px solid #2c5fa4; margin-left:5px }
.system_button:hover { background:linear-gradient(#5AA0F2,#3d6fbf) }
.system_button:active { box-shadow:0 2px #2c5fa4; transform:translateY(2px) }
.send_button { padding:8px 16px; background:#27ae60; color:white; border:none; border-radius:6px; cursor:pointer }

/* Header ve Topbar */
header { background:#2c3e50; color:white; padding:20px; text-align:center }
.topbar { position:fixed; top:0; left:230px; right:0; height:60px; background:#34495e; color:white; display:flex; justify-content:space-between; align-items:center; padding:0 20px; box-shadow:0 2px 5px rgba(0,0,0,0.2); z-index:1001 }
.topbar .logo { font-weight:bold }

/* Sidebar */
/* Sidebar */
.sidebar {
    width: 230px;
    position: fixed;
    top: 60px;
    left: 0;
    bottom: 25px;
    background: #2c3e50;
    color: white;
    overflow-y: auto;
    padding-top: 0;
    box-sizing: border-box;
    z-index: 1000;
}
.sidebar, * { box-sizing:border-box }
.sidebar-logo { width:100%; text-align:center; margin:0; padding:0 }
.sidebar-logo img { max-width:230px; width:100%; height:auto; display:inline-block }
.sidebar ul { list-style:none; padding:0; margin:0 }
.sidebar a { display:block; padding:10px 15px; margin:5px 0; text-decoration:none; color:white; background:#34495e; border-radius:5px; box-shadow:0 2px 0 #2c3e50; transition:all 0.2s; width:100%; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.sidebar a:hover { background:linear-gradient(#1abc9c,#16a085); transform:translateY(-2px); box-shadow:0 6px 0 #117a65 }
.sidebar a:active { transform:translateY(2px); box-shadow:0 2px 0 #1a252f }
.sidebar a.active { background:linear-gradient(#3498db,#2980b9); box-shadow:0 4px 0 #1f4e6e; font-weight:bold }

/* Footer */
footer { position:fixed; bottom:0; left:0; right:0; height:25px; line-height:0; background:#34495e; color:white; text-align:center; padding:0 20px; font-size:14px }

.cke_notifications_area { display:none }

/* Desktop için index */
.content, main.content { margin-left:230px; margin-right:240px; margin-top:60px; padding:20px; box-sizing:border-box }
main.content { flex:1; min-width:0; margin-left:230px; margin-right:250px; padding:20px; box-sizing:border-box }
.file-grid { display:grid; grid-template-columns:repeat(auto-fill,300px); gap:30px; justify-content:start }
.file-item { display:flex; flex-direction:column; align-items:center }


body { font-family:Arial, sans-serif; margin:0; padding:0; min-height:100vh; display:flex; flex-direction:column; background:#f4f6f8 }
.topbar { position:fixed; top:0; left:0; right:0; height:60px; background:#34495e; color:white; display:flex; justify-content:space-between; align-items:center; padding:0 20px; z-index:1001 }

/* Tüm içerik alanı footer üstüne kadar uzasın */
.main-wrapper {
  display: flex;
  flex-direction: row;      /* Yan yana */
  flex-wrap: nowrap;        /* Sarma olmasın */
  width: 100%;
  min-width: 1000px;       /* Orta alanın genişliği için minimum */
  overflow-x: auto;         /* Yatay kaydırma */
  -webkit-overflow-scrolling: touch; /* Smooth scroll mobil */
  margin-top: 60px;         /* Topbar boşluğu */
  height: calc(100vh - 60px - 25px); /* Footer boşluğu */
}


#ad-area { 
    width: 250px; 
    position: fixed; 
    top: 60px; 
    right: 0; 
    bottom: 25px; 
    background: #cfe5f0; 
    padding: 10px; 
    overflow-y: auto; 
    overflow-x: visible;
    display: flex; 
    flex-direction: column; 
    gap: 10px; 
    box-sizing: border-box;
    /* Tooltip için kritik */
    contain: none;
}



/*Forum Ayarları Sayfası*/
.forum-content-wrapper {padding:20px; margin-left:260px}
@media(max-width:1024px){ .forum-content-wrapper{ margin-left:250px; } }
@media(max-width:768px){ .forum-content-wrapper{ margin-left:0; padding:15px; } }
.category-list tr.highlight{ animation: highlightRow 2s ease-in-out 3}
.highlight{animation:highlightRow 2s ease-in-out 3}
@keyframes highlightRow{ 0%{ background-color:#fff3e0; } 50%{ background-color:#ffb84d; } 100%{ background-color:#fff3e0; } }
.table-wrapper { max-height:500px; overflow-y:auto; -webkit-overflow-scrolling: touch; }
.category-list { width:700px; border-collapse: collapse;table-layout: fixed; }
.category-list th, .category-list td {padding: 8px; text-align: left; white-space: nowrap }
.filter-box input {width: 100%; max-width: 400px; box-sizing: border-box; margin-top: 5px }
.category-list th { background:#2980b9; color:white; position:sticky; top:0; z-index:2; }
.category-list tr:nth-child(even){ background:#f9f9f9; }
.category-list th:nth-child(1), .category-list td:nth-child(1){ width:10%; }
.category-list th:nth-child(2), .category-list td:nth-child(2){ width:80%; }
.category-list th:nth-child(3), .category-list td:nth-child(3){ width:10%; }
.back-to-panel {position: fixed; top: 175px; left: 875px; z-index: 10; padding: 10px 20px; border-radius: 6px; background: linear-gradient(#4A90E2, #357ABD); color: white; text-decoration: none}
@media (max-width: 600px) {.back-to-panel {top: 100px; left: 10px; width: auto; padding: 10px 15px; font-size: 14px }}
@media (max-width: 1024px) {.back-to-panel {top: 170px; left: 840px }}
@media (max-width: 768px) {.back-to-panel {top: 100px; left: 10px; width: auto; padding: 10px 15px; font-size: 14px }}


#ad-area .ad-slot { display:flex; justify-content:center }
#ad-area .ad-slot img { max-width:100%; height:auto; display:block }
.ad-tooltip { position:relative; display:inline-block; cursor:pointer }
.ad-tooltip .tooltip-text {
    visibility: hidden;
    width: 300px;
    max-height: 450px;              /* ← 90vh yerine 450px */
    overflow-y: auto;
    background-color: rgba(52,152,219,0.95);
    color: #fff;
    text-align: left;
    padding: 12px;
    border-radius: 8px;
    position: fixed;                /* ← fixed kalıyor */
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 13px;
    line-height: 1.4;
    z-index: 9999;                  /* ← 1000 yerine 9999 */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;}
.inactive-slot { background:#e6f0f8; color:#888; text-align:center; padding:40px 10px; border-radius:6px; font-size:14px }
.post { border-bottom:1px solid #ccc; padding:10px 0; overflow-x:auto }
.topic { border-bottom:1px solid #ccc; padding:10px 0; display:flex; justify-content:space-between; margin-top:20px }
.post-user { font-weight:bold }
.back-btn { position:fixed; top:80px; left:250px; padding:10px 15px; border-radius:6px; background:#e74c3c; color:white; text-decoration:none; font-weight:bold; z-index:1000; box-shadow:0 2px 6px rgba(0,0,0,0.3) }
.back-btn:hover { background:#c0392b }
.file-grid { display:grid; grid-template-columns:repeat(auto-fill,180px); gap:60px; justify-content:start }
.file-item { display:flex; flex-direction:column; align-items:center }
.file-btn { width:180px; height:160px; display:flex; justify-content:center; align-items:center; text-align:center; border-radius:12px; background:linear-gradient(145deg,#3498db,#2980b9); color:white; font-weight:bold; text-decoration:none; box-shadow:5px 5px 10px rgba(0,0,0,0.2),-5px -5px 10px rgba(255,255,255,0.1); transition:0.2s; padding:10px; overflow:hidden }
.file-btn:hover { transform:translateY(-5px); box-shadow:8px 8px 15px rgba(0,0,0,0.3),-8px -8px 15px rgba(255,255,255,0.2) }
.file-preview img, .file-preview video { width:100%; height:130px; object-fit:cover; border-radius:8px; user-select:none }
body.file-manager .file-item .file-btn { transform:translateY(20px) }
.file-manager-header { display:flex; gap:10px; margin-bottom:20px }
#create, .create { background:#27ae60; color:white; margin-bottom:1px; padding:5px 10px; border-radius:5px; display:inline-block; text-decoration:none }
#selectedFiles { display:block; min-height:40px; max-height:300px; overflow-y:auto; border:1px solid #ccc; padding:10px; border-radius:6px; background:#f9f9f9; margin:15px 0; font-size:14px; word-wrap:break-word }
.folder-item.drag-over { border:2px dashed #3498db; background-color:#f0f8ff }
.edit-form { margin-top:5px; display:flex; flex-direction:column; align-items:center }
.edit-form input { width:140px; font-size:12px; margin-bottom:5px; padding:3px; border-radius:4px; border:1px solid #ccc }
.edit-form button { font-size:12px; padding:3px 6px; border-radius:4px; cursor:pointer; color:white; border:none }
input[type=text], textarea { width:33%; padding:6px; display:inline-block; box-sizing:border-box }
textarea[name="tooltip"] { width:45%; height:8em; box-sizing:border-box }
label { display:block; margin:6px 0 2px }
.forum-textarea { width:1000px; height:300px; display:inline-block; box-sizing:border-box }
.cke { max-width:1000px; margin:0 }
.save-btn { margin-top:10px; padding:8px 15px; cursor:pointer }
.save-title { background:#27ae60 }
.toggle-active { background:#e67e22 }
.reklam-slot { border:1px solid #ccc; margin:10px 0; padding:10px; border-radius:6px }
.form-divider, .form-divider_slim { background-color:#ccc; width:100%; margin:30px 0 }
.form-divider { height:5px }
.form-divider_slim { height:1px }
.topic { border-bottom:1px solid #ccc; padding:10px 0; display:flex; justify-content:space-between; align-items:flex-start }
.topic-body { flex:1; display:flex; flex-direction:column }
.topic-title { font-weight:bold; margin-bottom:4px }
.forum-topic-title-wrapper { display:flex; align-items:center; gap:5px }
.forum-topic-title { font-weight:bold; font-size:18px; font-style:italic; width:800px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis }
.topic-status { font-size:14px; color:red; flex-shrink:0 }
.topic-actions { display:flex; gap:10px; flex-wrap:wrap; align-items:center }
.topic-meta { font-size:12px; color:#555; margin-top:6px; font-style:italic }
.banner-wrapper {position: relative;overflow: hidden;}
.banner-wrapper img.banner-image{max-width:100%;max-height:100%;object-fit:contain; margin: 0px auto; border-radius:20px;display:block;animation:brightnessEffect 3s infinite ease-in-out}
@keyframes brightnessEffect{0%,100%{filter:brightness(1)}50%{filter:brightness(1.5)}}
.banner-wrapper::after{content:"";position:absolute;top:0;left:-75%;width:50%;height:100%;background:linear-gradient(120deg,rgba(255,255,255,0) 0%,rgba(255,255,255,.6) 50%,rgba(255,255,255,0) 100%);transform:skewX(-25deg);animation:shine 4s infinite}@keyframes shine{0%{left:-75%}100%{left:125%}}
.page-wrapper{display:flex;flex-direction:row;margin-top:0px;padding:20px;gap:20px;justify-content:center}
.about-wrapper{display:flex;flex-direction:column;align-items:center;margin-bottom:20px}
.about{width:100%;max-width:800px;text-align:left;background:#f9f9f9;padding:30px;border-radius:12px;box-shadow:0 5px 15px rgba(0,0,0,.1);line-height:1.6}
.about p{margin-bottom:1em}
@media (max-width:900px){.about-wrapper{margin:0 10px;width:auto}.about{max-width:100%;padding:15px;font-size:16px;line-height:1.5}.profile-img{max-width:150px}}
.system_button{background-color:#2c3e50;color:#fff;border:none;padding:8px 12px;border-radius:6px;cursor:pointer;margin:15px 0}
.system_button:hover{background-color:#34495e}
#editorContainer{max-width:800px;width:100%;margin-top:15px}
.content-wrapper{flex:1;display:flex;flex-direction:column;align-items:center;padding:20px}
.add-form-wrapper{width:70%;max-width:900px;position:sticky;bottom:0;background:#f4f6f8;padding:15px 20px;display:flex;justify-content:center;z-index:10}
.add-form{display:flex;width:100%;gap:10px}
.add-form input[type="text"]{flex:1;padding:10px;border-radius:6px;border:1px solid #ccc;font-size:14px}
.add-form button{padding:10px 20px;background:#27ae60;color:#fff;border:none;border-radius:6px;cursor:pointer;font-weight:bold;transition:all .2s ease}
.add-form button:hover{background:#219150}
.delete-btn{background:#e74c3c;color:#fff;padding:6px 12px;text-decoration:none;border-radius:6px;display:inline-block;transition:all .2s ease}
.delete-btn:hover{background:#c0392b}
.back-link{color:#2980b9;font-weight:bold;display:inline-block;margin-top:20px;text-decoration:none}
.back-link:hover{text-decoration:underline}
/*File Manager yeni ayarlar*/
.fm-container{margin-left:240px;padding:60px;font-family:Arial,sans-serif;}
.fm-table{width:100%;border-collapse:collapse;background:white;border-radius:10px;overflow:hidden;box-shadow:0 4px 10px rgba(0,0,0,0.1);}
.fm-table-content th,.admin-table td{padding:12px 15px;text-align:left;border-bottom:1px solid #eee;}
.fm-dvdr-table th{background:#2c3e50;color:white;}
.fm-header tr:hover{background:#f0f8ff;}

/*Forum Yeni Ayarlar*/
.frm-container{margin-left:200px; margin-right:150px ;padding:60px;font-family:Arial,sans-serif;}
.frm-table{width:100%;border-collapse:collapse;border-radius:10px;overflow:hidden}

/*index haberler grubu*/
/* Container */
.news-container {
    display: flex;
    flex-wrap: wrap;       /* Daraldığında alt satıra geçmesini sağlar */
    gap: 5px;             /* Kutular arasındaki boşluk */
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Her haber kutusu */
.news-container .news {
    flex: 1 1 calc(50% - 5px); /* Yan yana 2 kutu (gap’in yarısını çıkartıyoruz) */
    min-width: 300px;            /* Daha küçük ekranda alt alta geçmesi için minimum genişlik */
    background: white;
    padding: 5px;
    border-radius: 6px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    box-sizing: border-box;
}

/* ul ve li padding sıfır */
.news-container .news ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-container .news li {
    margin-bottom: 15px; /* İsteğe bağlı aralık */
}


@media (max-width: 1100px) {
    .news-container .news {
        flex: 1 1 100%;    /* Tüm genişliği kaplar */
        min-width: 0;      /* Taşmayı engeller */
    }
}
/* Lisanslama Bölümü  */
/* Program grid */
.program-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
}

/* Program kartı */
.program-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    margin: auto;
    overflow: hidden;
    padding: 0;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Resim */
.program-card img {
    width: 95%;
    height: 200px;
    object-fit: cover;
    margin-top: 10px;
    display: block;
}

/* Metin */
.program-info {
    flex: 1;
    text-align: center;
    padding: 15px;
}

.program-info h3 {
    margin: 0;
    font-size: 20px;
    color: #2c3e50;
}

.program-info p {
    margin: 5px 0 0;
    font-size: 14px;
    color: #555;
}

/* Detaylı buton */
.detail-btn {
    margin: 5px 0 10px;
    display: inline-block;
    padding: 6px 12px;
    background: #27ae60;
    color: white;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.detail-btn:hover {
    background: #1e8449;
}

/* Aktif checkbox */
.active-checkbox {
    display:block;
    margin:5px 0 10px;
    font-size:14px;
    color:#2c3e50;
}

.active-checkbox input {
    margin-right:5px;
}

/* Responsive */
@media (max-width: 900px) {
    .program-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 600px) {
    .program-grid {
        grid-template-columns: 1fr;
    }
}