/*
Theme Name: Ulak Haber
Theme URI: https://ullakhaberapp.com
Description: Webtekno style, modern, responsive, high-performance news theme with dark mode.
Author: Antigravity AI
Author URI: https://google.com
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ulak-tema
*/

/* ==========================================
   DESIGN SYSTEM & VARIABLES
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    --primary-color: #D92E2E;
    --primary-hover: #C02828;
    --featured-red: #FF5D55;
    --deals-purple: #C67FFF;
    --text-primary: #222222;
    --text-secondary: #555555;
    --text-muted: #999999;
    --bg-body: #F3F4F6;
    --bg-card: #FFFFFF;
    --border-color: #E5E7EB;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --header-height: 66px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark {
    --text-primary: #F3F4F6;
    --text-secondary: #D1D5DB;
    --text-muted: #9CA3AF;
    --bg-body: #0A0A0A;
    --bg-card: #121212;
    --border-color: #262626;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* ==========================================
   BASE & RESET STYLES
   ========================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.5;
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
}

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

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

ul, ol {
    list-style: none;
}

button, input, textarea {
    font-family: inherit;
    border: none;
    background: none;
    outline: none;
}

button {
    cursor: pointer;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-body);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header-wrapper {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: var(--bg-card);
    border-bottom: 6px solid var(--primary-color);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.header-inner {
    display: flex;
    align-items: center;
    min-height: var(--header-height);
    padding: 0 1.25rem;
}

/* Menu Toggle Button */
.hamburger-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    margin-right: 1.25rem;
    flex-shrink: 0;
    transition: var(--transition);
    cursor: pointer;
}
.hamburger-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-primary);
    border-radius: 3px;
    transition: var(--transition);
}

.hamburger-toggle:hover {
    opacity: 0.8;
}

/* Brand Logo */
.logo {
    display: flex;
    align-items: center;
    margin-right: 1.5rem;
    height: 28px;
    flex-shrink: 0;
}
.logo img {
    height: 100%;
    width: auto;
    object-fit: contain;
}
.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}
.logo-text span {
    color: var(--text-primary);
}

/* Main Navigation Menu */
.main-nav {
    display: flex;
    align-items: center;
    overflow-x: auto;
    white-space: nowrap;
    margin-right: 1rem;
    scrollbar-width: none; /* Firefox */
}
.main-nav::-webkit-scrollbar {
    display: none; /* Safari/Chrome */
}
.main-nav-list {
    display: flex;
    gap: 1.5rem;
}
.main-nav-link {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    padding: 0.5rem 0;
}
.main-nav-link:hover,
.main-nav-list .current-menu-item a {
    color: var(--primary-color);
}

.nav-show-all-btn {
    display: flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    cursor: pointer;
    margin-right: 1rem;
}
.nav-show-all-btn svg {
    margin-left: 4px;
    fill: currentColor;
    transition: transform 0.2s ease;
}
.nav-show-all-btn:hover {
    color: var(--primary-color);
}
.nav-show-all-btn:hover svg {
    transform: translateY(2px);
}

/* Header Action Utilities */
.header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: var(--text-primary);
    transition: var(--transition);
}
.action-btn:hover {
    background-color: var(--bg-body);
    color: var(--primary-color);
}

/* Dark Mode Switcher Toggle */
.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    background-color: var(--bg-card);
    position: relative;
    cursor: pointer;
    transition: var(--transition);
}
.theme-toggle-dot {
    position: absolute;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: #222222;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #FFD600;
}
.theme-toggle-dot svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}
body.dark .theme-toggle-dot {
    left: 26px;
    background-color: #FFFFFF;
    color: #222222;
}
body.dark .theme-toggle-dot .sun-icon {
    display: none;
}
body.dark .theme-toggle-dot .moon-icon {
    display: block;
}
.theme-toggle-dot .moon-icon {
    display: none;
}

/* User Login Button */
.user-login-btn {
    display: none;
    align-items: center;
    background-color: var(--primary-color);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    transition: var(--transition);
}
.user-login-btn:hover {
    background-color: var(--primary-hover);
}
.user-login-btn svg {
    margin-right: 6px;
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* ==========================================
   POPULAR TOPICS BAR
   ========================================== */
.topics-bar {
    display: none !important;
    padding: 0.75rem 0;
    background-color: transparent;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
}
.topics-title {
    font-weight: 700;
    font-size: 0.95rem;
    white-space: nowrap;
    color: var(--text-primary);
}
.topics-list {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scrollbar-width: none;
    width: 100%;
}
.topics-list::-webkit-scrollbar {
    display: none;
}
.topics-link {
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}
.topics-link:hover {
    opacity: 0.8;
}

/* ==========================================
   PUSH MENU (DRAWER)
   ========================================== */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 320px;
    background-color: var(--bg-card);
    z-index: 1001;
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}
.drawer.active {
    transform: translateX(0);
}

.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.drawer-title {
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--primary-color);
    font-size: 1.3rem;
}
.drawer-close {
    color: var(--text-primary);
    font-size: 1.5rem;
}

.drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}
.drawer-search {
    margin-bottom: 1.5rem;
}
.drawer-search-form {
    display: flex;
    align-items: center;
    background-color: var(--bg-body);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
}
.drawer-search-input {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: transparent;
}
.drawer-search-submit {
    color: var(--text-muted);
}
.drawer-search-submit:hover {
    color: var(--primary-color);
}

.drawer-menu-list {
    display: flex;
    flex-direction: column;
    margin-bottom: 2rem;
}
.drawer-menu-list li {
    width: 100%;
    border-bottom: 1px solid var(--border-color);
}
.drawer-menu-list li:last-child {
    border-bottom: none;
}
.drawer-menu-list li a,
.drawer-menu-link {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 0.5rem;
    width: 100%;
    transition: var(--transition);
}
.drawer-menu-list li a:hover,
.drawer-menu-link:hover {
    color: var(--primary-color);
    padding-left: 1rem;
    background-color: var(--bg-body);
}
.drawer-menu-list li a svg,
.drawer-menu-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.drawer-section-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.drawer-socials {
    display: flex;
    gap: 1rem;
    margin-top: auto;
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.drawer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-body);
    color: var(--text-primary);
    transition: var(--transition);
}
.drawer-social-link:hover {
    background-color: var(--primary-color);
    color: #FFFFFF;
}
.drawer-social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* ==========================================
   FULLSCREEN SEARCH POPUP
   ========================================== */
.search-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.search-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.search-overlay-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: #FFFFFF;
    font-size: 2rem;
    transition: var(--transition);
}
.search-overlay-close:hover {
    transform: rotate(90deg);
    color: var(--primary-color);
}

.search-overlay-form {
    width: 100%;
    max-width: 600px;
    padding: 0 1.5rem;
    text-align: center;
    position: relative;
}
.search-overlay-input {
    width: 100%;
    background: transparent;
    border-bottom: 2px solid #FFFFFF;
    color: #FFFFFF;
    font-size: 1.5rem;
    padding: 0.75rem 3rem 0.75rem 0.5rem;
    font-family: var(--font-heading);
}
.search-overlay-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.search-overlay-submit {
    position: absolute;
    right: 2rem;
    bottom: 1.25rem;
    color: #FFFFFF;
}
.search-overlay-submit:hover {
    color: var(--primary-color);
}
.search-overlay-submit svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* ==========================================
   HOMEPAGE FEATURED HERO SECTION
   ========================================== */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Hot Deals Box (Left Widget Panel) */
.deals-box {
    background-color: var(--deals-purple);
    border-radius: 12px;
    padding: 1.5rem;
    color: #FFFFFF;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}
.deals-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.4);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}
.deals-icon-box {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
}
.deals-icon-box svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #FFFFFF;
    stroke-width: 2;
}
.deals-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.2;
}
.deals-subtitle {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.9;
    margin-top: 2px;
}
.deals-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.deals-item {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
    padding-bottom: 0.75rem;
}
.deals-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.deals-link {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.deals-link:hover {
    color: var(--text-primary);
}

/* Featured Hero Layout */
.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Big Hero Card */
.hero-big-card {
    background-color: var(--featured-red);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.hero-big-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.hero-big-inner {
    display: flex;
    flex-direction: column;
}
.hero-big-media {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}
.hero-big-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-big-card:hover .hero-big-media img {
    transform: scale(1.03);
}
.hero-big-category {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--primary-color);
    color: #FFFFFF;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
}
.hero-big-body {
    padding: 1.5rem;
    color: #FFFFFF;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.hero-big-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}
.hero-big-excerpt {
    font-size: 0.95rem;
    opacity: 0.9;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Hero Small Cards Grid */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
.hero-grid-item {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
}
.hero-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.hero-grid-media {
    width: 120px;
    min-width: 120px;
    position: relative;
    overflow: hidden;
}
.hero-grid-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.hero-grid-item:hover .hero-grid-media img {
    transform: scale(1.05);
}
.hero-grid-body {
    padding: 1rem;
    display: flex;
    align-items: center;
}
.hero-grid-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-grid-title:hover {
    color: var(--primary-color);
}

/* Touch Slider for Mobile View */
.mobile-slider-container {
    display: none;
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}
.mobile-slider-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.mobile-slider-track::-webkit-scrollbar {
    display: none;
}
.mobile-slider-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    background-color: var(--primary-color);
    color: #FFFFFF;
}
.mobile-slider-media {
    aspect-ratio: 16/9;
}
.mobile-slider-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.mobile-slider-body {
    padding: 1.25rem;
    background-color: var(--primary-color);
}
.mobile-slider-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

/* ==========================================
   MAIN CONTENT 2-COLUMN SECTION
   ========================================== */
.main-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 3rem;
}

.content-area {
    flex: 1;
}

/* Feed Cards List */
.feed-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.feed-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column-reverse;
}
.feed-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.feed-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.feed-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.feed-card-title a:hover {
    color: var(--primary-color);
}
.feed-card-excerpt {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
    margin-bottom: 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.feed-card-meta {
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
}
.feed-card-author {
    color: var(--text-secondary);
}

.feed-card-media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}
.feed-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.feed-card:hover .feed-card-media img {
    transform: scale(1.03);
}

/* Video Feed Icon Badge */
.video-badge {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}
.video-play-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: rgba(217, 46, 46, 0.85);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}
.feed-card:hover .video-play-btn {
    transform: scale(1.1);
    background-color: var(--primary-color);
}
.video-play-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    margin-left: 2px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 6px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
}
.pagination .page-numbers:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.pagination .page-numbers.current {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
}

/* ==========================================
   SIDEBAR & WIDGETS
   ========================================== */
.sidebar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.widget {
    background-color: var(--bg-card);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    padding: 1.5rem;
}

.widget-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
}

/* En Çok Okunanlar (Most Read) Widget Custom Styling */
.widget_most_read {
    padding: 0 !important;
    background-color: #1c1c1e !important; /* Fixed dark sidebar widget background */
    color: #ffffff !important;
    border: none !important;
}
.most-read-widget-header {
    background-color: var(--primary-color);
    color: #ffffff;
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.most-read-widget-header svg {
    width: 20px;
    height: 20px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2.5;
    flex-shrink: 0;
}
.most-read-widget-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff !important;
    letter-spacing: 0.5px;
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

.most-read-list {
    display: flex;
    flex-direction: column;
    background-color: #1c1c1e;
}

/* First featured item in Most Read: Image with centered text overlay */
.most-read-item-first {
    width: 100%;
    position: relative;
    border-bottom: 1px solid #2d2d2d;
}
.most-read-first-media {
    position: relative;
    aspect-ratio: 16/9;
    width: 100%;
    overflow: hidden;
}
.most-read-first-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.most-read-item-first:hover img {
    transform: scale(1.05);
}
.most-read-first-body {
    padding: 1.15rem 1.25rem;
    background-color: #1c1c1e;
    border-bottom: 1px solid #2d2d2d;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    transition: var(--transition);
}
.most-read-item-first:hover .most-read-first-body {
    background-color: #242426;
}
.most-read-first-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
    margin-top: 2px;
}
.most-read-first-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    color: #ffffff !important;
    margin: 0 !important;
}

/* Subsequent items in Most Read */
.most-read-sub-item {
    display: flex;
    align-items: center;
    padding: 1.15rem 1.25rem;
    border-bottom: 1px solid #2d2d2d;
    background-color: #1c1c1e;
    gap: 0.75rem;
    transition: var(--transition);
}
.most-read-sub-item:last-child {
    border-bottom: none;
}
.most-read-sub-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    font-weight: 800;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.most-read-sub-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
    color: #ffffff !important;
    margin: 0 !important;
}
.most-read-sub-title a {
    color: #ffffff !important;
}
.most-read-sub-title a:hover {
    color: var(--primary-color) !important;
}


/* Category list widget */
.widget_categories ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.widget_categories li {
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    color: var(--text-secondary);
}
.widget_categories li a:hover {
    color: var(--primary-color);
}

/* Tag Cloud Widget */
.tagcloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.tag-cloud-link {
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.35rem 0.75rem;
    font-size: 0.8rem !important;
    font-weight: 600;
    color: var(--text-secondary);
    transition: var(--transition);
}
.tag-cloud-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #FFFFFF;
}

/* Ad Placeholders */
.ad-box {
    background-color: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================
   SINGLE POST LAYOUT
   ========================================== */
.post-header {
    margin-bottom: 2rem;
}
.post-category-tag {
    display: inline-block;
    background-color: var(--primary-color);
    color: #FFFFFF;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}
.post-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.post-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}
.post-meta-item svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.post-meta-author {
    color: var(--text-primary);
}

.post-featured-media {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}
.post-featured-media img {
    width: 100%;
    height: auto;
}

.post-body {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
}
.post-body p {
    margin-bottom: 1.5rem;
}
.post-body h2, .post-body h3, .post-body h4 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 2.25rem 0 1rem 0;
    font-weight: 800;
    line-height: 1.3;
}
.post-body h2 { font-size: 1.5rem; }
.post-body h3 { font-size: 1.3rem; }

.post-body blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    margin: 1.5rem 0;
}
.post-body a {
    color: var(--primary-color);
    text-decoration: underline;
}
.post-body a:hover {
    color: var(--primary-hover);
}

/* Share box */
.post-share-box {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin: 2.5rem 0;
}
.share-title {
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-muted);
}
.share-buttons {
    display: flex;
    gap: 0.75rem;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 0.85rem;
    font-weight: 700;
}
.share-btn-facebook { background-color: #1877F2; }
.share-btn-twitter { background-color: #1DA1F2; }
.share-btn-whatsapp { background-color: #25D366; }
.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.share-btn:hover {
    opacity: 0.9;
}

/* Comments Styling */
.comments-area {
    margin-top: 3rem;
}
.comments-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
}
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}
.comment-body {
    background-color: var(--bg-card);
    padding: 1.25rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
}
.comment-avatar {
    flex-shrink: 0;
}
.comment-avatar img {
    border-radius: 50%;
    width: 44px;
    height: 44px;
}
.comment-meta {
    margin-bottom: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
}
.comment-author-name {
    font-weight: 700;
    color: var(--text-primary);
}
.comment-date {
    color: var(--text-muted);
}
.comment-content {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Comment Form */
.comment-respond {
    background-color: var(--bg-card);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
}
.comment-reply-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}
.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.comment-form-comment textarea {
    width: 100%;
    height: 120px;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    resize: none;
}
.comment-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
.comment-form-input input {
    width: 100%;
    background-color: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.75rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.comment-form-submit {
    align-self: flex-start;
    background-color: var(--primary-color);
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    transition: var(--transition);
}
.comment-form-submit:hover {
    background-color: var(--primary-hover);
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background-color: #121212;
    color: #b4b4b4;
    padding: 3.5rem 0 2rem 0;
    border-top: 4px solid var(--primary-color);
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}
.footer-logo {
    margin-bottom: 1rem;
}
.footer-description {
    line-height: 1.5;
    margin-bottom: 1.5rem;
}
.footer-socials {
    display: flex;
    gap: 0.75rem;
}
.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #222222;
    color: #FFFFFF;
    transition: var(--transition);
}
.footer-social-link:hover {
    background-color: var(--primary-color);
}
.footer-social-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-widget-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 800;
    color: #FFFFFF;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.footer-link:hover {
    color: #FFFFFF;
}

.footer-bottom {
    border-top: 1px solid #222222;
    padding-top: 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}
.footer-brand-tagline {
    display: inline-flex;
    align-items: center;
    background-color: #222222;
    color: #FFFFFF;
    padding: 0.35rem 1.25rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.footer-brand-tagline img {
    height: 14px;
    margin: 0 4px;
}
.footer-copyright {
    font-size: 0.8rem;
    color: #777777;
}

/* ==========================================
   MEDIA QUERIES (RESPONSIVE DESIGNS)
   ========================================== */

/* Medium Devices (Tablets, 768px and up) */
@media (min-width: 768px) {
    .user-login-btn {
        display: inline-flex;
    }
    
    /* Hero layout */
    .hero-section {
        flex-direction: row;
    }
    .deals-box {
        width: 240px;
        flex-shrink: 0;
        height: 515px;
        overflow-y: auto;
    }
    .hero-content {
        flex-direction: column;
    }
    .hero-big-inner {
        flex-direction: row;
    }
    .hero-big-media {
        width: 50%;
        aspect-ratio: auto;
    }
    .hero-big-body {
        width: 50%;
        padding: 2rem;
    }
    .hero-big-title {
        font-size: 1.6rem;
    }
    .hero-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-grid-item {
        flex-direction: row;
    }
    .hero-grid-media {
        width: 100px;
        min-width: 100px;
    }
    
    /* Feed items */
    .feed-card {
        flex-direction: row;
    }
    .feed-card-body {
        padding: 1.5rem;
    }
    .feed-card-media {
        width: 320px;
        min-width: 320px;
        aspect-ratio: auto;
    }
    
    /* Main Layout Grid */
    .main-layout {
        flex-direction: row;
    }
    .sidebar {
        width: 300px;
        flex-shrink: 0;
    }
    
    /* Comment Form row */
    .comment-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Large Devices (Desktops, 1024px and up) */
@media (min-width: 1024px) {
    .hero-big-title {
        font-size: 2rem;
    }
    .hero-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .hero-grid-item {
        flex-direction: column;
    }
    .hero-grid-media {
        width: 100%;
        min-width: unset;
        aspect-ratio: 16/9;
    }
    .hero-grid-body {
        padding: 1rem;
        align-items: flex-start;
    }
    
    /* Footer Grid */
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Mobile featured slider visibility toggle */
@media (max-width: 767px) {
    .hero-content {
        display: none; /* Hide standard grid on mobile */
    }
    .mobile-slider-container {
        display: block; /* Show scroll-snap slider on mobile */
    }
}

/* ==========================================
   WORDPRESS ADMIN BAR OFFSET ADJUSTMENTS
   ========================================== */
.admin-bar .header-wrapper {
    top: 32px;
}
.admin-bar .drawer {
    top: 32px;
    height: calc(100% - 32px);
}

@media (max-width: 782px) {
    .admin-bar .header-wrapper {
        top: 46px;
    }
    .admin-bar .drawer {
        top: 46px;
        height: calc(100% - 46px);
    }
}

/* ==========================================
   GOOGLE LOGIN & WELCOME BADGES STYLING
   ========================================== */
.google-welcome-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-sm);
}
.google-welcome-badge img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}
.google-welcome-badge span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}
.google-welcome-badge button {
    margin-left: auto;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    transition: var(--transition);
}
.google-welcome-badge button:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}
.google-demo-login-btn:hover {
    background-color: #f7f9fa !important;
    border-color: #b3b3b3 !important;
    color: #4285F4 !important;
}

/* Ad Spaces Styling */
.ulak-ad-container {
    width: 100%;
    margin: 1.5rem auto;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}
.ulak-ad-placeholder {
    width: 100%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: #8e8e93;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
}
.ulak-ad-placeholder:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
}
.ulak-ad-placeholder-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}
.ulak-ad-placeholder-size {
    font-size: 0.75rem;
    color: #636366;
    margin-top: 0.25rem;
}
/* Specific Sizes */
.ulak-ad-top {
    max-width: 100%;
    min-height: 90px;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}
.ulak-ad-top .ulak-ad-placeholder {
    height: 90px;
}
.ulak-ad-feed {
    margin: 1.5rem 0;
}
.ulak-ad-feed .ulak-ad-placeholder {
    height: 100px;
}
.ulak-ad-sidebar {
    max-width: 100%;
    margin: 1.5rem auto;
}
.ulak-ad-sidebar .ulak-ad-placeholder {
    height: 250px;
}

/* Hide Search, Recent Posts, and Recent Comments widgets & blocks in the sidebar */
.sidebar .widget_search,
.sidebar .wp-block-search,
.sidebar .widget_recent_entries,
.sidebar .widget_recent_posts,
.sidebar .wp-block-latest-posts,
.sidebar .widget_recent_comments,
.sidebar .wp-block-latest-comments,
.sidebar .widget:has(.wp-block-latest-posts),
.sidebar .widget:has(.wp-block-latest-comments),
.sidebar .widget:has(.wp-block-search),
.sidebar .widget_block:has(.wp-block-latest-posts),
.sidebar .widget_block:has(.wp-block-latest-comments),
.sidebar .widget_block:has(.wp-block-search) {
    display: none !important;
}

/* ==========================================
   HOMEPAGE CUSTOM 5-ITEM CATEGORY ROWS
   ========================================== */
.category-row-section {
    margin-bottom: 2.5rem;
    width: 100%;
}
.category-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid #222;
    padding-bottom: 0.75rem;
}
.category-row-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.65rem;
}
.category-row-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}
.category-row-icon svg {
    stroke-width: 3px;
}
.category-row-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin: 0;
    font-family: var(--font-heading);
}
.category-row-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}
.category-row-title a:hover {
    color: var(--primary-color);
}
.category-row-nav {
    display: flex;
    gap: 0.5rem;
}
.category-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}
.category-nav-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}
.category-row-track-container {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
}
.category-row-track-container::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.category-row-track {
    display: flex;
    gap: 1.15rem;
    width: max-content;
    padding-bottom: 0.5rem;
}
.category-row-card {
    background-color: var(--bg-card);
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    width: 230px;
    flex-shrink: 0;
    scroll-snap-align: start;
}
@media (max-width: 767px) {
    .category-row-card {
        width: 180px;
    }
}
.category-row-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}
.category-row-card a {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.category-row-media {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    width: 100%;
    background-color: #222;
}
.category-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.category-row-card:hover .category-row-media img {
    transform: scale(1.05);
}
.category-row-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--primary-color);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.category-row-body {
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.category-row-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    color: var(--text-primary);
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================
   ADDITIONAL RESPONSIVE & MOBILE USABILITY FIXES
   ========================================== */
@media (max-width: 1023px) {
    /* Hide desktop horizontal menu and 'Show All' button next to the logo on tablet/mobile */
    .main-nav,
    .nav-show-all-btn {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* Hide category nav arrows on mobile since swiping is used */
    .category-row-nav {
        display: none !important;
    }
    
    /* Header layout optimization to fit screen */
    .header-inner {
        padding: 0 0.75rem !important;
    }
    .hamburger-toggle {
        margin-right: 0.75rem !important;
    }
    .logo {
        margin-right: 0.75rem !important;
    }
    .logo-text {
        font-size: 1.35rem !important;
    }
    .header-actions {
        gap: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .header-inner {
        padding: 0 0.5rem !important;
    }
    .hamburger-toggle {
        margin-right: 0.5rem !important;
        width: 20px !important;
        height: 15px !important;
    }
    .hamburger-toggle span {
        height: 2px !important;
    }
    .logo {
        margin-right: 0.5rem !important;
    }
    .logo-text {
        font-size: 1.2rem !important;
    }
    .header-actions {
        gap: 0.5rem !important;
    }
    .action-btn {
        width: 30px !important;
        height: 30px !important;
    }
    .theme-toggle {
        width: 46px !important;
        height: 24px !important;
    }
    .theme-toggle-dot {
        width: 16px !important;
        height: 16px !important;
        left: 3px !important;
    }
    body.dark .theme-toggle-dot {
        left: 25px !important;
    }
    .ulak-lang-header-js-container {
        margin: 0 !important;
    }
    .ulak-lang-header-js-link {
        padding: 3px 6px !important;
        font-size: 10px !important;
        gap: 3px !important;
    }
}


