/*
Theme Name: Kodeks Egitim Rehberi
Theme URI: https://kodeksegitimrehberi.com
Author: Kodeks
Author URI: https://kodeksegitimrehberi.com
Description: Turkiye'deki kurs, dersane ve egitim kurumlarini listeleyen profesyonel bir rehber/dizin WordPress temasi.
Version: 1.0.0
Requires at least: 6.4
Tested up to: 6.7
Requires PHP: 8.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kodeks-egitim-rehberi
Domain Path: /languages
Tags: education, directory, listing, turkish, responsive, elementor-compatible
*/

:root {
    --primary: #1e3a5f;
    --primary-light: #2c5282;
    --primary-dark: #152a45;
    --secondary: #38b2ac;
    --secondary-light: #4fd1c5;
    --accent: #ed8936;
    --accent-light: #f6ad55;
    --success: #48bb78;
    --warning: #ecc94b;
    --danger: #f56565;
    --text: #2d3748;
    --text-light: #718096;
    --text-lighter: #a0aec0;
    --bg: #ffffff;
    --bg-light: #f7fafc;
    --bg-dark: #1a202c;
    --border: #e2e8f0;
    --border-light: #edf2f7;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
    --radius: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
    --font-heading: 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --container-width: 1280px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-light);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text);
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font-family: inherit;
    font-size: inherit;
}

/* Container */
.kodeks-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Screen reader text */
.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;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 0.875rem;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

/* Buttons */
.kodeks-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.kodeks-btn-primary {
    background-color: var(--primary);
    color: #fff;
}

.kodeks-btn-primary:hover {
    background-color: var(--primary-light);
    color: #fff;
}

.kodeks-btn-secondary {
    background-color: var(--secondary);
    color: #fff;
}

.kodeks-btn-secondary:hover {
    background-color: var(--secondary-light);
    color: #fff;
}

.kodeks-btn-accent {
    background-color: var(--accent);
    color: #fff;
}

.kodeks-btn-accent:hover {
    background-color: var(--accent-light);
    color: #fff;
}

.kodeks-btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.kodeks-btn-outline:hover {
    background-color: var(--primary);
    color: #fff;
}

.kodeks-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
}

.kodeks-btn-lg {
    padding: 1rem 2rem;
    font-size: 1.0625rem;
}

/* Badge */
.kodeks-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 9999px;
    line-height: 1.4;
}

.kodeks-badge-featured {
    background-color: var(--warning);
    color: #744210;
}

.kodeks-badge-sponsored {
    background-color: var(--accent);
    color: #fff;
}

.kodeks-badge-type {
    background-color: var(--bg-light);
    color: var(--text-light);
    border: 1px solid var(--border);
}

/* Forms */
.kodeks-input,
.kodeks-select,
.kodeks-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--bg);
    color: var(--text);
    transition: var(--transition);
    font-size: 0.9375rem;
}

.kodeks-input:focus,
.kodeks-select:focus,
.kodeks-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.kodeks-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Stars */
.kodeks-stars {
    display: inline-flex;
    gap: 2px;
    color: var(--warning);
}

.kodeks-stars .star-filled { color: var(--warning); }
.kodeks-stars .star-empty { color: var(--border); }

/* WordPress Defaults */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1rem;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

/* Print */
@media print {
    .site-header,
    .site-footer,
    .kodeks-sidebar,
    .kodeks-filters,
    .kodeks-sticky-bar,
    .kodeks-social-share,
    .kodeks-compare-btn,
    .kodeks-contact-form,
    #wpadminbar {
        display: none !important;
    }

    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }

    a {
        color: #000;
        text-decoration: underline;
    }

    .kodeks-container {
        max-width: 100%;
        padding: 0;
    }
}
