* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-main: #0b1437;
    --bg-card: #111c4d;
    --text-main: #d6e1ff;
    --text-muted: #9fb2e5;
    --accent: #4f7cff;
    --accent-soft: rgba(79,124,255,0.15);
    --border-soft: rgba(255,255,255,0.08);
}

body {
    font-family: "Montserrat", Arial, sans-serif;
    background: radial-gradient(circle at top, #122063, var(--bg-main));
    background-attachment: fixed;
    color: var(--text-main);
    line-height: 1.7;
}

html, body {
    height: 100%;
    margin: 0;
    font-family: 'Montserrat', Arial, sans-serif;
    display: flex;
    flex-direction: column;
}

/* ===== MOBILE / TABLET RESPONSIVE ===== */
@media (max-width: 768px) {
    /* Header ve Navbar */
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 16px 20px;
    }

    /* Main ve Section */
    main {
        padding: 40px 16px;
    }

    section h2 {
        font-size: 1.2rem;
    }

    article h3 {
        font-size: 1rem;
    }

    article p {
        font-size: 0.85rem;
    }

    /* Formlar ve Butonlar */
    form input, form textarea, form select {
        font-size: 0.85rem;
        padding: 10px 12px;
    }

    .file-btn, form button {
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }

    /* Footer */
    footer {
        font-size: 0.75rem;
        padding: 16px 10px;
    }
}

/* Küçük mobil ekranlar (telefon) */
@media (max-width: 480px) {
    body {
        font-size: 14px;
    }

    main {
        padding: 30px 12px;
    }

    section h2 {
        font-size: 1.1rem;
    }

    article h3 {
        font-size: 0.95rem;
    }

    article p {
        font-size: 0.8rem;
    }
    #pending-articles-table button.approve-btn{
        background: linear-gradient(135deg, #4caf50, #3e8e41);
        color: #fff;
        border: none;
        padding: 6px 12px;
        border-radius: 8px;
        margin-right: 6px;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
        max-width: 100px;
    }
    #pending-articles-table button.reject-btn {
        background: linear-gradient(135deg, #f44336, #d32f2f);
        color: #fff;
        border: none;
        padding: 6px 12px;
        border-radius: 8px;
        cursor: pointer;
        transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
        max-width: 100px;
    }
    /* Table wrapper ile yatay kaydırma */
    .table-responsive {
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; /* mobilde smooth scroll */
    }

    /* Tabloya minimum width ver */
    .table-responsive table {
        width: 100%;
        min-width: 600px; /* istersen tabloların daralmasını engellemek için */
        border-collapse: collapse;
    }
}

/* Resimler responsive olsun */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column; /* üst üste dizilsin */
        align-items: flex-start; /* sol hizalı */
        position: relative; /* toggle için z-index çalışsın */
    }

    .mobile-toggle {
        display: block !important; /* önemli! diğer display:none kurallarını geçersiz kılar */
        align-self: flex-start;
        margin-top: 8px;
        font-size: 1.2rem !important;
        background: none !important;
        border: none !important;
        color: #9fb2e5 !important;
        cursor: pointer !important;
        z-index: 1000; /* menünün üstünde görünmesi için */
    }

    .nav-left{
        /*display: none; başlangıçta kapalı */
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .nav-left li {
        display: none;
    }

    .nav-right {
        display: none; /* başlangıçta kapalı */
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }

    .navbar.active .nav-left,
    .navbar.active .nav-right {
        display: flex; /* toggle ile açıldığında */
    }

    .nav-left .back {
        display: flex !important;
    }
}

@media (max-width: 768px) {

    /* SADECE index sayfası */
    body.page-index .nav-left {
        display: flex;
        flex-direction: column;
        width: 100%;
    }

    /* index'te mobilde tüm li'leri gizle */
    body.page-index .nav-left li {
        display: none;
    }

    /* SADECE back görünsün */
    body.page-index .nav-left li.nav-back {
        display: flex;
    }

    /* Menü açılınca hepsi gelsin */
    body.page-index .navbar.active .nav-left li {
        display: flex;
    }
}

/* Masaüstünde toggle gizle */
@media (min-width: 769px) {
    .mobile-toggle {
        display: none;
    }

    .nav-left,
    .nav-right {
        display: flex;       
    }
}


a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}
a:hover {
    color: var(--text-main);
}

header {
    padding: 24px 40px;
    border-bottom: 1px solid var(--border-soft);
    backdrop-filter: blur(6px);
    display: block;
    align-items: center;
}

header h1 {
    font-size: 1.6rem;
    font-weight: 600;
    
    height: 64px;
}

header div{
    height: 64px;
}

.navbar {
    display: flex;
    align-items: center;
    padding: 12px 40px;
    width: 100%;
}
ar ul {
    list-style: none;
    display: flex;
    gap: 22px;
    padding-left: 0;
    margin: 0;
}
.navbar li {
    display: flex;
    align-items: center;
}
.nav-left {
    list-style: none;
    
    gap: 22px;
    padding-left: 0;
    margin: 0;
}

.nav-left li a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    position: relative;
    padding: 6px 0;
    transition: color 0.2s ease;
}

.nav-left li a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.25s ease;
}

.nav-left li a:hover {
    color: var(--text-main);
}

.nav-left li a:hover::after {
    width: 100%;
}

.nav-right {
    list-style: none;
    
    gap: 16px;
    padding-left: 0;
    margin: 0;
    align-items: center;
    margin-left: auto;
}


.nav-right button {
    font-size: 0.9rem;
    font-weight: 500;
    color: #fff;
    background: var(--accent);
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
}

.nav-right button:hover {
    background: #3f6bff;
    transform: translateY(-2px);
}

.navbar a {
    color: #9fb2e5;
    text-decoration: none;
    position: relative;
}

.navbar a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: #4f7cff;
    transition: width 0.25s ease;
}
.navbar a:hover::after {
    width: 100%;
}
.navbar button {
    font-size: 0.9rem;
    color: #fff;
    background: #4f7cff;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    cursor: pointer;
}

.nav-brand img {
    height: 64px;
    width: auto;
    margin-top: auto;
    margin-bottom: auto;
}

main {
    flex: 1;           
    max-width: 900px;
    width: 100%;
    margin: 0 auto;    
    padding: 60px 20px 20px; 
}

section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
}

article {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.04),
        rgba(255,255,255,0.01)
    );
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 24px;
    margin-top: 24px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

article:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

article h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

article p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
}

form {
    max-width: 500px;
    margin-top: 30px;
}

form label {
    display: block;
    margin-top: 16px;   
    margin-bottom: 10px;
    font-size: 0.85rem;
    color: var(--text-muted);
}


form input,
form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    transition: border 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

form input:focus,
form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

#char-counter {
    margin-top: 6px;
    text-align: right;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.auto-grow {
    resize: none;
    overflow: hidden;
    min-height: 160px;
    line-height: 1.5;
}

.file-btn {
  margin-top: 10px;
    padding: 12px 26px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #5b86ff, #3f6bff);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
    width: 140px;
    height: 41.33px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-btn:hover {
  transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79,124,255,0.35);
}

form button {
    margin-top: 10px;
    padding: 12px 26px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #5b86ff, #3f6bff);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79,124,255,0.35);
}

form button:active {
    transform: translateY(0);
    box-shadow: none;
    opacity: 0.9;
}

footer {
    border-top: 1px solid var(--border-soft);
    padding: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}
#user-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

#user-table th, #user-table td {
    border: 1px solid var(--border-soft);
    padding: 10px 12px;
    text-align: left;
}

#user-table th {
    background: var(--bg-card);
    color: var(--text-main);
}

#user-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.05);
}

#user-table tbody tr:hover {
    background: rgba(255,255,255,0.1);
}

#user-table button, #user-table select {
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
}

#pending-articles-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 0.95rem;
    table-layout: auto;
}

#pending-articles-table th,
#pending-articles-table td {
    border: 1px solid var(--border-soft);
    padding: 10px 12px;
    text-align: left;
    vertical-align: middle;
    white-space: nowrap; 
}

#pending-articles-table th {
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 600;
}

#pending-articles-table tbody tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

#pending-articles-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.1);
}

#pending-articles-table a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

#pending-articles-table a:hover {
    color: #fff;
    text-decoration: underline;
}

#pending-articles-table button {
    cursor: pointer;
    padding: 6px 12px;
    border-radius: 8px;
    border: none;
    background: var(--accent);
    color: #fff;
    font-size: 0.85rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
#pending-articles-table button.approve-btn {
    background: linear-gradient(135deg, #4caf50, #3e8e41);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    margin-right: 6px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

#pending-articles-table button.reject-btn {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
#pending-articles-table button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
#pending-articles-table button:active {
    transform: translateY(0);
    box-shadow: none;
    opacity: 0.9;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}
.article-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
}

.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.article-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.article-card h3 a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.article-card h3 a:hover {
    text-decoration: underline;
    color: #fff;
}

.article-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.article-preview {
    font-size: 0.95rem;
    color: var(--text-main);
}
h1, h2, h3, h4, h5, h6, p, a, label, input, textarea, button {
    font-family: 'Montserrat', Arial, sans-serif;
}

#file-status {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #4f7cff; /* Accent rengi */
    font-weight: 500;
}

#file-status.show {
    opacity: 1;
    transform: translateY(0);
}

#file-status.hide {
    opacity: 0;
    transform: translateY(-5px);
}

.contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.contact-card h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.contact-card h3 a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s ease;
}

.contact-card h3 a:hover {
    text-decoration: underline;
    color: #fff;
}

.contact-card-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.icon-wrap {
  width: 40px;
  height: 40px;
  background: #fff;
  border-radius: 40%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon {
  width: 22px;
  height: 22px;
  color: #000;
}

.footer-button{
    margin: 10px;
}

.copyright + .footer-panel{
    margin-top: 8px;
}

textarea{
    resize: none
}

#comments-section {
    background: linear-gradient(
        180deg,
        rgba(255,255,255,0.04),
        rgba(255,255,255,0.01)
    );
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    padding: 24px;
}

#comments-section h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
}

/* Yorum listesi */
#comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

/* Tek yorum */
.comment {
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 14px 16px;
}

.comment p {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 6px;
}

.comment small {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Yorum textarea */
#comment-input {
    width: 100%;
    min-height: 120px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--text-main);
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    transition: border 0.2s ease, box-shadow 0.2s ease;
}

#comment-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

#comment-submit {
    margin-top: 12px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(135deg, #5b86ff, #3f6bff);
    border: none;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#comment-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(79,124,255,0.35);
}

#comment-submit:active {
    transform: translateY(0);
    box-shadow: none;
    opacity: 0.9;
}
