/*
Theme Name: Orhon Glass
Author: Yalçınbaşkaya
Description: Glass-metal design with symmetric cockpit header, MathJax support, and security features.
Version: 3.1
*/

/* ==================== 1. CSS DEĞİŞKENLER ==================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600&family=Playfair+Display:ital@1&display=swap');

:root {
    /* Renkler */
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-main: #ecf0f1;
    --text-muted: rgba(236, 240, 241, 0.6);
    --accent: #00ced1;
    --bg-gradient: radial-gradient(circle at center, #34495e, #1a252f);

    /* Akışkan Fontlar */
    --fs-h1: clamp(1.8rem, 3vw, 2.4rem);
    --fs-h2: clamp(1.4rem, 2.5vw, 1.8rem);
    --fs-h3: clamp(1.2rem, 2vw, 1.5rem);
    --fs-body: 1rem;
    --fs-small: clamp(0.8rem, 0.9vw + 0.4rem, 0.95rem);
}

/* ==================== 2. GLOBAL RESET ==================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--text-main);
    background: var(--bg-gradient);
    min-height: 100vh;
    margin: 0;
    /* GÜVENLİK: Yazı seçilemesin */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

/* Form elemanlarında seçim aktif */
input,
textarea,
.post-content,
.comment-content {
    user-select: text !important;
    -webkit-user-select: text !important;
}

/* ==================== 3. FORM NORMALİZASYONU ==================== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
textarea,
select,
button,
input[type="submit"],
.button {
    appearance: none;
    -webkit-appearance: none;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    padding: 12px 20px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 100%;
    backdrop-filter: blur(5px);
}

button,
input[type="submit"],
.button {
    cursor: pointer;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    background: rgba(255, 255, 255, 0.2);
    width: auto;
    display: inline-block;
}

button:hover,
input[type="submit"]:hover,
.button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* ==================== 4. TİPOGRAFİ ==================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    font-weight: 600;
    color: #fff;
}

h1 {
    font-size: var(--fs-h1);
}

h2 {
    font-size: var(--fs-h2);
}

h3 {
    font-size: var(--fs-h3);
}

p {
    margin-bottom: 1.2rem;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #fff;
}

/* ==================== 5. MATHJAX CONTAINER ==================== */
.math-container {
    overflow-x: auto;
    text-align: center;
    margin: 20px 0;
    padding: 15px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.math-inline {
    display: inline;
    margin: 0 3px;
}

/* ==================== 6. GLASS METAL EFEKTİ ==================== */
.glass-metal {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    border-radius: 12px;
}

/* ==================== 7. HEADER - SİMETRİK KOKPİT ==================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
}

body.admin-bar header {
    top: 32px;
}

/* Header Grupları */
.header-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Logo Butonları */
.logo-btn {
    text-decoration: none;
    color: #fff;
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    padding: 10px 25px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

.logo-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Menü İkonları */
.menu-icon {
    font-size: 2rem;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
    user-select: none;
    padding: 5px;
}

.menu-icon:hover {
    color: var(--accent);
    transform: scale(1.1);
}

/* ==================== 8. MASONRY GRID LAYOUT ==================== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    padding: 120px 20px 50px 20px;
    max-width: 98%;
    margin: 0 auto;
}

/* Tekil yazı sayfası */
.single-view {
    grid-template-columns: 1fr !important;
    max-width: 900px !important;
    margin: 0 auto;
}

/* ==================== 9. KARTLAR ==================== */
.post-card {
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    padding: 25px;
    cursor: pointer;
}

.post-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.post-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.post-title a {
    color: #fff;
}

.post-excerpt,
.post-content {
    font-size: var(--fs-body);
    color: var(--text-main);
    line-height: 1.8;
    opacity: 0.9;
}

/* Stretched Link */
.stretched-link::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

/* ==================== 10. THUMBNAIL ==================== */
.post-thumbnail {
    margin-bottom: 15px;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    /* GÜVENLİK: Resim sürüklenemesin */
    pointer-events: none;
    -webkit-user-drag: none;
    user-select: none;
}

/* ==================== 11. DUAL SLIDE PANELS ==================== */
.slide-panel {
    position: fixed;
    top: 0;
    width: 320px;
    height: 100vh;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    padding: 80px 30px;
    overflow-y: auto;
}

.slide-panel.left {
    left: -350px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-panel.left.active {
    left: 0;
}

.slide-panel.right {
    right: -350px;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.slide-panel.right.active {
    right: 0;
}

.panel-close {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 36px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
}

.panel-close:hover {
    color: var(--accent);
    transform: rotate(90deg);
}

/* Panel Navigation */
.panel-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.panel-nav ul li {
    margin-bottom: 15px;
}

.panel-nav ul li a {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 400;
    display: block;
    padding: 10px 15px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.panel-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
    color: var(--accent);
}

/* Panel Widgets */
.slide-panel .widget {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.slide-panel .widget-title {
    font-size: 1.3rem !important;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    font-family: 'Inter', sans-serif !important;
    font-weight: 600;
}

.slide-panel .widget ul {
    list-style: none;
    padding: 0;
}

.slide-panel .widget ul li {
    margin-bottom: 8px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.slide-panel .widget ul li a {
    color: #ecf0f1;
    font-size: 0.95rem;
}

.slide-panel .widget ul li a:hover {
    color: var(--accent);
}

/* ==================== 12. FOOTER ==================== */
footer {
    position: fixed;
    bottom: 30px;
    right: 40px;
    z-index: 1000;
    font-family: 'Playfair Display', serif;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    font-style: italic;
    user-select: none;
}

.thinking-text {
    font-weight: 700;
    margin-right: 2px;
}

.dot {
    opacity: 0;
    animation: fadeInOut 2s infinite;
    font-weight: bold;
}

.dot:nth-child(2) {
    animation-delay: 0.3s;
}

.dot:nth-child(3) {
    animation-delay: 0.6s;
}

.dot:nth-child(4) {
    animation-delay: 0.9s;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-2px);
    }

    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

/* ==================== 13. SINGLE POST ==================== */
.full-content {
    padding: 40px;
}

.full-content h1 {
    font-size: var(--fs-h1);
    margin-bottom: 20px;
}

.full-content .post-thumbnail img {
    height: auto;
    max-height: 500px;
    margin-bottom: 30px;
}

.full-content .post-content {
    font-size: var(--fs-body);
    line-height: 1.8;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.post-navigation a {
    color: var(--accent);
    font-weight: 600;
}

.back-link {
    display: inline-block;
    margin-top: 30px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    transition: all 0.3s ease;
    font-weight: 600;
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ==================== 14. WORDPRESS FORMS ==================== */
.comment-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    margin-top: 30px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.comment-form input,
.comment-form textarea {
    margin-bottom: 15px;
}

.search-form {
    display: flex;
    gap: 10px;
}

/* ==================== 15. RESPONSIVE ==================== */
@media (max-width: 768px) {
    .grid-container {
        grid-template-columns: 1fr;
        padding: 100px 15px 80px 15px;
        max-width: 100%;
    }

    header {
        padding: 0 15px;
    }

    .header-group {
        gap: 10px;
    }

    .logo-btn {
        font-size: 0.9rem;
        padding: 8px 15px;
    }

    .menu-icon {
        font-size: 1.5rem;
    }

    .slide-panel {
        width: 280px;
        padding: 60px 20px;
    }

    .slide-panel.left {
        left: -300px;
    }

    .slide-panel.right {
        right: -300px;
    }

    footer {
        right: 20px;
        font-size: 1rem;
    }

    .full-content {
        padding: 20px;
    }
}

/* ==================== 16. SECURITY ==================== */
img {
    pointer-events: none;
    -webkit-user-drag: none;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}