:root {
    --bg-color: #FDFCF8;
    --card-bg: #FFFFFF;
    --text-main: #1A1A1A;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.05);

    --primary: #B03A2E;
    --primary-light: #FADBD8;
    --accent-gradient: linear-gradient(135deg, #B03A2E 0%, #E74C3C 100%);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05);

    --radius-lg: 20px;
    --radius-md: 12px;

    --header-bg: rgba(253, 252, 248, 0.95);
}

body.dark-mode {
    --bg-color: #121212;
    --card-bg: #1E1E1E;
    --text-main: #E0E0E0;
    --text-muted: #A0A0A0;
    --border-color: rgba(255, 255, 255, 0.1);
    --primary: #B03A2E;
    --primary-light: rgba(255, 107, 107, 0.15);
    --accent-gradient: linear-gradient(135deg, #C0392B 0%, #B03A2E 100%);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
    --header-bg: rgba(18, 18, 18, 0.95);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: 'Plus Jakarta Sans', sans-serif;
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
    transition: background-color 0.3s, color 0.3s;
}

body::before {
    content: '';
    position: fixed;
    top: -10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary-light) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
    border-radius: var(--radius-lg);
}

header {
    padding: 20px 0;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 99;
    border-bottom: 1px solid var(--border-color);
    transition: 0.3s;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-main);
}

.logo span {
    color: var(--primary);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.back-link {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-link:hover {
    color: var(--primary);
    gap: 12px;
}

.theme-toggle-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--text-main);
    padding: 5px;
    transition: 0.3s;
}

.theme-toggle-btn:hover {
    color: var(--primary);
    transform: rotate(15deg);
}

.blog-hero {
    text-align: center;
    padding: 80px 0 60px;
}

.blog-hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 15px;
    letter-spacing: -1px;
    color: var(--text-main);
}

.blog-hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 100px;
}

.blog-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: 0.4s;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.b-img {
    height: 240px;
    overflow: hidden;
    position: relative;
    background: var(--border-color);
}

.b-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.blog-card:hover .b-img img {
    transform: scale(1.05);
}

.b-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.b-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
    opacity: 0.8;
}

.b-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--text-main);
}

.b-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.read-more {
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: auto;
}

.read-more:hover {
    gap: 10px;
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 100px;
}

.post-header {
    text-align: center;
    margin-bottom: 50px;
}

.post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.post-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 40px;
    color: var(--text-main);
}

.post-cover {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 60px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.post-body {
    font-size: 1.15rem;
    color: var(--text-main);
    line-height: 1.8;
}

.post-body p {
    margin-bottom: 25px;
    color: var(--text-muted);
}

.post-body h2,
.post-body h3 {
    font-size: 1.8rem;
    font-weight: 700;
    margin: 40px 0 20px;
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
}

.post-body ul,
.post-body ol {
    margin-bottom: 25px;
    padding-left: 25px;
    color: var(--text-muted);
}

.post-body li {
    margin-bottom: 10px;
}

.post-body img {
    margin: 30px 0;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.post-body blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    font-style: italic;
    color: var(--text-main);
    margin: 30px 0;
    background: var(--bg-color);
    padding: 20px;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {

    .blog-hero h1,
    .post-title {
        font-size: 2.5rem;
    }

    .post-cover {
        height: 250px;
        margin-bottom: 40px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .header-right .hide-mobile {
        display: none;
    }
}


.comments-section {
    max-width: 800px;
    margin: 60px auto;
}

.comments-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 30px;
}

.comment-box {
    background: var(--card-bg);
    padding: 25px;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
    /* Senin sevdiğin oval yapı */
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.comment-box:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.comment-author {
    font-weight: 700;
    color: var(--text-main);
    font-size: 1.05rem;
}

.comment-date {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.comment-text {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.comment-reply {
    margin-left: 40px;
    background: var(--bg-color);
    border-left: 3px solid var(--primary-light);
}

.reply-to-info {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.reply-btn {
    cursor: pointer;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
}

.reply-btn:hover {
    color: var(--primary);
}

.comment-form-container {
    background: var(--card-bg);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    margin-top: 50px;
}

.form-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 16px 20px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-color);
    border-radius: var(--radius-md);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-control:focus {
    border-color: var(--primary);
    background-color: var(--card-bg);
    box-shadow: 0 0 0 4px var(--primary-light);
}

.btn-submit {
    background: var(--accent-gradient);
    color: #fff;
    padding: 16px 35px;
    border: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(176, 58, 46, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(176, 58, 46, 0.4);
}

.cancel-reply {
    color: var(--primary);
    cursor: pointer;
    font-weight: 700;
    margin-left: 10px;
    font-size: 0.9rem;
}

.alert {
    padding: 15px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    font-weight: 600;
}

.alert-success {
    background: rgba(46, 204, 113, 0.15);
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.alert-danger {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.alert-warning {
    background: rgba(241, 196, 15, 0.15);
    color: #f1c40f;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

@media (max-width: 768px) {
    .comment-reply {
        margin-left: 20px;
    }

    .comment-form-container {
        padding: 25px;
    }
}