/*
Theme Name: Quka Modern
Theme URI: https://example.com/quka-modern
Author: Yunus
Author URI: https://example.com
Description: E-ticaret ve pazaryeri altyapısı sunan yazılım firmaları için modern & minimal kurumsal WordPress teması. Elementor ile tam uyumlu, WooCommerce destekli, Türkçe arayüz, hızlı ve SEO uyumlu.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quka-modern
Tags: business, corporate, elementor, minimal, modern, responsive, blog, e-commerce, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

@import url('assets/css/home.css');

/* ==========================================================================
   1. CSS DEĞİŞKENLERİ
   ========================================================================== */
:root {
    --qm-primary: #0b1220;
    --qm-secondary: #4f46e5;
    --qm-accent: #6366f1;
    --qm-accent-hover: #4338ca;
    --qm-success: #10b981;
    --qm-bg: #ffffff;
    --qm-bg-soft: #f8fafc;
    --qm-bg-dark: #0b1220;
    --qm-border: #e5e7eb;
    --qm-text: #0f172a;
    --qm-text-soft: #475569;
    --qm-muted: #94a3b8;

    --qm-font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --qm-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    --qm-radius-sm: 8px;
    --qm-radius-md: 14px;
    --qm-radius-lg: 24px;
    --qm-radius-pill: 999px;

    --qm-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --qm-shadow-md: 0 4px 20px rgba(15, 23, 42, 0.06);
    --qm-shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.08);

    --qm-container: 1240px;
    --qm-transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   2. RESET & TYPOGRAPHY
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--qm-font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--qm-text);
    background: var(--qm-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--qm-accent); text-decoration: none; transition: color var(--qm-transition); }
a:hover { color: var(--qm-accent-hover); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--qm-font-heading);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 0 0 0.75em;
    color: var(--qm-primary);
}

h1 { font-size: clamp(2rem, 4vw + 1rem, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.625rem, 2.5vw + 1rem, 2.5rem); }
h3 { font-size: clamp(1.25rem, 1.5vw + 1rem, 1.75rem); }
h4 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

/* ==========================================================================
   3. CONTAINER
   ========================================================================== */
.qm-container {
    width: 100%;
    max-width: var(--qm-container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ==========================================================================
   4. TOPBAR (kampanya çubuğu)
   ========================================================================== */
.qm-topbar {
    background: linear-gradient(90deg, var(--qm-secondary), var(--qm-accent));
    color: #fff;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 500;
}
.qm-topbar a { color: #fff; text-decoration: underline; margin-left: 8px; }

/* ==========================================================================
   5. HEADER
   ========================================================================== */
.qm-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--qm-border);
}

.qm-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 32px;
}

.qm-logo a {
    font-family: var(--qm-font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: var(--qm-primary);
}
.qm-logo img { max-height: 44px; width: auto; }

.qm-nav__menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0; padding: 0;
    align-items: center;
}

.qm-nav__menu > li { position: relative; }

.qm-nav__menu a {
    color: var(--qm-text-soft);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 26px 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.qm-nav__menu > li > a:hover,
.qm-nav__menu .current-menu-item > a { color: var(--qm-primary); }

/* Mega menu (alt menü) */
.qm-nav__menu .sub-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    border: 1px solid var(--qm-border);
    border-radius: var(--qm-radius-md);
    padding: 16px;
    min-width: 280px;
    box-shadow: var(--qm-shadow-lg);
    list-style: none;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transition: all var(--qm-transition);
}

.qm-nav__menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.qm-nav__menu .sub-menu a {
    padding: 10px 12px;
    border-radius: var(--qm-radius-sm);
    display: block;
    width: 100%;
}
.qm-nav__menu .sub-menu a:hover { background: var(--qm-bg-soft); color: var(--qm-primary); }

.qm-header__cta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.qm-header__phone {
    font-weight: 600;
    color: var(--qm-primary);
    font-size: 0.9rem;
}

.qm-nav__toggle {
    display: none;
    background: none;
    border: 0;
    width: 40px; height: 40px;
    cursor: pointer;
    color: var(--qm-primary);
}

/* ==========================================================================
   6. BUTONLAR
   ========================================================================== */
.qm-btn,
.button,
input[type="submit"],
button.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    background: var(--qm-secondary);
    color: #fff;
    font-family: var(--qm-font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--qm-radius-pill);
    border: 0;
    cursor: pointer;
    transition: all var(--qm-transition);
    text-decoration: none;
    white-space: nowrap;
}

.qm-btn:hover {
    background: var(--qm-accent-hover);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.3);
}

.qm-btn--outline {
    background: transparent;
    color: var(--qm-primary);
    border: 1.5px solid var(--qm-border);
}
.qm-btn--outline:hover {
    background: var(--qm-primary);
    color: #fff;
    border-color: var(--qm-primary);
    box-shadow: none;
}

.qm-btn--lg { padding: 16px 32px; font-size: 1rem; }

/* ==========================================================================
   7. ANA İÇERİK & GRID
   ========================================================================== */
.qm-main { min-height: 60vh; }

.qm-section { padding: 88px 0; }
.qm-section--soft { background: var(--qm-bg-soft); }
.qm-section--dark { background: var(--qm-bg-dark); color: #cbd5e1; }
.qm-section--dark h1, .qm-section--dark h2, .qm-section--dark h3 { color: #fff; }

.qm-section__head {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}
.qm-section__head p { color: var(--qm-text-soft); font-size: 1.1rem; }

.qm-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 64px;
    padding: 64px 0;
}
.qm-content-grid--full { grid-template-columns: 1fr; }

/* ==========================================================================
   8. POST / SAYFA
   ========================================================================== */
.qm-post {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--qm-border);
}
.qm-post:last-child { border-bottom: 0; }

.qm-post__thumb {
    margin-bottom: 24px;
    border-radius: var(--qm-radius-md);
    overflow: hidden;
}
.qm-post__thumb img { width: 100%; transition: transform 0.6s ease; }
.qm-post__thumb:hover img { transform: scale(1.04); }

.qm-post__meta {
    display: flex;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--qm-muted);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}
.qm-post__meta a { color: var(--qm-text-soft); }

.qm-post__title { margin: 0 0 16px; }
.qm-post__title a { color: var(--qm-primary); }
.qm-post__title a:hover { color: var(--qm-secondary); }

.qm-post__excerpt { color: var(--qm-text-soft); font-size: 1.05rem; }

.qm-readmore {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 16px;
    font-weight: 600;
    color: var(--qm-secondary);
}
.qm-readmore::after { content: '→'; transition: transform var(--qm-transition); }
.qm-readmore:hover::after { transform: translateX(4px); }

/* ==========================================================================
   9. SIDEBAR
   ========================================================================== */
.qm-sidebar .widget {
    background: var(--qm-bg-soft);
    padding: 28px;
    border-radius: var(--qm-radius-md);
    margin-bottom: 24px;
}
.qm-sidebar .widget-title {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 16px;
    color: var(--qm-primary);
}
.qm-sidebar ul { list-style: none; padding: 0; margin: 0; }
.qm-sidebar li {
    padding: 8px 0;
    border-bottom: 1px solid var(--qm-border);
}
.qm-sidebar li:last-child { border-bottom: 0; }

/* ==========================================================================
   10. PAGINATION
   ========================================================================== */
.qm-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
}
.qm-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--qm-radius-sm);
    background: var(--qm-bg-soft);
    color: var(--qm-text-soft);
    font-weight: 600;
    transition: all var(--qm-transition);
}
.qm-pagination .page-numbers:hover,
.qm-pagination .page-numbers.current {
    background: var(--qm-secondary);
    color: #fff;
}

/* ==========================================================================
   11. FOOTER
   ========================================================================== */
.qm-footer {
    background: var(--qm-bg-dark);
    color: #cbd5e1;
    padding: 80px 0 24px;
}
.qm-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 20px; }
.qm-footer ul { list-style: none; padding: 0; margin: 0; }
.qm-footer li { padding: 6px 0; }
.qm-footer a { color: #cbd5e1; font-size: 0.92rem; }
.qm-footer a:hover { color: #fff; }

.qm-footer__widgets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 40px;
    margin-bottom: 56px;
}

.qm-footer__brand p { font-size: 0.92rem; color: #94a3b8; }
.qm-footer__contact { font-size: 0.92rem; color: #cbd5e1; line-height: 1.8; }

.qm-footer__bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 0.875rem;
    color: #94a3b8;
}

.qm-social { display: flex; gap: 12px; }
.qm-social a {
    width: 36px; height: 36px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06);
    border-radius: var(--qm-radius-pill);
    transition: all var(--qm-transition);
}
.qm-social a:hover { background: var(--qm-secondary); }

/* ==========================================================================
   12. YORUMLAR
   ========================================================================== */
.qm-comments { margin-top: 48px; }
.qm-comments .comment-list { list-style: none; padding: 0; }
.qm-comments .comment {
    padding: 24px;
    background: var(--qm-bg-soft);
    border-radius: var(--qm-radius-md);
    margin-bottom: 16px;
}
.qm-comments input[type="text"],
.qm-comments input[type="email"],
.qm-comments input[type="url"],
.qm-comments textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--qm-border);
    border-radius: var(--qm-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 16px;
    transition: border-color var(--qm-transition);
}
.qm-comments input:focus, .qm-comments textarea:focus {
    outline: none;
    border-color: var(--qm-secondary);
}

/* ==========================================================================
   13. ELEMENTOR UYUMLULUK
   ========================================================================== */
.elementor-page .qm-main { padding: 0; }
.elementor-page .qm-content-grid { display: block; padding: 0; }
.elementor-page .qm-sidebar { display: none; }

/* Elementor "Tam Genişlik" şablonu için */
.elementor-template-full-width .qm-container { max-width: none; padding: 0; }

/* ==========================================================================
   14. WORDPRESS YARDIMCI SINIFLARI
   ========================================================================== */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 0 auto 16px; }
.alignwide { max-width: 1140px; margin-left: auto; margin-right: auto; }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px; width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}
.sticky { position: relative; }
.wp-caption-text { font-size: 0.875rem; color: var(--qm-text-soft); }

/* ==========================================================================
   15. RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .qm-content-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 900px) {
    .qm-nav__toggle { display: inline-flex; align-items: center; justify-content: center; }
    .qm-header__phone { display: none; }

    .qm-nav {
        position: fixed;
        top: 76px;
        right: 0; bottom: 0;
        width: 85%;
        max-width: 360px;
        background: #fff;
        padding: 32px 24px;
        transform: translateX(100%);
        transition: transform var(--qm-transition);
        box-shadow: var(--qm-shadow-lg);
        overflow-y: auto;
    }
    .qm-nav.is-open { transform: translateX(0); }

    .qm-nav__menu { flex-direction: column; gap: 4px; align-items: flex-start; }
    .qm-nav__menu > li { width: 100%; border-bottom: 1px solid var(--qm-border); }
    .qm-nav__menu > li > a { padding: 14px 0; width: 100%; }

    .qm-nav__menu .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 0;
        padding: 0 0 12px 16px;
        background: transparent;
        min-width: auto;
    }
}

@media (max-width: 600px) {
    .qm-section { padding: 64px 0; }
    .qm-footer { padding: 56px 0 24px; }
    h1 { font-size: 2.25rem; }
}
