/*
Theme Name: Makif Ince Teması
Author: Mehmet Akif İnce & Gemini
Description: Mehmet Akif İnce için yapay zeka destekli olarak tasarlanmış kişisel web sitesi teması.
Version: 1.1
*/

/* --- Değişkenler --- */
:root {
    --primary-dark-green: #2d5c44;
    --primary-medium-green: #6a994e;
    --primary-light-green: #a7c957;
    --background-light: #f4f6f3;
    --text-dark: #333333;
    --text-light: #f7f7f7;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.07);
    --card-bg-light: #ffffff;
    --post-it-yellow: #fffacd; /* Light yellow for post-it */
}

/* --- Genel Stiller --- */
body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.7;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-dark);
}
.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- YENİ BAŞLIK YAPISI --- */
.main-header {
    background-color: var(--primary-dark-green);
    color: var(--text-light);
    padding: 1rem 10%;
}
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
}
.site-branding {
    text-align: left;
}
.site-branding .site-title {
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    color: var(--text-light);
    font-weight: 700;
    line-height: 1.2; /* Adjust line height for better spacing */
}

.site-branding .site-description {
    font-size: 1rem; /* Slightly larger font size */
    color: rgba(255, 255, 255, 0.9); /* Slightly less transparent */
    margin-top: 2px; /* Reduced margin for closer alignment */
    font-weight: 300;
    letter-spacing: 0.18em; /* Subtle letter spacing */
    line-height: 1.3; /* Adjust line height */
}
/* Menü ve Başlık hizalaması */
.main-navigation { flex-grow: 1; }

/* --- NAVİGASYON --- */
.main-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: flex-end; /* Düğmeleri sağa yasla */
    gap: 20px;
}
.main-navigation a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    padding: 10px 22px;
    border-radius: 999px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.main-navigation a:hover, .main-navigation li.current-menu-item > a {
    background-color: var(--primary-light-green);
    color: var(--primary-dark-green);
}

/* --- ANA BÖLÜMLER --- */
section {
    padding: 4rem 0;
    border-bottom: 1px solid #e5e9e3;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
section:last-of-type { border-bottom: none; }
section.fade-in { opacity: 1; transform: translateY(0); }
section h3 {
    font-family: 'Merriweather', serif;
    color: var(--primary-dark-green);
    font-size: 2rem;
    text-align: center;
    margin-top: 0;
    margin-bottom: 2.5rem;
}

/* --- KARŞILAMA KARTI --- */
#welcome {
    border-bottom: none;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.welcome-card {
    background-color: var(--card-bg-light);
    text-align: center;
    padding: 3rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 24px var(--shadow-color);
}
.welcome-card h3 {
    margin-bottom: 1rem;
}

/* --- KART STİLLERİ --- */
.card {
    background: var(--card-bg-light);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px var(--shadow-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px var(--shadow-color);
}
.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 0 10%;
    max-width: calc(100% - 20%);
}

/* --- Yazı ve Akademik Kartlar --- */
.article-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.card-content h4 {
    margin-top: 0;
    font-family: 'Merriweather', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.card-content h4 a {
    color: var(--text-dark);
    text-decoration: none;
}
.card-content h4 a:hover {
    color: var(--primary-dark-green);
    text-decoration: underline;
}
.card-content p {
    flex-grow: 1;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.8;
}
.card-link {
    text-decoration: none;
    color: var(--primary-dark-green);
    font-weight: 600;
    align-self: flex-start;
}
.card-link:hover {
    text-decoration: underline;
}

.publication-card { padding: 2rem; text-align: center; }
.publication-card .card-icon { font-size: 2rem; color: var(--primary-medium-green); margin-bottom: 1rem; }

/* --- İLETİŞİM BÖLÜMÜ --- */
#iletisim .contact-links-container {
    display: flex;
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    gap: 2rem;
    margin-top: 2rem;
}

.social-media-cards-row {
    display: flex;
    justify-content: center; /* Center social media cards within their row */
    flex-wrap: wrap;
    gap: 2rem;
}

.humorous-comment-card {
    max-width: 600px; /* Limit width for readability */
    text-align: center;
    padding: 2rem;
    font-style: italic;
    font-size: 1.1rem;
    line-height: 1.6;
    background-color: var(--post-it-yellow); /* Post-it color */
    border-radius: 8px; /* Slightly less rounded for post-it */
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2); /* More pronounced shadow */
    transform: rotate(2deg); /* Slight rotation */
    margin: 0 auto; /* Ensure centering */
}

.contact-link-card {
    background: var(--card-bg-light);
    color: var(--text-dark);
    text-decoration: none;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 4px 16px var(--shadow-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 180px;
    height: 140px; /* Ensure consistent height */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-link-card:hover { transform: translateY(-8px); box-shadow: 0 16px 32px rgba(0, 0, 0, 0.1); }
.contact-link-card i { font-size: 2.5rem; color: var(--primary-dark-green); }
.contact-link-card span { font-weight: 600; }

.gmail-card {
    margin: 0 auto; /* Center the Gmail card if it's on its own row */
}

/* --- FOOTER --- */
.main-footer {
    text-align: center;
    padding: 2.5rem;
    background: var(--primary-dark-green);
    color: var(--text-light);
    margin-top: 2rem;
}

.main-footer .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-contact-links {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.footer-contact-links a {
    color: var(--text-light);
    font-size: 1.8rem;
    transition: color 0.3s ease;
}

.footer-contact-links a:hover {
    color: var(--primary-light-green);
}

/* --- Responsive Navigation --- */
.menu-toggle {
    display: none; /* Hidden by default on desktop */
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
}

@media (max-width: 768px) {
    .header-container {
        justify-content: space-between;
    }

    .site-branding {
        flex-grow: 1;
        text-align: left;
    }

    .menu-toggle {
        display: block; /* Show hamburger on mobile */
    }

    .main-navigation {
        width: 100%;
        order: 3; /* Push navigation below branding and toggle */
        display: none; /* Hide navigation by default */
    }

    .main-navigation.toggled {
        display: block; /* Show navigation when toggled */
    }

    .main-navigation ul {
        flex-direction: column; /* Stack menu items vertically */
        text-align: center;
        padding: 10px 0;
        background-color: var(--primary-dark-green); /* Same as header background */
    }

    .main-navigation ul li {
        margin: 5px 0;
    }

    .main-navigation a {
        display: block;
        padding: 10px 20px;
        border-radius: 0;
    }

    .main-navigation a:hover, .main-navigation li.current-menu-item > a {
        background-color: var(--primary-medium-green);
    }
    
    /* Stack cards on mobile */
    #latest-blog-post .cards-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (min-width: 769px) {
    #latest-blog-post .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- New styles for Welcome and Latest Blog Post sections --- */
#latest-blog-post .cards-container {
    position: relative;
}

.all-posts-link-container {
    position: absolute;
    bottom: -2.5rem;
    right: 0;
}

#subscribe {
    background-color: var(--background-light);
    text-align: center;
    padding-top: 0;
}

.subscribe-form {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 2rem;
}

.subscribe-form input[type="email"] {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    width: 300px;
}

.subscribe-form .button {
    padding: 12px 24px;
}

/* Hakkimda Page Styles */
.page-template-page-hakkimda-temp #main-page-content .container {
    max-width: 800px;
    margin: 0 auto;
}

.button {
    display: inline-block;
    background-color: var(--primary-dark-green);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.button:hover {
    background-color: var(--primary-light-green);
    color: var(--primary-dark-green);
}

.collapsible-icon {
    margin-right: 10px;
    font-weight: bold;
    color: var(--primary-dark-green);
}

p > strong {
    display: flex;
    align-items: center;
}

p > strong:hover {
    color: var(--primary-medium-green);
}

.collapsible-content {
    padding-left: 20px;
    border-left: 2px solid var(--primary-light-green);
    margin-left: 10px;
}
.plain-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
}

.plain-link:hover {
    color: var(--primary-dark-green);
    text-decoration: underline;
}

/* MailPoet Form Styles */
.mailpoet_form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.mailpoet_form input[type="email"] {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    width: 300px;
    text-align: center;
}

.mailpoet_form .mailpoet_submit {
    display: inline-block;
    background-color: var(--primary-dark-green);
    color: var(--text-light);
    padding: 12px 24px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: none; /* Remove default button border */
    cursor: pointer;
}

.mailpoet_form .mailpoet_submit:hover {
    background-color: var(--primary-light-green);
    color: var(--primary-dark-green);
}

/* --- Share Buttons --- */
.share-buttons {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.share-buttons h4 {
    font-family: 'Merriweather', serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.share-buttons .share-btn {
    display: inline-block;
    margin: 0 10px;
    color: var(--primary-dark-green);
    font-size: 1.5rem;
    transition: color 0.3s ease, transform 0.3s ease;
}

.share-buttons .share-btn:hover {
    color: var(--primary-medium-green);
    transform: scale(1.1);
}
