/*
Theme Name: Kadir Atay Minimal
Theme URI: https://kadiratay.com
Author: Kadir Atay
Author URI: https://kadiratay.com
Description: Minimal, dark personal portfolio & blog theme.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kadiratay-minimal
*/

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

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: #e5e7eb;
    background-color: #020617;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    opacity: .8;
}

.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 40;
    border-bottom: 1px solid rgba(148, 163, 184, .35);
    backdrop-filter: blur(16px);
    background: rgba(15, 23, 42, 0.96);
}

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

.site-brand {
    display: flex;
    flex-direction: column;
}

.site-title a {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #e5e7eb;
}

.site-tagline {
    font-size: 0.8rem;
    color: #9ca3af;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    color: #e5e7eb;
}

/* Hero */

.hero {
    padding: 4rem 0 3rem;
    background: radial-gradient(circle at 0% 0%, rgba(56, 189, 248, .18), transparent 55%),
                radial-gradient(circle at 100% 0%, rgba(168, 85, 247, .18), transparent 55%);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #f9fafb;
    margin-bottom: 0.75rem;
}

.hero-subtitle {
    font-size: 1.05rem;
    color: #cbd5f5;
    margin-bottom: 1.5rem;
    max-width: 32rem;
}

.hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-bottom: 1.75rem;
}

.hero-pill {
    font-size: 0.75rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, .6);
    background: rgba(15, 23, 42, .7);
    color: #e5e7eb;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 999px;
    font-size: 0.9rem;
    border: 1px solid transparent;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(to right, #38bdf8, #6366f1);
    color: #0b1120;
}

.btn-outline {
    border-color: rgba(148, 163, 184, .7);
    background: transparent;
    color: #e5e7eb;
}

.hero-photo-wrapper {
    display: flex;
    justify-content: flex-end;
}

.hero-photo {
    width: 240px;
    height: 240px;
    border-radius: 32px;
    border: 1px solid rgba(148, 163, 184, .4);
    padding: 0.6rem;
    background: #020617;
    overflow: hidden;
}

.hero-photo-inner {
    width: 100%;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background: #111827;
}

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

/* Sections */

.section {
    padding: 2.5rem 0 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #e5e7eb;
}

.section-subtitle {
    font-size: .85rem;
    color: #9ca3af;
}

.section-body {
    color: #cbd5f5;
    font-size: 0.95rem;
}

/* Cards / grids */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
}

.card {
    background: #020617;
    border-radius: 1.1rem;
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(148, 163, 184, .5);
}

.card-title {
    font-size: .95rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: .4rem;
}

.card-meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-bottom: .6rem;
}

.card-excerpt {
    font-size: .85rem;
    color: #cbd5f5;
}

/* Blog list */

.post-list {
    display: grid;
    gap: 1.25rem;
    padding: 1rem 0 2.5rem;
}

.post-item {
    background: #020617;
    border-radius: 1rem;
    border: 1px solid rgba(148, 163, 184, .5);
    padding: 1.25rem 1.35rem;
}

.post-title {
    font-size: 1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: .35rem;
}

.post-meta {
    font-size: .75rem;
    color: #9ca3af;
    margin-bottom: .7rem;
}

.post-excerpt {
    font-size: .85rem;
    color: #cbd5f5;
}

/* Content */

.content {
    max-width: 720px;
    margin: 2.5rem auto;
    background: #020617;
    border-radius: 1.25rem;
    border: 1px solid rgba(148, 163, 184, .6);
    padding: 2rem 2.2rem;
    color: #cbd5f5;
}

.content h1 {
    font-size: 1.8rem;
    margin-bottom: .7rem;
    color: #e5e7eb;
}

.content h2 {
    font-size: 1.3rem;
    margin-top: 1.4rem;
    margin-bottom: .45rem;
    color: #e5e7eb;
}

.content p {
    margin-bottom: .85rem;
}

/* Footer */

.site-footer {
    margin-top: auto;
    border-top: 1px solid rgba(148, 163, 184, .4);
    padding: 1.3rem 0 1.5rem;
    font-size: 0.8rem;
    color: #9ca3af;
    background: rgba(15, 23, 42, .96);
}

/* Responsive */

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

    .hero-photo-wrapper {
        justify-content: flex-start;
        margin-top: 1.5rem;
    }

    .hero {
        padding-top: 3rem;
    }
}

@media (max-width: 640px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.6rem;
    }

    .main-nav ul {
        flex-wrap: wrap;
        row-gap: 0.4rem;
        column-gap: 1rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

    .content {
        padding: 1.5rem 1.25rem;
    }
}
