/* 
   "sertac" - Premium Editorial Light Theme Stylesheet
   Designed for clean reading, spacious newspaper/blog layouts.
*/

:root {
    --bg-primary: #FAF9F6; /* Sıcak kırık beyaz / fildişi */
    --bg-secondary: #FFFFFF; /* Saf beyaz */
    --text-primary: #0F172A; /* Koyu kömür */
    --text-secondary: #475569; /* Koyu gri */
    --text-muted: #94A3B8; /* Açık gri */
    --accent-color: #1D4ED8; /* Asil lacivert */
    --border-color: #E2E8F0; /* İnce açık gri kenarlık */
    --font-serif: 'Lora', Georgia, serif;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.04), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    padding-top: 80px; /* Navbar için boşluk */
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow-sm);
}

.nav-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo span {
    color: var(--accent-color);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: var(--transition);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    padding: 8px 0;
    min-width: 180px;
    z-index: 1001;
    opacity: 0;
    list-style: none;
    visibility: hidden;
    transition: all 0.2s ease;
    display: block; /* opacity/visibility ile kontrol edildiğinden display block yapıyoruz */
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    padding: 8px 16px;
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: left;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: var(--bg-primary);
    color: var(--accent-color);
}

/* Navbar Right (Arama & Üyelik) */
.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    padding: 6px 12px;
    padding-right: 32px;
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 13px;
    outline: none;
    background-color: var(--bg-primary);
    transition: var(--transition);
    width: 180px;
}

.search-input:focus {
    width: 240px;
    border-color: var(--accent-color);
    background-color: var(--bg-secondary);
}

.search-btn {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

.btn-login {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-color);
    border: 1px solid var(--accent-color);
    padding: 6px 16px;
    border-radius: 99px;
    transition: var(--transition);
}

.btn-login:hover {
    background-color: var(--accent-color);
    color: var(--bg-secondary);
}

/* Hero Section (Manşetler) */
.hero-section {
    margin-bottom: 48px;
    margin-top: 24px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
}

.hero-main {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 480px;
    box-shadow: var(--shadow-md);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 40px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.4) 60%, rgba(15, 23, 42, 0) 100%);
    color: var(--bg-secondary);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.hero-main-overlay .category-badge {
    align-self: flex-start;
    background-color: var(--accent-color);
    color: var(--bg-secondary);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.hero-main-overlay h2 {
    color: var(--bg-secondary);
    font-size: 32px;
    margin-bottom: 12px;
}

.hero-main-overlay p {
    font-size: 15px;
    color: #CBD5E1;
    margin-bottom: 16px;
    max-width: 90%;
}

.hero-main-overlay .meta {
    font-size: 12px;
    color: #94A3B8;
}

.hero-side {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-side-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 228px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.hero-side-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.hero-side-img {
    height: 120px;
    width: 100%;
    object-fit: cover;
}

.hero-side-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.hero-side-content h3 {
    font-size: 16px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.hero-side-content .meta {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Two Column Layout */
.layout-wrapper {
    display: grid;
    grid-template-columns: 2.5fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

/* Main Post Feed */
.section-title {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--text-primary);
    display: inline-block;
}

.post-feed {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.post-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.post-card-img-link {
    width: 35%;
    min-width: 240px;
    overflow: hidden;
    position: relative;
}

.post-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-card:hover .post-card-img {
    transform: scale(1.05);
}

.post-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 65%;
}

.post-card-category {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.post-card-title {
    font-size: 20px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card-summary {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.post-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

.post-card-meta-left {
    display: flex;
    gap: 12px;
}

.post-card-readmore {
    font-weight: 600;
    color: var(--accent-color);
}

.post-card-readmore:hover {
    text-decoration: underline;
}

/* Sidebar */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.widget {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 18px;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
}

/* Sidebar Newsletter Widget */
.widget-newsletter p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.newsletter-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
}

.newsletter-input:focus {
    border-color: var(--accent-color);
}

.newsletter-btn {
    background-color: var(--accent-color);
    color: var(--bg-secondary);
    border: none;
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-btn:hover {
    background-color: #1e40af;
}

/* Sidebar Popular Widget */
.widget-popular-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
}

.widget-popular-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-popular-rank {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--text-muted);
    min-width: 24px;
}

.widget-popular-info a {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.widget-popular-info span {
    font-size: 11px;
    color: var(--text-muted);
}

/* Categories Widget */
.widget-categories-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.widget-categories-item a {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0;
}

.widget-categories-item a:hover {
    color: var(--accent-color);
    padding-left: 4px;
}

.widget-categories-count {
    background-color: var(--bg-primary);
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 11px;
    color: var(--text-secondary);
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

.pagination-link:hover, .pagination-link.active {
    background-color: var(--accent-color);
    color: var(--bg-secondary);
    border-color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
    margin-top: auto;
}

.footer-logo {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-logo span {
    color: var(--accent-color);
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.footer-social-link {
    width: 36px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-social-link:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background-color: rgba(29, 78, 216, 0.05);
}

.footer-text {
    font-size: 13px;
    color: var(--text-muted);
}

/* Article Details Page (detay.php) */
.article-header {
    max-width: 800px;
    margin: 40px auto 32px auto;
    text-align: center;
}

.article-category {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.article-title {
    font-size: 38px;
    line-height: 1.25;
    margin-bottom: 20px;
}

.article-meta {
    font-size: 13px;
    color: var(--text-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.article-featured-img-container {
    max-width: 900px;
    margin: 0 auto 40px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.article-featured-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
}

.article-body-wrapper {
    max-width: 900px;
    margin: 0 auto 60px auto;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 48px;
    box-shadow: var(--shadow-sm);
}

.article-body {
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.85;
    color: var(--text-primary);
}

.article-body p {
    margin-bottom: 24px;
}

.article-body h2, .article-body h3 {
    margin: 40px 0 20px 0;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 20px;
    font-style: italic;
    font-size: 18px;
    color: var(--text-secondary);
    margin: 32px 0;
}

/* Code Highlights */
.article-body pre {
    background-color: #1E293B;
    color: #E2E8F0;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 32px 0;
    font-size: 14px;
    font-family: monospace;
}

/* Comments Section */
.comments-section {
    border-top: 1px solid var(--border-color);
    padding-top: 40px;
    margin-top: 48px;
}

.comments-title {
    font-size: 20px;
    margin-bottom: 24px;
}

.comment-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}

.comment-author {
    font-weight: 600;
    font-size: 14px;
}

.comment-date {
    font-size: 11px;
    color: var(--text-muted);
}

.comment-text {
    font-size: 14px;
    margin-top: 8px;
}

/* Comment Form */
.comment-form-wrapper {
    margin-top: 32px;
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 24px;
}

.comment-form-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    background-color: var(--bg-secondary);
}

.form-input:focus {
    border-color: var(--accent-color);
}

.btn-submit {
    background-color: var(--accent-color);
    color: var(--bg-secondary);
    border: none;
    padding: 10px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-submit:hover {
    background-color: #1e40af;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .layout-wrapper {
        grid-template-columns: 1fr;
    }
    .post-card {
        flex-direction: column;
    }
    .post-card-img-link {
        width: 100%;
        height: 200px;
    }
    .post-card-content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
    }
    .nav-menu {
        display: none; /* Basitleştirme: mobil menü gizlendi */
    }
    .navbar {
        height: 60px;
    }
    .hero-main {
        height: 350px;
    }
    .hero-main-overlay h2 {
        font-size: 24px;
    }
    .article-title {
        font-size: 28px;
    }
    .article-body-wrapper {
        padding: 24px;
    }
}

/* Auth Pages (Giriş & Kayıt) */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 150px);
    padding: 40px 24px;
}

.auth-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 40px;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-md);
}

.auth-title {
    font-size: 28px;
    margin-bottom: 8px;
}

.auth-desc {
    font-size: 14px;
    color: var(--text-secondary);
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-group {
    margin-bottom: 20px;
}

.btn-full {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary-full {
    background-color: var(--accent-color);
    color: var(--bg-secondary);
}

.btn-primary-full:hover {
    background-color: #1e40af;
}

/* Mesaj Kutuları */
.msg-box {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 20px;
    border: 1px solid transparent;
}

.msg-success {
    background-color: #d1fae5;
    color: #065f46;
    border-color: #a7f3d0;
}

.msg-error {
    background-color: #fee2e2;
    color: #991b1b;
    border-color: #fca5a5;
}

.msg-warning {
    background-color: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}

/* Profile Page */
.profile-header-bg {
    background-color: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    padding: 48px 0;
    margin-bottom: 32px;
}

.avatar-circle {
    width: 80px;
    height: 80px;
    background-color: var(--accent-color);
    color: var(--bg-secondary);
    font-size: 32px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-family: var(--font-serif);
    text-transform: uppercase;
}

.tabs-container {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 16px;
}

.tab-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    padding: 8px 16px;
    cursor: pointer;
    transition: var(--transition);
    border-radius: 6px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background-color: var(--bg-secondary);
}

.tab-btn.active {
    color: var(--bg-secondary);
    background-color: var(--text-primary);
}

.content-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.profile-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-save {
    background-color: var(--text-primary);
    color: var(--bg-secondary);
    border: none;
    padding: 12px 24px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-save:hover {
    background-color: var(--accent-color);
}

/* Saved Grid */
.saved-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.saved-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.saved-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.saved-img-container {
    height: 160px;
    overflow: hidden;
}

.saved-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.saved-card:hover .saved-img {
    transform: scale(1.05);
}

.saved-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.saved-cat {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.saved-title {
    font-size: 15px;
    line-height: 1.4;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.saved-date {
    font-size: 11px;
    color: var(--text-muted);
}

@media (max-width: 768px) {
    .profile-form-grid {
        grid-template-columns: 1fr;
    }
}
