/*
Theme Name: MotoEtkinlik
Theme URI: https://motoetkinlik.com
Author: Yalçın ÇEKER
Author URI: https://motoetkinlik.com
Description: Motoetkinlik web sitesi için özel olarak geliştirilmiş, mobil uyumlu ve SEO odaklı özel WordPress teması.
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: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: motoetkinlik
Tags: motoetkinlik, haber, news, blog, motorsports, responsive, custom-theme
*/


/* =========================
   ROOT & TYPOGRAPHY SYSTEM
========================= */

:root {
    --font-xs: 12px;
    --font-sm: 13px;
    --font-md: 14px;
    --font-lg: 16px;

    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-bold: 700;

    --color-text: #111;
    --color-muted: #777;
    --color-accent: #d32f2f;
}

html {
    box-sizing: border-box;
    line-height: 1.15;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}

/* =========================
   BASE
========================= */

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-text);
    background: #fff;
}

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

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

a:hover {
    color: var(--color-accent);
}

/* =========================
   HEADINGS
========================= */

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 0.6em;
    font-weight: var(--font-weight-bold);
}

/* =========================
   CONTAINER
========================= */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================
   CATEGORY LABEL SYSTEM
========================= */

.cat {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    color: #fff;
    line-height: 1;
}

/* Category colors */
.cat-motogp        { background: #d32f2f; }
.cat-moto2         { background: #c62828; }
.cat-moto3         { background: #b71c1c; }

.cat-wsbk          { background: #1565c0; }
.cat-worldssp      { background: #0d47a1; }
.cat-worldssp300   { background: #1e88e5; }

.cat-youtube       { background: #ff0000; }

.cat-genel,
.cat-haberler      { background: #424242; }

.cat-fiyatlar      { background: #2e7d32; }
.cat-otoetkinlik   { background: #ef6c00; }
.cat-sitegaleri    { background: #6a1b9a; }

/* =========================
   NEWS CARD – GLOBAL VERSION
========================= */

.news-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card h3 {
    padding: 14px 16px;
    font-size: 16px;
    line-height: 1.35;
    margin: 0;
    border-top: 1px solid #f0f0f0;
}

/* Hover (desktop only) */
@media (hover: hover) {
    .news-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
    }

    .news-card:hover h3 {
        color: var(--color-accent);
    }
}

/* =========================
   UTILITIES
========================= */

.text-center {
    text-align: center;
}

.hidden {
    display: none !important;
}

/* =========================
   MEDIA FIXES
========================= */

iframe,
embed,
object {
    max-width: 100%;
}
/* =========================
   MOTOETKİNLİK – AUTH (LIGHT / PREMIUM)
========================= */

/* Sayfa arka planı */
.page-id-giris,
.page-id-kayit {
    background: #f4f4f4;
}

/* Ana form kutusu */
.me-auth-form {
    max-width: 420px;
    margin: 70px auto;
    padding: 34px;
    background: #ffffff;
    border-radius: 18px;
    border: 1px solid #e6e6e6;
    box-shadow:
        0 10px 30px rgba(0,0,0,0.06),
        0 1px 0 rgba(0,0,0,0.04);
}

/* Inputlar */
.me-auth-form input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 12px;
    border: 1px solid #dcdcdc;
    background: #f9f9f9;
    color: #111;
    font-size: 15px;
    transition: all .2s ease;
}

.me-auth-form input::placeholder {
    color: #999;
}

.me-auth-form input:focus {
    background: #ffffff;
    border-color: #b5b5b5;
    outline: none;
}

/* Buton */
.me-auth-form button {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    border-radius: 14px;
    background: linear-gradient(
        to bottom,
        #1c1c1c 0%,
        #000000 100%
    );
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all .2s ease;
}

.me-auth-form button:hover {
    opacity: .9;
    transform: translateY(-1px);
}

/* Bilgilendirme & hata kutuları */
.me-auth-error {
    background: #fef2f2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
}

.me-auth-info {
    background: #f1f5f9;
    color: #334155;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-weight: 600;
}

/* Şifre kuralı açıklaması */
.me-auth-password-info {
    margin: 8px 0 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.me-auth-password-info code {
    background: #f1f1f1;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 12px;
}

/* Alt linkler (şifremi unuttum vs.) */
.me-auth-links {
    margin-top: 14px;
    text-align: center;
}

.me-auth-links a {
    font-size: 14px;
    color: #555;
    text-decoration: underline;
}
/* ===== AUTH HEADER (LOGO + BAŞLIK) ===== */
.me-auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.me-auth-header img {
    max-width: 200px;   /* LOGO BOYUTU */
    height: auto;
    margin: 0 auto 4px;
    display: block;
}

.me-auth-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: #111;
}

.me-auth-header p {
    margin-top: 2px;
    font-size: 14px;
    color: #666;
}

/* ===== GİRİŞ (8388) & KAYIT (8391) – TÜM BAŞLIKLARI YOK ET ===== */

/* klasik page title */
.page-id-8388 h1,
.page-id-8391 h1,
.page-id-8388 .entry-title,
.page-id-8391 .entry-title {
    display: none !important;
}


/* bazı temalarda başlık section içinde gelir */
.page-id-8388 section:first-of-type > h1,
.page-id-8391 section:first-of-type > h1 {
    display: none !important;
}

/* ===== AUTH HEADER SPACING FIX ===== */

/* Logo + başlık bloğu */
.me-auth-header {
    margin-bottom: 14px;   /* önce 28px idi, kısıyoruz */
}

/* Logo */
.me-auth-header img {
    margin-bottom: 8px;    /* logo altı boşluk */
}

/* Başlık */
.me-auth-header h2 {
    margin-bottom: 4px;
}

/* Alt açıklama */
.me-auth-header p {
    margin-bottom: 0;
}

/* Formu biraz yukarı çek */
.me-auth-form {
    margin-top: 0;
}
/* ===== AUTH BUTTON – MOTOETKİNLİK RED + LOADING ===== */

.me-auth-form button {
    width: 100%;
    padding: 14px;
    margin-top: 6px;
    border-radius: 14px;
    background: #b11217; /* MotoEtkinlik kırmızısı */
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: background .2s ease, transform .1s ease;
}

.me-auth-form button:hover {
    background: #9e0f14;
    transform: translateY(-1px);
}

.me-auth-form button.loading {
    pointer-events: none;
    background: #7f0d11;
}

/* Buton içi yazı */
.me-auth-form button .btn-text {
    display: inline-block;
}

/* Spinner */
.me-auth-form button .btn-loader {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: meSpin 1s linear infinite;
    margin: 0 auto;
}

/* Loading aktifken */
.me-auth-form button.loading .btn-text {
    display: none;
}

.me-auth-form button.loading .btn-loader {
    display: block;
}

@keyframes meSpin {
    to { transform: rotate(360deg); }
}
/* ===== AUTH INPUT ICONS ===== */

.me-auth-field {
    position: relative;
    margin-bottom: 16px;
}

.me-auth-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: .6;
    pointer-events: none;
}

.me-auth-field input {
    padding-left: 44px; /* ikon için boşluk */
}
/* ===== AUTH FIELD ICON ALIGN FIX ===== */

.me-auth-field {
    position: relative;
    display: block;
}

.me-auth-field input {
    width: 100%;
    display: block;
    padding-left: 46px;   /* ikon boşluğu */
    box-sizing: border-box;
}

.me-auth-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    font-size: 16px;
    opacity: .6;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
/* ===== PASSWORD FIELD ICON ALIGN FIX ===== */

/* şifre alanını net yükseklikte sabitle */
.me-auth-password {
    height: auto;
}

/* şifre inputu */
.me-auth-password input {
    padding-left: 46px;
    padding-right: 46px; /* sağdaki göz için */
    height: 48px;        /* kritik: ikonla aynı hizaya getirir */
    line-height: 48px;
}

/* sol kilit ikonu */
.me-auth-password .me-auth-icon {
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

/* sağ göz ikonu */
.me-auth-password .me-auth-toggle {
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
}
/* ===== PASSWORD FIELD HARD FIX ===== */

.me-auth-password {
    position: relative;
}

/* input */
.me-auth-password input {
    width: 100%;
    height: 52px;
    line-height: 52px;
    padding-left: 48px;
    padding-right: 48px;
    box-sizing: border-box;
}

/* sol kilit */
.me-auth-password .me-auth-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    line-height: 1;
    display: block;
    pointer-events: none;
}

/* sağ göz */
.me-auth-password .me-auth-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    line-height: 1;
    display: block;
    cursor: pointer;
}

/* emoji'lerin alt satıra düşmesini ENGELLE */
.me-auth-password span {
    white-space: nowrap;
}

/* bbPress forum sayfalarını tam genişlik yap */
body.bbpress #primary,
body.bbpress .content-area,
body.bbpress .site-content {
    max-width: 100%;
    width: 100%;
}

/* ===============================
   FORUM ANA CONTAINER
================================ */

body.bbpress #bbpress-forums {
    background:#fff;
    border-radius:14px;
    padding:25px;
    margin:30px auto;
    max-width:1200px;
    box-shadow:0 12px 30px rgba(0,0,0,.08);
}

/* Sayfa başlıklarını gizle */
body.bbpress .page-title,
body.bbpress .entry-title,
body.bbpress .page-header,
body.bbpress .hero{
    display:none;
}

/* ===============================
   FORUM KATEGORİ DÜZENİ
================================ */

#bbpress-forums ul.bbp-forums{
    display:block !important;
}

#bbpress-forums ul.bbp-forums > li{
    display:block;
    width:100%;
    margin-bottom:30px;
}

/* ===============================
   HEADER BAR
================================ */

#bbpress-forums li.bbp-header{
    background:#c4161c;
    border-radius:10px 10px 0 0;
    border:none;
}

#bbpress-forums li.bbp-header li{
    color:#fff;
    font-weight:600;
    font-size:14px;
}

/* ===============================
   ARAMA FORMU
================================ */

#bbpress-forums #bbp-search-form{
    display:flex;
    gap:8px;
    align-items:center;
}

#bbpress-forums #bbp_search{
    height:38px;
    padding:0 12px;
    border-radius:8px;
    border:1px solid #ddd;
    font-size:14px;
    transition:.2s;
}

#bbpress-forums #bbp_search:focus{
    border-color:#c4161c;
    box-shadow:0 0 0 2px rgba(196,22,28,.15);
    outline:none;
}

#bbpress-forums #bbp_search_submit{
    height:38px;
    padding:0 16px;
    border:none;
    border-radius:8px;
    font-weight:600;
    background:#c4161c;
    color:#fff;
    box-shadow:0 4px 12px rgba(196,22,28,.3);
    transition:.2s;
}

#bbpress-forums #bbp_search_submit:hover{
    background:#8f1014;
}

/* ===============================
   FORUM TITLE
================================ */

.bbp-forum-title{
    color:#111 !important;
    font-size:16px;
    font-weight:700;
}

.bbp-forum-title:hover{
    color:#e10600 !important;
}

/* ===============================
   KATEGORİ ALT ÇİZGİ
================================ */

#bbpress-forums .bbp-forum-title{
    position:relative;
    display:inline-block;
    padding-bottom:6px;
}

#bbpress-forums .bbp-forum-title::after{
    content:"";
    position:absolute;
    left:0;
    bottom:0;
    width:40px;
    height:2px;
    background:#c4161c;
    border-radius:2px;
    transition:.3s;
}

#bbpress-forums li.bbp-forum-info:hover .bbp-forum-title::after{
    width:70px;
}

/* ===============================
   FORUM SATIR HOVER
================================ */

#bbpress-forums li.bbp-body ul.forum{
    transition:.25s;
    border-radius:12px;
    padding:18px;
    margin-bottom:30px;
}

#bbpress-forums li.bbp-body ul.forum:hover{
    background:#fff;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
    transform:translateY(-2px);
}

/* ===============================
   ALT FORUMLAR
================================ */

.bbp-forums-list{
    margin-top:8px;
}

.bbp-forums-list li{
    display:inline-block;
    margin-right:12px;
    font-size:13px;
    position:relative;
}

.bbp-forums-list li a{
    color:#bbb;
    font-weight:600;
    transition:.2s;
}

.bbp-forums-list li a::after{
    content:"";
    position:absolute;
    left:0;
    bottom:-4px;
    width:0;
    height:2px;
    background:#e10600;
    transition:.25s;
}

.bbp-forums-list li:hover a{
    color:#fff;
}

.bbp-forums-list li:hover a::after{
    width:100%;
}

/* ===============================
   FRESHNESS / AVATAR
================================ */

.moto-freshness-wrap{
    display:flex;
    align-items:center;
    gap:12px;
}

.moto-freshness-wrap img{
    width:48px;
    height:48px;
    border-radius:6px;
    border:2px solid #e10600;
    object-fit:cover;
}

.moto-last-topic{
    font-size:14px;
    font-weight:600;
    color:#fff;
}

.moto-last-topic:hover{
    color:#e10600;
}

.moto-last-info{
    font-size:12px;
    color:#aaa;
}

/* ===============================
   AVATAR GLOBAL
================================ */

.avatar{
    width:64px;
    height:64px;
    border-radius:8px;
    border:2px solid #e10600;
    object-fit:cover;
}

/* ===============================
   BREADCRUMB
================================ */

.bbp-breadcrumb{
    background:#fff !important;
    border:none !important;
    border-bottom:1px solid #eee !important;
    padding-bottom:8px;
}

/* ===============================
   TOPIC TITLE
================================ */

.bbp-topic-title a{
    font-size:14px;
    font-weight:700;
    color:#111;
}

.bbp-topic-meta{
    font-size:11px;
    color:#888;
    margin-top:3px;
}

.bbp-topic-meta a{
    color:#666;
}

.bbp-topic-meta a:hover{
    color:#e10600;
}

/* ===============================
   MOBİL
================================ */

@media(max-width:768px){
    .bbp-topic-title a{
        font-size:12px;
    }
}
.bbp-forums-list li{
    display:inline-block;
    margin-right:12px;
}
.bbp-forums-list{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}
.bbp-forums-list{
    display:flex;
    flex-wrap:wrap;
    gap:12px;
}
.bbp-forums-list li a{
    color:#333;
}

.bbp-forums-list li:hover a{
    color:#e10600;
}
.bbp-forums-list li:hover{
    background:rgba(225,6,0,0.08);
    border-radius:6px;
}
.moto-active-topics{
    margin-bottom:30px;
}

.moto-active-topics ul{
    list-style:none;
    padding:0;
}

.moto-active-topics li{
    padding:12px 0;
    border-bottom:1px solid #eee;
}

.moto-active-topics a{
    font-weight:600;
    color:#111;
}

.moto-topic-meta{
    font-size:12px;
    color:#888;
    margin-left:8px;
}
.moto-forum-section{
    background:#fff;
    border-radius:12px;
    padding:22px;
    margin-bottom:25px;
    box-shadow:0 8px 25px rgba(0,0,0,.08);
}

.moto-section-title{
    font-size:20px;
    font-weight:700;
    margin-bottom:15px;
    border-bottom:2px solid #e10600;
    padding-bottom:8px;
}
.moto-active-topics{
    list-style:none;
    padding:0;
}

.moto-active-topics li{
    padding:12px 0;
    border-bottom:1px solid #eee;
}

.moto-active-topics li:last-child{
    border-bottom:none;
}

.moto-active-topics a{
    font-weight:600;
    color:#111;
}

.moto-topic-meta{
    font-size:12px;
    color:#888;
    margin-left:8px;
}
body.bbpress #bbpress-forums{
    margin-top:30px;
}

.moto-forum-section{
    margin-top:30px;
}
.moto-forum-hero{
    background:linear-gradient(135deg,#0f172a,#020617);
    border-radius:14px;
    padding:35px;
    color:#fff;
    margin-bottom:30px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:30px;
}

.moto-hero-content h1{
    font-size:28px;
    margin-bottom:10px;
}

.moto-hero-content p{
    color:#bbb;
    max-width:420px;
}

.moto-hero-buttons{
    margin-top:18px;
    display:flex;
    gap:12px;
}

.moto-btn{
    padding:10px 18px;
    border-radius:8px;
    font-weight:600;
    text-decoration:none;
}

.moto-btn-primary{
    background:#e10600;
    color:#fff;
}

.moto-btn-outline{
    border:1px solid #e10600;
    color:#e10600;
}

.moto-btn-outline:hover{
    background:#e10600;
    color:#fff;
}

/* Stats Bar */

.moto-community-stats{
    display:flex;
    gap:30px;
}

.moto-stat{
    text-align:center;
}

.moto-stat strong{
    font-size:22px;
    display:block;
}

.moto-stat span{
    font-size:12px;
    color:#aaa;
}
body.bbpress .moto-forum-hero{
    margin-top:30px;
}
.moto-forum-hero{
    margin-top:30px;
}
html{
    scroll-behavior:smooth;
}
.moto-btn-primary:hover{
    background:#b90500;
    color:#fff !important;
}
.moto-topic-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(280px,1fr));
    gap:18px;
}

.moto-topic-card{
    background:#fff;
    border-radius:12px;
    padding:18px;
    box-shadow:0 6px 18px rgba(0,0,0,.08);
    text-decoration:none;
    transition:.25s;
    display:block;
}

.moto-topic-card:hover{
    transform:translateY(-4px);
    box-shadow:0 12px 30px rgba(0,0,0,.15);
}

.moto-topic-card h3{
    font-size:16px;
    color:#111;
    margin-bottom:14px;
}

.moto-topic-meta{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

.moto-topic-author img{
    border-radius:50%;
}

.moto-topic-stats{
    font-size:12px;
    color:#777;
    display:flex;
    gap:12px;
}
.moto-online-bar{
    background:#0f172a;
    color:#fff;
    padding:12px 20px;
    border-radius:10px;
    margin-bottom:20px;
    font-size:14px;
}
.moto-topic-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}
.moto-topic-preview{
    font-size:13px;
    color:#666;
    margin-bottom:12px;
}

.moto-trending{
    background:#e10600;
    color:#fff;
    font-size:10px;
    padding:4px 8px;
    border-radius:6px;
    display:inline-block;
    margin-bottom:8px;
}
.moto-topic-author{
    display:flex;
    align-items:center;
    gap:8px;
}

.moto-author-name{
    font-size:12px;
    color:#555;
    font-weight:600;
}
.moto-online-bar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    background:#0f172a;
    color:#fff;
    padding:12px 18px;
    border-radius:10px;
    margin-bottom:20px;
}

.moto-online-avatars img{
    border-radius:50%;
    margin-left:-8px;
    border:2px solid #0f172a;
}
@media (max-width:768px){

    .moto-topic-grid{
        grid-template-columns: 1fr;
        gap:14px;
    }

}
@media (max-width:768px){

    .moto-topic-meta{
        flex-direction:column;
        align-items:flex-start;
        gap:8px;
    }

}
@media (max-width:768px){

    .moto-topic-card{
        padding:16px;
    }

}
.moto-topic-card h3{
    line-height:1.3;
    word-break:break-word;
}
@media (hover:none){
    .moto-topic-card:hover{
        transform:none;
        box-shadow:none;
    }
}
