/*
Theme Name: Meliksah Theme
Theme URI: https://meliksahgok.com
Author: Melikşah Gök
Author URI: https://meliksahgok.com
Description: A premium, dark-mode personal blog theme for Expert Software Developer Melikşah Gök.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: meliksah-theme
*/

:root {
    --bg-color: #0f172a;
    --text-color: #e2e8f0;
    --heading-color: #f8fafc;
    --accent-color: #38bdf8;
    --accent-hover: #0ea5e9;
    --card-bg: #1e293b;
    --border-color: #334155;
    --font-main: 'Inter', sans-serif;
    --container-width: 1200px;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    line-height: 1.6;
    font-size: 16px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--heading-color);
    margin-bottom: 1rem;
    line-height: 1.2;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.site-header {
    background-color: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-title a {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--heading-color);
    letter-spacing: -0.025em;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.main-navigation a {
    color: var(--text-color);
    font-weight: 500;
}

.main-navigation a:hover {
    color: var(--accent-color);
}

/* Footer */
.site-footer {
    background-color: var(--card-bg);
    padding: 3rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
    color: #94a3b8;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--accent-color);
    color: #0f172a;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s;
    text-decoration: none !important;
}

.btn:hover {
    background-color: var(--accent-hover);
    color: #ffffff !important;
    /* Force white text on hover */
    transform: translateY(-2px);
}

/* Cards */
.card {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.card-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

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

.entry-header {
    padding: 1.5rem 1.5rem 0.5rem;
}

.entry-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.entry-title a:hover {
    color: var(--accent-color);
}

.entry-meta {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.entry-summary {
    padding: 0 1.5rem 1.5rem;
    color: #cbd5e1;
    font-size: 0.95rem;
    flex-grow: 1;
}

/* Featured Badge */
.category-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-color);
    color: #0f172a;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Skills Section */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.skill-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    padding: 1.5rem 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    transition: all 0.3s;
}

.skill-item:hover {
    background-color: var(--accent-color);
    color: #0f172a;
    transform: translateY(-3px);
}

/* Project Cards */
.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, #0f172ae6, transparent);
    padding: 2rem 1.5rem 1.5rem;
    opacity: 1;
    transition: opacity 0.3s;
}

.project-tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tech-tag {
    font-size: 0.75rem;
    background-color: rgba(56, 189, 248, 0.2);
    color: var(--accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
}

/* Blog Layout & Sidebar */
.blog-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.widget-area {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
}

.widget {
    margin-bottom: 2.5rem;
}

.widget:last-child {
    margin-bottom: 0;
}

.widget-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    color: var(--accent-color);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #334155;
    padding-bottom: 0.75rem;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget ul li a {
    color: var(--text-color);
    display: block;
}

.widget ul li a:hover {
    color: var(--accent-color);
    padding-left: 5px;
}

/* Search Form */
.search-form {
    display: flex;
    gap: 0.5rem;
}

.search-form label {
    flex-grow: 1;
}

.search-field {
    width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    background-color: #0f172a;
    color: #fff;
    font-family: var(--font-main);
}

.search-field:focus {
    outline: none;
    border-color: var(--accent-color);
}

.search-submit {
    padding: 0 1rem;
    background-color: var(--accent-color);
    border: none;
    border-radius: 0.5rem;
    color: #0f172a;
    cursor: pointer;
    font-weight: 600;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* Error 404 & No Results */
.page-content .search-form {
    max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .blog-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .header-inner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-navigation ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .hero-section h1 {
        font-size: 2.5rem !important;
    }
}

/* Comments Section */
#comments {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment-body {
    background-color: var(--card-bg);
    padding: 1.5rem;
    border-radius: 1rem;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.comment-meta {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #94a3b8;
}

.comment-author cite {
    font-style: normal;
    font-weight: 700;
    color: var(--heading-color);
    font-size: 1.1rem;
}

.reply {
    margin-top: 1rem;
}

.comment-reply-link {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-color);
}

/* Comment Form */
.comment-respond {
    background-color: var(--card-bg);
    padding: 2rem;
    border-radius: 1rem;
    margin-top: 3rem;
    border: 1px solid var(--border-color);
}

.comment-reply-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    display: block;
}

.comment-form p {
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background-color: #0f172a;
    border: 1px solid var(--border-color);
    padding: 1rem;
    border-radius: 0.5rem;
    color: #fff;
    font-family: var(--font-main);
    transition: border-color 0.3s;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.form-submit .submit {
    background-color: var(--accent-color);
    color: #0f172a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.5rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
}

.form-submit .submit:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
    color: #fff !important;
}

/* Project Detail Page */
.project-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 900px) {
    .project-layout {
        grid-template-columns: 1fr;
    }
}

.project-featured-image-wrapper {
    width: 100%;
    margin-bottom: 2rem;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 20px 50px -10px rgba(0, 0, 0, 0.5);
}

.project-featured-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.project-featured-image:hover {
    transform: scale(1.02);
}

.project-sidebar-column {
    position: sticky;
    top: 6rem;
}

.project-info-card.card {
    padding: 2rem;
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
}

.info-group {
    margin-bottom: 1.5rem;
}

.info-group:last-child {
    margin-bottom: 0;
}

.project-actions .btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
}

.back-link:hover {
    color: var(--accent-color) !important;
}

/* Typography Enhancements */
.entry-content.typography {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #cbd5e1;
}

.entry-content.typography h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    color: #f8fafc;
}

.entry-content.typography ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.entry-content.typography li {
    margin-bottom: 0.5rem;
}
/* CMD+K Modal */
#search-modal a:hover {
    background-color: rgba(56, 189, 248, 0.1) !important;
    color: var(--accent-color) !important;
    padding-left: 1rem !important;
}


/* Custom Logo Restriction */
.custom-logo {
    max-width: 200px;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .custom-logo {
        max-width: 150px;
    }
}


/* Social Links */
.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-links a {
    color: #64748b;
    font-size: 1.5rem;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}


/* About Page Styles */
.about-layout {
    display: grid;
    grid-template-columns: 2fr 350px;
    gap: 4rem;
    align-items: start;
    margin-top: -3rem; 
    position: relative;
    z-index: 10;
}

.about-content h2 {
    font-size: 2rem;
    color: var(--heading-color);
    margin-bottom: 1.5rem;
}

.about-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: #cbd5e1;
    font-size: 1.1rem;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 20px;
    width: 2px;
    background: #334155;
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    padding-left: 60px;
}

.timeline-marker {
    position: absolute;
    left: 11px;
    top: 0;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent-color);
    border: 4px solid #0f172a;
    box-shadow: 0 0 0 2px var(--accent-color);
}

.timeline-content {
    padding: 1.5rem;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
}

.timeline-date {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
    background: rgba(56, 189, 248, 0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
}

.timeline-content h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.timeline-content p {
    color: #94a3b8;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
    }
    
    .about-layout {
        margin-top: 0;
    }
}


/* Adjust About Sidebar Spacing */
.about-sidebar {
    margin-top: 5rem;
}

@media (max-width: 900px) {
    .about-sidebar {
        margin-top: 0;
    }
}


/* Single Post Hero - Category Links */
.category-meta a {
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    margin-right: 1rem;
    position: relative;
    transition: all 0.3s;
}

.category-meta a:hover {
    color: #fff;
    text-shadow: 0 0 10px var(--accent-color);
}


/* Fix Category Badge Overlap (v1.0.6) */
.category-badge {
    position: static;
    display: inline-block;
    margin-bottom: 0.75rem;
    margin-left: 0;
    margin-top: 0;
}

