/*
Theme Name: CioTheme
Theme URI: https://betciogirisler.com
Author: Betciogirisler.com
Author URI: https://betciogirisler.com
Description: Betciogirisler.com Wordpress Teması
Version: 1.0.5
Text Domain: ciotheme
*/
:root {
    --primary-color: #ffd700;
    --secondary-color: #1a1a1a;
    --text-color: #333333;
    --text-light: #666666;
    --bg-main: #f8f9fa;
    --bg-content: #ffffff;
    --border-color: #e2e8f0;
    --link-color: #0056b3;
    --link-hover: #003d82;
    --footer-bg: #111111;
    --footer-text: #ffffff;
    --footer-link: #ffd700;
    --font-primary: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
/* Reset & Accessibility */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: var(--font-primary);
    background-color: var(--bg-main);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
.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;
}
.skip-link:focus {
    background-color: var(--bg-content); padding: 15px; position: absolute;
    left: 10px; top: 10px; z-index: 100000; outline: 3px solid var(--primary-color);
    border-radius: 4px; color: var(--secondary-color); text-decoration: none; font-weight: bold;
}
a { color: var(--link-color); text-decoration: none; transition: color 0.2s ease; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }
p { margin-bottom: 1.5rem; }
h1, h2, h3, h4, h5, h6 { color: var(--secondary-color); margin-bottom: 1rem; line-height: 1.3; font-weight: bold; }
img { max-width: 100%; height: auto; display: block; }
/* Layout */
.site-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.site-main-content { display: flex; flex-wrap: wrap; max-width: 1200px; margin: 2rem auto; padding: 0 15px; width: 100%; flex: 1; gap: 30px; }
.primary-content { flex: 1 1 70%; min-width: 0; }
.secondary-sidebar { flex: 1 1 25%; min-width: 250px; }
/* ==================== */
/* Header               */
/* ==================== */
.site-header {
    background-color: var(--secondary-color);
    color: #fff;
    position: relative;
    border-bottom: 4px solid var(--primary-color);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    z-index: 1000;
}
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 70px;
}
.site-branding { z-index: 10; flex-shrink: 0; }
.site-title { font-size: 1.6rem; margin: 0; line-height: 1.2; }
.site-title a { color: var(--primary-color); text-decoration: none; display: flex; align-items: center; gap: 10px; }
.site-title a:hover { text-decoration: none; color: var(--primary-color); }
.site-description { font-size: 0.9rem; color: #ccc; margin: 0; }
/* ==================== */
/* Desktop Navigation   */
/* ==================== */
.main-navigation {
    display: flex;
    align-items: center;
}
.menu-toggle {
    display: none; /* hidden on desktop */
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 12px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 4px;
    font-weight: bold;
    transition: all 0.2s;
    line-height: 1;
}
.menu-toggle:hover { background: var(--primary-color); color: var(--secondary-color); }
/* Top-level menu list */
.nav-menu {
    list-style: none;
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    align-items: center;
}
.nav-menu li {
    position: relative;
}
.nav-menu > li > a {
    color: #fff;
    font-weight: 600;
    padding: 24px 14px;
    display: block;
    text-transform: uppercase;
    font-size: 0.9rem;
    white-space: nowrap;
    transition: color 0.2s, background 0.2s;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-menu-ancestor > a {
    color: var(--primary-color);
    text-decoration: none;
    background-color: rgba(255,215,0,0.08);
}
/* Add dropdown arrows */
.nav-menu .menu-item-has-children > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-menu .menu-item-has-children > a::after {
    content: "▼";
    font-size: 0.6rem;
    margin-left: 6px;
    opacity: 0.7;
    transition: transform 0.2s ease;
}
.nav-menu .menu-item-has-children:hover > a::after,
.nav-menu .menu-item-has-children.toggled-on > a::after {
    transform: rotate(180deg);
}
/* ==================== */
/* Desktop Dropdown     */
/* ==================== */
.nav-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    min-width: 200px;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    z-index: 999;
    /* Hidden by default */
    display: none;
}
.nav-menu li:hover > ul {
    display: block;
}
.nav-menu ul li {
    border-bottom: 1px solid #333;
}
.nav-menu ul li:last-child {
    border-bottom: none;
}
.nav-menu ul li a {
    color: #ddd;
    font-weight: 500;
    padding: 12px 18px;
    display: block;
    font-size: 0.85rem;
    text-transform: none;
    white-space: nowrap;
    transition: background 0.2s, color 0.2s;
}
.nav-menu ul li a:hover {
    background-color: var(--primary-color);
    color: #000;
    text-decoration: none;
}
/* 3rd level dropdown */
.nav-menu ul ul {
    top: 0;
    left: 100%;
    border-top: none;
    border-left: 3px solid var(--primary-color);
}
/* ==================== */
/* Content Cards        */
/* ==================== */
.hentry {
    background: var(--bg-content);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}
.entry-title { font-size: 2rem; margin-bottom: 1.2rem; }
.entry-title a { color: var(--secondary-color); text-decoration: none; }
.entry-title a:hover { color: var(--link-hover); }
.entry-content { font-size: 1.1rem; }
.entry-content h2 { font-size: 1.6rem; margin-top: 1.5rem; border-bottom: 2px solid var(--primary-color); padding-bottom: 0.5rem; display: inline-block; }
.entry-content ul, .entry-content ol { margin-left: 1.5rem; margin-bottom: 1.5rem; }
.entry-content li { margin-bottom: 0.5rem; }
/* ==================== */
/* Sidebar              */
/* ==================== */
.widget-area {
    background: var(--bg-content);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    padding: 25px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}
.widget { margin-bottom: 25px; }
.widget:last-child { margin-bottom: 0; }
.widget-title { font-size: 1.3rem; margin-bottom: 15px; border-bottom: 2px solid var(--primary-color); padding-bottom: 8px; color: var(--secondary-color); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { border-bottom: 1px solid var(--border-color); padding: 10px 0; }
.widget ul li:last-child { border-bottom: none; }
.widget a { color: var(--text-color); font-weight: 500; }
.widget a:hover { color: var(--link-hover); padding-left: 5px; transition: padding 0.2s ease; }
/* ==================== */
/* Footer               */
/* ==================== */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    padding: 40px 0 20px;
    text-align: center;
    margin-top: auto;
    border-top: 4px solid var(--primary-color);
}
.footer-container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.footer-links { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { color: var(--footer-text); text-decoration: none; font-weight: 600; padding: 5px 10px; border-radius: 4px; transition: background 0.2s; }
.footer-links a:hover, .footer-links a:focus { background-color: rgba(255, 215, 0, 0.1); color: var(--footer-link); text-decoration: underline; }
.site-info { font-size: 0.95rem; color: #cccccc; margin-top: 20px; border-top: 1px solid #333; padding-top: 20px; }
.site-info a { color: var(--footer-link); font-weight: bold; }
.site-info a:focus { outline: 2px dashed var(--primary-color); outline-offset: 4px; }
/* ==================== */
/* Pagination           */
/* ==================== */
.pagination { display: flex; gap: 10px; justify-content: center; margin: 30px 0; flex-wrap: wrap; }
.pagination .page-numbers { padding: 8px 16px; background: var(--bg-content); border: 1px solid var(--border-color); color: var(--secondary-color); border-radius: 4px; font-weight: bold; }
.pagination .page-numbers.current, .pagination .page-numbers:hover { background: var(--primary-color); color: var(--secondary-color); border-color: var(--primary-color); text-decoration: none; }
/* ============================== */
/* Mobile Responsive (max 768px) */
/* ============================== */
@media (max-width: 768px) {
    /* Layout stack */
    .site-main-content { flex-direction: column; margin: 1rem auto; }
    .secondary-sidebar { flex: 1 1 100%; order: 2; }
    .primary-content { flex: 1 1 100%; order: 1; }
    /* Header */
    .header-container {
        flex-wrap: wrap;
        min-height: 60px;
        position: relative;
    }
    .site-title { font-size: 1.3rem; }
    /* Show toggle button on mobile */
    .menu-toggle { display: block; }
    /* Hide entire nav on mobile by default */
    .main-navigation {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        z-index: 1000;
    }
    /* When toggled: show the nav */
    .main-navigation.toggled {
        display: block;
    }
    /* Style menu list on mobile */
    .nav-menu {
        display: flex;
        flex-direction: column;
        gap: 0;
        width: 100%;
        background-color: var(--secondary-color);
        box-shadow: 0 10px 15px rgba(0,0,0,0.2);
        border-top: 1px solid #333;
    }
    .nav-menu li { border-bottom: 1px solid #333; width: 100%; }
    .nav-menu > li > a { padding: 14px 20px; font-size: 0.95rem; }
    /* Mobile dropdowns: show them stacked under parent, not absolute */
    .nav-menu ul {
        position: static;
        display: none;
        background-color: #181818;
        min-width: 100%;
        border-top: none;
        box-shadow: none;
    }
    .nav-menu li:hover > ul,
    .nav-menu li.toggled-on > ul {
        display: block;
    }
    .nav-menu ul li a {
        padding-left: 35px;
        font-size: 0.85rem;
    }
    .nav-menu ul ul {
        border-left: none;
    }
    .nav-menu ul ul li a {
        padding-left: 50px;
    }
    /* Footer */
    .footer-links { flex-direction: column; gap: 10px; }
}