/*
Theme Name: Veins v2.0 - Modern Hero Design
Description: Hero section, glassmorphism, gradient animations
Author: Webvein Team
Version: 2.0.0
Requires at least: 5.0
Tested up to: 6.4
*/

/* ====================================
   CSS VARIABLES (Renk Paleti)
   ==================================== */
:root {
    --main-color: #FF8C00;
    --accent-color: #FFD700;
    --text-color: #333333;
    --text-light: #666666;
    --background-light: rgba(255, 255, 255, 0.8);
    --background-dark: rgba(255, 140, 0, 0.2);
    --footer-bg-dark: #156;
    --footer-bg-light: rgba(255, 140, 0, 0.5);
    --footer-text-color: #fff;
    --footer-icon-hover-color: #FFD700;
    --border-radius: 10px;
    --code-background: #000000;
    --code-border: #ddd;
    --code-text-color: #ffffff;
}

/* ====================================
   GLOBAL STYLES
   ==================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Poppins', Arial, sans-serif;
    background: linear-gradient(-45deg, #ffb74d, #b2ebf2, #4caf50, #ff5722);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 55px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================================
   NAVBAR STYLES
   ==================================== */
.navbar {
    position: fixed;
    top: 1px;
    left: 0;
    width: 100%;
    height: 55px;
    background: linear-gradient(45deg, #003366, #00695c, #ff9800);
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: background 0.3s, box-shadow 0.3s, transform 0.3s ease;
}

.navbar.hide {
    transform: translateY(-100%);
}

.navbar.scrolled {
    background: linear-gradient(45deg, #003366, #00695c, #ff9800);
}

.navbar-text {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    animation: fadeIn 1s ease forwards;
    text-decoration: none;
}

.navbar-text span {
    display: inline-block;
    transition: transform 0.3s ease, color 0.3s ease;
    color: #fff;
}

.navbar-text span:hover {
    transform: translateY(-5px);
    color: #f39c12;
}

.menu-toggle {
    display: block;
    font-size: 24px;
    color: #fff;
    cursor: pointer;
}

.navbar-menu {
    list-style: none;
    display: none;
    flex-direction: column;
    background-color: rgba(0, 0, 0, 0.8);
    position: absolute;
    top: 55px;
    right: 10px;
    padding: 10px;
    border-radius: 5px;
    margin: 0;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 9999;
}

.navbar-menu.open {
    display: flex;
}

.navbar-menu li {
    margin: 10px 0;
    padding: 0;
    position: relative;
    list-style-type: none;
}

.navbar-menu li a {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    padding: 10px 25px;
    font-size: 16px;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
}

.navbar-menu > li > a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 5px;
    left: 0;
    background-color: #f39c12;
    transform-origin: bottom right;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar-menu > li > a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.navbar-menu li a:hover {
    color: orange;
}

.navbar-menu li a.active {
    color: orange;
    font-weight: 700;
}

/* ====================================
   BREADCRUMB
   ==================================== */
.breadcrumb {
    font-size: 14px;
    margin: 15px 0;
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    color: #333;
}

.breadcrumb a {
    color: #0073aa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #005177;
    text-decoration: underline;
}

/* ====================================
   FOOTER
   ==================================== */
footer {
    background: linear-gradient(145deg, var(--footer-bg-dark), var(--footer-bg-light));
    color: var(--footer-text-color);
    padding: 30px 0;
    text-align: center;
    box-shadow: 0px -4px 12px rgba(0, 0, 0, 0.1);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.quick-links {
    text-align: left;
    width: 30%;
}

.quick-links h4 {
    margin: 10px 0;
    font-size: 18px;
    color: var(--footer-text-color);
}

.quick-links ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-links li {
    margin: 5px 0;
}

.quick-links a {
    color: var(--footer-text-color);
    text-decoration: none;
    transition: color 0.3s;
}

.quick-links a:hover {
    color: var(--footer-icon-hover-color);
}

.newsletter {
    display: flex;
    flex-direction: column;
    width: 30%;
    margin-right: 10px;
    text-align: left;
}

.newsletter h4 {
    margin: 10px 0;
    font-size: 18px;
    color: var(--footer-text-color);
}

.newsletter input {
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
    font-size: 14px;
}

.newsletter button {
    padding: 10px;
    background-color: var(--main-color);
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter button:hover {
    background-color: var(--footer-icon-hover-color);
}

.footer-bottom {
    margin-top: 20px;
    font-size: 14px;
    color: black;
    font-weight: bold;
}

.webvein-text {
    color: black;
    font-weight: bold;
}

/* ====================================
   WPFORMS STYLING
   ==================================== */
.turuncu-form .wpforms-form {
    background: #fff;
    padding: 30px;
    border: 1px solid #ff7a00;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.turuncu-form .wpforms-field {
    margin-bottom: 20px;
}

.turuncu-form input,
.turuncu-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
}

.turuncu-form button[type="submit"] {
    background-color: #ff7a00;
    color: #fff;
    padding: 12px 25px;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.turuncu-form button[type="submit"]:hover {
    background-color: #e66a00;
}

/* ====================================
   CODE BLOCKS
   ==================================== */
code, .code {
    display: block;
    font-family: "Courier New", Courier, monospace;
    background-color: var(--code-background);
    border: 2px solid var(--code-border);
    border-radius: 8px;
    padding: 15px;
    font-size: 18px;
    color: var(--code-text-color);
    white-space: pre-wrap;
    word-wrap: break-word;
    margin-bottom: 20px;
}

/* ====================================
   HOMEPAGE V2.0 - MAIN CONTENT
   ==================================== */

/* Main Container */
.homepage-v2 {
    padding: 60px 0;
}

.container-v2 {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 40px;
}

/* Featured Post */
.featured-post {
    grid-column: 1 / -1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    height: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease;
}

.featured-image {
    position: absolute;
    width: 100%;
    height: 100%;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
}

.featured-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px;
    z-index: 2;
    color: #fff;
}

.featured-label {
    display: inline-block;
    padding: 8px 16px;
    background: var(--main-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.featured-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.2;
}

.featured-title a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.featured-title a:hover {
    color: var(--accent-color);
}

.featured-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 14px;
    opacity: 0.9;
}

.featured-meta i {
    margin-right: 5px;
}

.featured-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: var(--main-color);
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: var(--accent-color);
    color: #222;
    transform: translateX(5px);
}

/* Posts Grid */
.posts-grid-v2 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.post-card-v2 {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
}

.post-card-v2.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.post-card-v2:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card-v2:hover .card-image-wrapper img {
    transform: scale(1.1);
}

.card-category {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 6px 15px;
    background: var(--main-color);
    color: #fff;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
}

.card-body-v2 {
    padding: 25px;
}

.card-meta-v2 {
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #999;
}

.card-meta-v2 i {
    margin-right: 5px;
}

.card-title-v2 {
    font-size: 1.3rem;
    margin-bottom: 12px;
    line-height: 1.3;
}

.card-title-v2 a {
    color: #222;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title-v2 a:hover {
    color: var(--main-color);
}

.card-excerpt-v2 {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-link-v2 {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--main-color);
    font-weight: 600;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.card-link-v2:hover {
    gap: 12px;
}

/* Sidebar */
.sidebar-v2 {
    grid-column: 2;
    grid-row: 2;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget-v2 {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.widget-title-v2 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #222;
}

.widget-title-v2 i {
    color: var(--main-color);
}

/* Sidebar Search Widget - CLEAN & PROFESSIONAL - SABİT */
.search-widget-sidebar {
    position: sticky !important;
    top: 70px !important;
    z-index: 50 !important;
    background: #fff;
    border-radius: 16px;
    padding: 25px !important;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
}

.search-widget-sidebar:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.search-widget-sidebar .widget-title-v2 {
    color: #222 !important;
    font-size: 1rem;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.search-widget-sidebar .widget-title-v2 i {
    color: var(--main-color) !important;
    font-size: 1.1rem;
}

.search-container-sidebar {
    position: relative;
}

#search-input-sidebar {
    width: 100%;
    padding: 14px 55px 14px 18px;
    border: 2px solid #e8e8e8;
    border-radius: 12px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    outline: none;
    background: #fafafa;
    color: #333;
    font-weight: 500;
}

#search-input-sidebar::placeholder {
    color: #999;
    font-weight: 400;
}

#search-input-sidebar:focus {
    border-color: var(--main-color);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255, 140, 0, 0.08);
}

#search-btn-sidebar {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--main-color);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#search-btn-sidebar:hover {
    background: #e67a00;
    transform: translateY(-50%) scale(1.05);
}

#search-btn-sidebar:active {
    transform: translateY(-50%) scale(0.98);
}

#search-btn-sidebar i {
    font-size: 15px;
}

#search-results-sidebar {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
    border: 1px solid #e8e8e8;
}

#search-results-sidebar::-webkit-scrollbar {
    width: 6px;
}

#search-results-sidebar::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 10px;
}

#search-results-sidebar::-webkit-scrollbar-thumb {
    background: var(--main-color);
    border-radius: 10px;
}

#search-results-sidebar::-webkit-scrollbar-thumb:hover {
    background: #e67a00;
}

#search-results-sidebar a {
    display: block;
    padding: 14px 18px;
    color: #333;
    text-decoration: none;
    border-bottom: 1px solid #f5f5f5;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

#search-results-sidebar a:hover {
    background: #fafafa;
    color: var(--main-color);
    padding-left: 24px;
}

#search-results-sidebar a:last-child {
    border-bottom: none;
}

.no-results-sidebar {
    padding: 25px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* Shortcut hint */
.search-widget-sidebar .search-container-sidebar::after {
    content: 'Ctrl+K';
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: #999;
    background: #f0f0f0;
    padding: 3px 7px;
    border-radius: 5px;
    font-weight: 600;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#search-input-sidebar:focus + #search-btn-sidebar ~ .search-container-sidebar::after,
.search-container-sidebar:hover::after {
    opacity: 0;
}

/* Statistics Widget */
.stats-widget {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: #fff;
}

.stats-widget .widget-title-v2 {
    color: #fff !important;
}

.stats-widget .widget-title-v2 i {
    color: #FFD700 !important;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 20px 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Trending Widget */
.trending-widget {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    color: #fff;
}

.trending-widget .widget-title-v2 {
    color: #fff !important;
}

.trending-widget .widget-title-v2 i {
    color: #FFD700 !important;
    animation: trendingFlame 1.5s ease-in-out infinite;
}

@keyframes trendingFlame {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.trending-posts {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.trending-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    text-decoration: none;
    color: #fff;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trending-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.trending-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.trending-number.top-three {
    background: #FFD700;
    color: #333;
}

.trending-content h4 {
    font-size: 14px;
    margin-bottom: 5px;
    line-height: 1.4;
}

.trending-meta {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 5px;
}

.trending-meta i {
    color: #FFD700;
}

.widget-posts {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.widget-post-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.widget-post-item:hover {
    background: #f8f8f8;
}

.post-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--main-color), var(--accent-color));
    color: #fff;
    border-radius: 50%;
    font-weight: 700;
    font-size: 14px;
}

.widget-post-content h4 {
    font-size: 14px;
    color: #222;
    margin-bottom: 5px;
    line-height: 1.4;
}

.widget-post-date {
    font-size: 12px;
    color: #999;
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-pill:hover {
    background: var(--main-color);
    color: #fff;
    transform: translateY(-2px);
}

.category-pill span {
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
}

/* ====================================
   HOMEPAGE WRAPPER STYLES
   ==================================== */
.homepage-wrapper {
    width: 100% !important;
    max-width: 100% !important;
    background: transparent !important;
    padding: 40px 0 !important;
    margin: 0 !important;
}

.homepage-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: grid !important;
    grid-template-columns: 2fr 1fr !important;
    gap: 40px !important;
}

.homepage-posts {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
}

.post-card-home {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
    transition: transform 0.3s ease, box-shadow 0.3s ease !important;
    display: flex !important;
    flex-direction: row !important;
    height: auto !important;
    min-height: 180px !important;
}

.post-card-home:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.post-thumbnail {
    flex: 0 0 250px !important;
    position: relative !important;
    overflow: hidden !important;
    height: auto !important;
}

.post-thumbnail a {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

.post-thumbnail img {
    width: 100% !important;
    height: 100% !important;
    min-height: 180px !important;
    max-height: 220px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease !important;
}

.post-card-home:hover .post-thumbnail img {
    transform: scale(1.08) !important;
}

.post-content-home {
    flex: 1 !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.post-title-home {
    margin: 0 !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
}

.post-title-home a {
    color: #222 !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.post-title-home a:hover {
    color: var(--main-color) !important;
}

.post-meta-home {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 13px !important;
    color: var(--text-light) !important;
}

.post-meta-home .post-date {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
}

.post-meta-home i {
    color: var(--main-color) !important;
}

.post-excerpt {
    font-size: 14px !important;
    line-height: 1.6 !important;
    color: #555 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.post-tags-home {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    margin-top: auto !important;
}

.tag-home {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    background: var(--main-color) !important;
    color: #fff !important;
    border-radius: 15px !important;
    font-size: 12px !important;
    font-weight: 500 !important;
}

.tag-home i {
    font-size: 10px !important;
    color: #fff !important;
}

/* Homepage Sidebar */
.homepage-sidebar {
    display: flex !important;
    flex-direction: column !important;
    gap: 25px !important;
}

.sidebar-widget {
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.widget-title {
    font-size: 18px !important;
    margin: 0 0 15px 0 !important;
    padding-bottom: 10px !important;
    border-bottom: 3px solid var(--main-color) !important;
    color: #222 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    font-weight: 600 !important;
}

.widget-title i {
    color: var(--main-color) !important;
}

.search-widget {
    position: sticky !important;
    top: 80px !important;
}

.search-form {
    position: relative !important;
}

.search-form input {
    width: 100% !important;
    padding: 12px 50px 12px 15px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    font-size: 14px !important;
    transition: border-color 0.3s ease !important;
    box-sizing: border-box !important;
}

.search-form input:focus {
    outline: none !important;
    border-color: var(--main-color) !important;
}

.search-form button {
    position: absolute !important;
    right: 5px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: var(--main-color) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: background 0.3s ease !important;
}

.search-form button:hover {
    background: #e67a00 !important;
}

#search-results {
    position: absolute !important;
    top: calc(100% + 5px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #fff !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    max-height: 300px !important;
    overflow-y: auto !important;
    display: none !important;
    z-index: 100 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

#search-results a {
    display: block !important;
    padding: 12px 15px !important;
    color: #333 !important;
    text-decoration: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    transition: background 0.2s ease !important;
}

#search-results a:hover {
    background: #f8f8f8 !important;
    color: var(--main-color) !important;
}

#search-results a:last-child {
    border-bottom: none !important;
}

.no-results {
    padding: 15px !important;
    text-align: center !important;
    color: var(--text-light) !important;
}

.widget-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.widget-list li {
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 12px !important;
    margin: 0 !important;
}

.widget-list li:last-child {
    border-bottom: none !important;
    padding-bottom: 0 !important;
}

.widget-list li a {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
    text-decoration: none !important;
    color: #333 !important;
    transition: color 0.3s ease !important;
}

.widget-list li a:hover {
    color: var(--main-color) !important;
}

.widget-list li a:hover .widget-post-title {
    color: var(--main-color) !important;
}

.widget-thumb {
    flex-shrink: 0 !important;
    width: 70px !important;
    height: 70px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

.widget-thumb img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.widget-post-title {
    font-size: 14px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;
    transition: color 0.3s ease !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

.no-posts {
    text-align: center !important;
    padding: 40px 20px !important;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 12px !important;
    color: var(--text-light) !important;
    font-size: 18px !important;
}

/* ====================================
   SINGLE.PHP (MAKALE SAYFASI) STYLES
   ==================================== */
.box-container {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.box1 {
    width: 22%;
    padding: 20px;
    background: var(--background-light);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInLeft 0.5s ease;
    position: sticky;
    top: 80px;
    height: fit-content;
}

.box1 h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #000000;
    text-align: center;
}

.box1 ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.box1 li {
    margin-bottom: 20px;
    position: relative;
}

.box1 li > a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    font-size: 20px;
    display: flex;
    align-items: center;
    transition: color 0.3s ease, transform 0.2s;
}

.box1 li > a:hover {
    color: var(--main-color);
    transform: translateX(5px);
}

.box1 li ul {
    display: none;
    margin-top: 5px;
    padding-left: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-left: 2px solid var(--accent-color);
}

.box1 li:hover > ul {
    display: block;
}

.box1 li ul li a {
    font-size: 18px;
    color: var(--text-color);
    line-height: 1.6;
}

.box2 {
    width: 78%;
    padding: 20px;
    background: var(--background-dark);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    animation: fadeInRight 0.5s ease;
}

.box2 article {
    margin-bottom: 30px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: var(--border-radius);
}

.box2 h1:first-of-type {
    font-size: 36px;
    color: #ffffff;
    background-color: var(--main-color);
    padding: 20px;
    border-radius: var(--border-radius);
    text-align: center;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

.box2 p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.box2 ul, .box2 ol {
    font-size: 20px;
    line-height: 1.8;
    margin-left: 20px;
}

.box2 ul li, .box2 ol li {
    margin-bottom: 15px;
    list-style-position: inside;
}

.box2 h1:not(:first-of-type) {
    font-size: 36px;
    font-weight: 700;
    color: #222222;
    padding: 10px 0;
    margin: 60px 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    letter-spacing: 1px;
    position: relative;
    z-index: 2;
}

.box2 h1:not(:first-of-type)::before {
    content: "";
    display: block;
    width: 0%;
    height: 3px;
    background-color: var(--accent-color);
    margin: 0 auto 15px;
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    transition: width 2s ease;
}

.box2 h1.line-animated::before {
    width: 80%;
    background-color: var(--main-color);
}

.box2 article a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: var(--main-color);
    color: #ffffff;
    border-radius: 0px;
    font-size: 16px;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 45px;
    margin: 5px;
    border: 2px solid var(--main-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.box2 article a span {
    visibility: visible;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.box2 article a::after {
    content: "YÖNLENDIR";
    color: var(--main-color);
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 50%;
    top: 25%;
    letter-spacing: 3px;
    font-size: 20px;
    z-index: 2;
    font-weight: bold;
    transform: translate(-50%, -50%);
    transition: opacity 0s ease, visibility 0s 0s;
}

.box2 article a:hover {
    background-color: #ffffff;
    color: transparent;
    transform: scale(1.05);
    border-color: var(--main-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.box2 article a:hover span {
    visibility: hidden;
    opacity: 0;
}

.box2 article a:hover::after {
    opacity: 1;
    visibility: visible;
}

.box2 article a::before {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: var(--main-color);
    left: 50%;
    top: 55%;
    transform: translateX(-50%);
    transition: width 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.box2 article a:hover::before {
    width: 80%;
    transform: translateX(-50%);
}

/* ====================================
   ANIMATIONS
   ==================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInLeft {
    from { opacity: 0; transform: translateX(-30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideUpFadeIn {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====================================
   CATEGORY.PHP STYLES
   ==================================== */
.category-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px 60px;
}

.category-hero-v2 {
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 50px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.category-hero-v2 h1 {
    font-size: 3.5rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 0;
}

.category-hero-v2 h1 i {
    font-size: 3rem;
    color: #f39c12;
    text-shadow: 0 0 15px #f39c12;
}

.category-hero-v2 .category-description {
    margin-top: 15px;
    font-size: 1.1rem;
    color: #eee;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.subcategory-group {
    margin-bottom: 60px;
}

.subcategory-title {
    font-size: 2.5rem;
    color: #fff;
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f39c12;
    display: inline-block;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.post-card-v2 .card-image-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.post-card-v2 .card-image-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.4s ease;
}

.post-card-v2:hover .card-image-bg {
    transform: scale(1.08);
    filter: brightness(0.9);
}

.post-card-v2 .card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px;
    z-index: 2;
    color: #fff;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 50%, transparent 100%);
    transition: transform 0.3s ease;
}

.post-card-v2 .card-meta {
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #f39c12;
    margin-bottom: 10px;
}

.post-card-v2 .card-title {
    font-size: 1.6rem;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 1px 5px rgba(0,0,0,0.7);
}

.post-card-v2 .card-title a {
    color: #fff;
    text-decoration: none;
}

.no-posts-found {
    text-align: center;
    padding: 80px 20px;
    background: rgba(0,0,0,0.2);
    border-radius: 12px;
    color: #fff;
}

.no-posts-found i {
    font-size: 4rem;
    color: #f39c12;
    margin-bottom: 20px;
}

.no-posts-found h2 {
    font-size: 2rem;
}

/* ====================================
   PAGE.PHP STYLES
   ==================================== */
body.page {
    background: #ffffff;
}

.page-wrapper {
    display: flex;
    flex-direction: row-reverse;
    width: 100%;
    padding: 40px 80px;
    gap: 60px;
    box-sizing: border-box;
    background: #ffffff;
}

.page-sidebar {
    flex: 0 0 20%;
    border-left: 1px solid #ddd;
    padding-left: 20px;
    box-sizing: border-box;
}

.page-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.page-sidebar ul li {
    margin-bottom: 12px;
}

.page-sidebar ul li a {
    text-decoration: none;
    color: #444;
    font-weight: 500;
    padding: 8px 4px;
    display: block;
    border-right: 3px solid transparent;
    transition: 0.2s ease all;
}

.page-sidebar ul li a.active,
.page-sidebar ul li a:hover {
    color: #000;
    font-weight: 600;
    border-right: 3px solid #ff7a00;
    background-color: #fff2e6;
}

.page-content {
    flex: 0 0 80%;
    font-family: 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: #333;
    font-size: 17px;
    box-sizing: border-box;
}

.page-content h1 {
    font-size: 30px;
    margin-bottom: 10px;
    color: #111;
    position: relative;
    display: inline-block;
    width: 100%;
    text-align: center;
}

.page-content h1::after {
    content: "";
    display: block;
    height: 4px;
    background-color: #ff7a00;
    margin: 8px auto 0 auto;
    border-radius: 2px;
    width: 100px;
}

/* ====================================
   RESPONSIVE - DESKTOP DROPDOWN
   ==================================== */
@media (min-width: 768px) {
    .menu-toggle {
        display: none;
    }

    .navbar-menu {
        display: flex;
        flex-direction: row;
        position: static;
        background: none;
        padding: 0;
        margin-right: 20px;
        max-height: none;
        overflow: visible;
    }

    .navbar-menu li {
        margin: 0 5px;
    }

    .navbar-menu .dropdown {
        position: relative;
        overflow: visible;
    }

    .navbar-menu .dropdown-menu,
    .navbar-menu .sub-menu {
        visibility: hidden;
        opacity: 0;
        position: absolute;
        background: rgba(0, 41, 82, 0.97);
        border-radius: 8px;
        padding: 10px;
        min-width: 220px;
        z-index: 9999;
        flex-direction: column;
        pointer-events: none;
        transform: translateY(15px);
        transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        border-top: 2px solid orange;
    }

    .navbar-menu .dropdown-menu {
        display: flex;
        top: 100%;
        left: 0;
    }

    .navbar-menu .sub-menu {
        display: block;
        top: -12px;
        right: 100%;
    }

    .navbar-menu .dropdown-menu.to-left {
        left: auto;
        right: 0;
    }

    .navbar-menu .sub-menu.to-left {
        right: auto;
        left: 100%;
    }

    .navbar-menu .dropdown:hover .dropdown-menu,
    .navbar-menu .has-sub:hover .sub-menu {
        visibility: visible;
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .navbar-menu .dropdown-menu li,
    .navbar-menu .sub-menu li {
        margin: 2px 0;
        list-style-type: none;
        opacity: 0;
        transform: translateX(-15px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .navbar-menu .dropdown:hover .dropdown-menu li,
    .navbar-menu .has-sub:hover .sub-menu li {
        opacity: 1;
        transform: translateX(0);
    }

    .navbar-menu .dropdown-menu li a,
    .navbar-menu .sub-menu li a {
        font-size: 15px;
        padding: 10px 15px;
        color: #fff;
        white-space: nowrap;
        display: block;
        position: relative;
        z-index: 1;
        border-radius: 5px;
        transition: color 0.3s ease;
    }

    .navbar-menu .dropdown-menu li a::before,
    .navbar-menu .sub-menu li a::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: #f39c12;
        border-radius: 5px;
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.3s ease-out;
        z-index: -1;
    }

    .navbar-menu .dropdown-menu li a:hover,
    .navbar-menu .sub-menu li a:hover {
        color: #003366;
    }

    .navbar-menu .dropdown-menu li a:hover::before,
    .navbar-menu .sub-menu li a:hover::before {
        transform: scaleX(1);
    }

    .navbar-menu .has-sub {
        position: relative;
    }

    .navbar-menu .dropdown:hover .dropdown-menu li:nth-child(1),
    .navbar-menu .has-sub:hover .sub-menu li:nth-child(1) { transition-delay: 0.05s; }
    .navbar-menu .dropdown:hover .dropdown-menu li:nth-child(2),
    .navbar-menu .has-sub:hover .sub-menu li:nth-child(2) { transition-delay: 0.1s; }
    .navbar-menu .dropdown:hover .dropdown-menu li:nth-child(3),
    .navbar-menu .has-sub:hover .sub-menu li:nth-child(3) { transition-delay: 0.15s; }
    .navbar-menu .dropdown:hover .dropdown-menu li:nth-child(4),
    .navbar-menu .has-sub:hover .sub-menu li:nth-child(4) { transition-delay: 0.2s; }
    .navbar-menu .dropdown:hover .dropdown-menu li:nth-child(5) { transition-delay: 0.25s; }
    .navbar-menu .dropdown:hover .dropdown-menu li:nth-child(6) { transition-delay: 0.3s; }
    .navbar-menu .dropdown:hover .dropdown-menu li:nth-child(7) { transition-delay: 0.35s; }
    .navbar-menu .dropdown:hover .dropdown-menu li:nth-child(8) { transition-delay: 0.4s; }
}

/* ====================================
   RESPONSIVE - HOMEPAGE V2
   ==================================== */
@media (max-width: 1200px) {
    .container-v2 {
        grid-template-columns: 1fr;
    }
    
    .sidebar-v2 {
        grid-column: 1;
        grid-row: auto;
    }
    
    .search-widget-sidebar {
        position: static;
    }
    
    .posts-grid-v2 {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .search-widget-sidebar {
        position: static;
    }
    
    .featured-post {
        height: 400px;
    }
    
    .featured-content {
        padding: 30px;
    }
    
    .featured-title {
        font-size: 1.8rem;
    }
    
    .posts-grid-v2 {
        grid-template-columns: 1fr;
    }
}

/* ====================================
   RESPONSIVE - HOMEPAGE WRAPPER
   ==================================== */
@media (max-width: 1024px) {
    .homepage-container {
        grid-template-columns: 1fr !important;
    }

    .homepage-sidebar {
        order: -1 !important;
    }

    .search-widget {
        position: static !important;
    }
}

@media (max-width: 767px) {
    .homepage-container {
        padding: 0 15px !important;
        gap: 25px !important;
    }

    .post-card-home {
        flex-direction: column !important;
    }

    .post-thumbnail {
        flex: 0 0 auto !important;
        height: 200px !important;
    }

    .post-thumbnail img {
        min-height: 200px !important;
        max-height: 200px !important;
    }

    .post-content-home {
        padding: 15px !important;
    }

    .post-title-home {
        font-size: 18px !important;
    }

    .post-excerpt {
        font-size: 13px !important;
    }
}

/* ====================================
   RESPONSIVE - TABLET (768px - 1024px)
   ==================================== */
@media (max-width: 1024px) {
    .box-container {
        flex-direction: column;
    }

    .box1, .box2 {
        width: 100%;
    }

    .box1 {
        position: static;
    }

    .row {
        flex-direction: column;
    }

    .col-lg-7, .col-lg-4 {
        width: 100%;
    }

    .col-lg-4 {
        position: static;
    }

    .page-wrapper {
        flex-direction: column;
        padding: 40px 20px;
    }

    .page-sidebar {
        width: 100%;
        border-left: none;
        border-top: 1px solid #ddd;
        padding-left: 0;
        padding-top: 20px;
        margin-top: 20px;
    }

    .page-content {
        width: 100%;
    }
}

/* ====================================
   RESPONSIVE - MOBILE (max-width: 767px)
   ==================================== */
@media (max-width: 767px) {
    body {
        padding-top: 60px;
    }

    .navbar {
        height: 60px;
    }

    .navbar-text {
        font-size: 20px;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }

    .quick-links,
    .newsletter {
        width: 100%;
    }

    .category-hero-v2 h1 {
        font-size: 2rem;
        flex-direction: column;
        gap: 10px;
    }

    .category-hero-v2 h1 i {
        font-size: 2rem;
    }

    .subcategory-title {
        font-size: 1.8rem;
    }

    .posts-grid-v2 {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .post-card-v2 {
        height: 350px;
    }

    .article-card {
        flex-direction: column;
    }

    .article-content,
    .article-image {
        width: 100%;
        margin-left: 0;
    }

    .article-image {
        margin-top: 15px;
    }

    .box-container {
        padding: 10px;
    }

    .box2 h1:first-of-type {
        font-size: 24px;
    }

    .box2 h1:not(:first-of-type) {
        font-size: 24px;
        margin: 40px 0;
    }

    .box2 p {
        font-size: 16px;
    }

    .page-wrapper {
        padding: 20px 10px;
        gap: 30px;
    }

    .page-sidebar ul {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .page-sidebar ul li {
        margin: 0;
    }

    .page-sidebar ul li a {
        border: 1px solid #ddd;
        border-right: 1px solid #ddd;
        border-radius: 5px;
        padding: 8px 12px;
    }

    .page-sidebar ul li a.active,
    .page-sidebar ul li a:hover {
        border: 1px solid #ff7a00;
    }
}