/*
Theme Name: HikayeTema Pro
Author: KGroups
Description: Ozel ve tam optimize WordPress temasi.
Version: 1.0
Text Domain: hikayetema
*/

body { font-family: 'Nunito', sans-serif; color: #333; margin: 0; }
.site-wrapper { max-width: 1400px; margin: 0 auto; background-color: #ffffff; min-height: 100vh; overflow: hidden; }
.hikayetema-header { background: #f3f5f7; }
.custom-heading { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; }
.hikayetema-title-first { color: #638ca6; margin-right: 4px; }
.hikayetema-title-second { color: #f29d38; }
.nav-link { color: #555 !important; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 0.5px; padding: 8px 12px !important; }
.nav-link:hover { color: #f29d38 !important; }
.dropdown-menu { font-size: 14px; border-radius: 8px; padding: 10px 0; }
.dropdown-item { color: #444; font-weight: 600; padding: 8px 20px; }
.dropdown-item:hover { background-color: #f8f9fa; color: #f29d38; }
.search-box { display: flex; align-items: center; justify-content: space-between; background: #fff; padding: 8px 15px; border-radius: 25px; border: 1px solid #dcdcdc; width: 200px; }
.search-input { border: none; background: transparent; outline: none; width: 100%; font-size: 14px; font-weight: 400; color: #666; }
.search-input::placeholder { color: #999; }
.search-submit { background: none; border: none; cursor: pointer; padding: 0; display: flex; align-items: center; margin-left: 8px; }

.fxlist { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.fxlist-main { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (max-width: 992px) { .fxlist { grid-template-columns: 1fr; } }

.fxlist-item { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; display: flex; flex-direction: row; padding: 15px; gap: 20px; transition: all 0.3s ease; box-shadow: 0 2px 8px rgba(0,0,0,0.03); }
.fxlist-item:hover { box-shadow: 0 5px 15px rgba(0,0,0,0.08); transform: translateY(-2px); }
.fxlist-thumb { flex: 0 0 280px; height: 160px; position: relative; border-radius: 8px; overflow: hidden; box-shadow: 0 4px 8px rgba(0,0,0,0.1); }
.fxlist-thumb img { width: 100%; height: 100%; object-fit: cover; }
.fxlist-cat { position: absolute; top: 0; left: 0; background: #f29d38; color: #fff; font-size: 11px; font-weight: 800; padding: 5px 12px; border-radius: 0 0 8px 0; text-decoration: none; z-index: 2; }
.fxlist-cat:hover { color: #fff; background: #e0960d; }
.fxlist-body { display: flex; flex-direction: column; flex-grow: 1; padding: 5px 0; }
.fxlist-title { font-size: 22px; font-weight: 900; margin-top: 0; margin-bottom: 10px; line-height: 1.3; }
.fxlist-title a { color: #2c3e50; text-decoration: none; transition: color 0.2s; }
.fxlist-title a:hover { color: #f29d38; }
.fxlist-excerpt { font-size: 15px; color: #6c757d; line-height: 1.6; margin-bottom: 15px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-top: 0; }
.fxlist-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #888; margin-top: auto; font-weight: 700; border-top: 1px solid #f4f4f4; padding-top: 12px; }
.fxlist-meta span { display: flex; align-items: center; }
.fxlist-meta svg { width: 15px; height: 15px; fill: #f29d38; margin-right: 5px; }
.fxlist-readmore { background-color: #f29d38; color: #fff; padding: 5px 15px; border-radius: 6px; text-decoration: none; font-size: 13px; transition: background 0.3s; }
.fxlist-readmore:hover { background-color: #e0960d; color: #fff; }

.pagination { display: flex; justify-content: center; width: 100%; margin-top: 50px; margin-bottom: 30px; }
.pagination ul.page-numbers { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; list-style: none; padding: 0; margin: 0; gap: 10px; }
.pagination ul.page-numbers li { margin: 0; padding: 0; display: inline-flex; }
.pagination ul.page-numbers li a, 
.pagination ul.page-numbers li span { display: flex; align-items: center; justify-content: center; padding: 10px 18px; background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: #2c3e50; font-weight: 800; font-size: 15px; transition: all 0.3s ease; }
.pagination ul.page-numbers li a:hover { background: var(--hikayetema-ana-renk, #f29d38); color: #fff; border-color: var(--hikayetema-ana-renk, #f29d38); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.pagination ul.page-numbers li span.current { background: var(--hikayetema-ana-renk, #f29d38); color: #fff; border-color: var(--hikayetema-ana-renk, #f29d38); box-shadow: 0 4px 12px rgba(242,157,56,0.3); }

.sidebar-sticky { position: sticky; top: 20px; }
.widget-box { background: #fff; border-radius: 12px; border: 1px solid #e2e8f0; padding: 25px; margin-bottom: 25px; box-shadow: 0 2px 12px rgba(0,0,0,0.03); }
.widget-title { font-size: 18px; font-weight: 900; color: #2c3e50; margin-bottom: 20px; border-bottom: 2px solid #f8f9fa; padding-bottom: 15px; display: flex; align-items: center; gap: 8px; margin-top: 0; }
.widget-item { display: flex; align-items: center; gap: 15px; margin-bottom: 20px; text-decoration: none; }
.widget-item:last-child { margin-bottom: 0; }
.widget-img { flex: 0 0 75px; height: 75px; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 6px rgba(0,0,0,0.1); }
.widget-img img { width: 100%; height: 100%; object-fit: cover; }
.widget-text { display: flex; flex-direction: column; justify-content: center; overflow: hidden; width: 100%; }
.widget-text h4 { font-size: 14px; font-weight: 800; color: #2c3e50; margin: 0 0 6px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color 0.2s; line-height: 1.2; }
.widget-item:hover .widget-text h4 { color: #f29d38; }
.widget-date { font-size: 12px; color: #999; font-weight: 600; }
.widget-cat { color: #f29d38; font-weight: 800; margin-right: 4px; }

.single-article { background: #fff; border-radius: 12px; }
.single-title { font-size: 32px; font-weight: 900; color: #2c3e50; margin-bottom: 15px; }
.single-meta { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: #888; font-weight: 700; margin-bottom: 25px; border-bottom: 1px solid #f4f4f4; padding-bottom: 20px; }
.single-meta span { display: flex; align-items: center; }
.single-meta svg { width: 16px; height: 16px; fill: #f29d38; margin-right: 6px; }
.single-thumb { margin-bottom: 30px; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.05); }
.single-thumb img { width: 100%; height: auto; object-fit: cover; }

.hikayetema-tts { display: flex; align-items: center; background: #2c3e50; padding: 12px 25px; border-radius: 8px; gap: 15px; margin-bottom: 30px; }
.hikayetema-tts button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; padding: 0; transition: color 0.2s; }
.hikayetema-tts button:hover { color: #f29d38; }
.hikayetema-progress { flex-grow: 1; height: 6px; background: rgba(255,255,255,0.2); border-radius: 3px; position: relative; }
.hikayetema-progress span { position: absolute; left: 0; top: 0; height: 100%; background: #0d6efd; width: 0%; transition: width 0.1s linear; }
.hikayetema-time { color: #fff; font-size: 12px; font-weight: 700; }
.hikayetema-volume { width: 80px; accent-color: #0d6efd; cursor: pointer; }

.single-body { font-size: 17px; line-height: 1.9; color: #444; }
.single-body p { margin-bottom: 20px; }

.share-box { margin-top: 50px; margin-bottom: 40px; }
.sharetitle { font-size: 18px; font-weight: 900; color: #2c3e50; margin-bottom: 15px; display: block; }
.share-buttons { display: flex; gap: 10px; }
.share-btn { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 6px; background: #f4f6f8; color: #666; transition: all 0.3s; }
.share-btn:hover { color: #fff; transform: translateY(-3px); }
.share-btn.fb:hover { background: #3b5998; color: #fff;}
.share-btn.tw:hover { background: #1da1f2; color: #fff;}
.share-btn.wa:hover { background: #25d366; color: #fff;}
.share-btn.in:hover { background: #0077b5; color: #fff;}

.fx-comments { margin-top: 40px; }
.comments-title { font-size: 24px; font-weight: 800; color: #2c3e50; margin-bottom: 20px; }
.comment-box { background: #fdfdfd; border: 1px solid #eef2f5; border-radius: 8px; padding: 20px; display: flex; gap: 15px; margin-bottom: 15px; }
.comment-avatar { width: 45px; height: 45px; flex-shrink: 0; background: #f29d38; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 900; }
.comment-content { flex-grow: 1; }
.comment-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.comment-head strong { color: #2c3e50; font-size: 15px; }
.comment-head small { color: #888; font-size: 12px; }
.comment-content p { color: #555; margin: 0; font-size: 15px; }
.comment-form-box { background: #fff; border: 1px solid #eef2f5; border-radius: 12px; padding: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.01); }
.comment-form-box .form-control { border: 1px solid #e0e0e0; padding: 12px 15px; border-radius: 8px; font-size: 15px; box-shadow: inset 0 1px 3px rgba(0,0,0,0.02); }
.comment-form-box .form-control:focus { border-color: #f29d38; box-shadow: 0 0 0 3px rgba(242,157,56,0.1); outline: none; }
.btn-warning { background-color: #f29d38; border-color: #f29d38; }
.btn-warning:hover { background-color: #e0960d; border-color: #e0960d; }

.seo-box { background: linear-gradient(135deg, #f0f7fb 0%, #fdf8f0 100%); border-radius: 16px; border: 1px solid #e8f0f5; }
.seo-title { font-size: 24px; font-weight: 900; color: #2c3e50; }
.seo-box p { font-size: 16px; line-height: 1.8; color: #444; margin-bottom: 15px; }
.seo-box p:last-child { margin-bottom: 0; }

.faq-title { font-size: 26px; font-weight: 900; color: #2c3e50; }
.accordion-item { border: none; margin-bottom: 12px; border-radius: 8px !important; box-shadow: 0 2px 8px rgba(0,0,0,0.04); overflow: hidden; }
.accordion-button { font-weight: 800; color: #333; background-color: #fff; padding: 20px; border-radius: 8px !important; box-shadow: none !important; font-size: 16px; }
.accordion-button:not(.collapsed) { background-color: #fff; color: #333; }
.accordion-body { padding: 0 20px 20px 20px; color: #555; line-height: 1.7; font-size: 15px; }

@media (max-width: 768px) { .fxlist-item { flex-direction: column; } .fxlist-thumb { flex: none; width: 100%; height: 200px; } }

.ht-boyama-wrapper { margin-top: 40px; }
.ht-boyama-top-box { background: #fff; border: 1px solid #eaeaea; border-radius: 12px; padding: 25px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.ht-box-label { font-size: 13px; color: #777; margin-bottom: 12px; display: block; font-weight: 600; }
.ht-action-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 20px; }
@media(max-width:768px) { .ht-action-grid { grid-template-columns: repeat(2, 1fr); } }
@media(max-width:480px) { .ht-action-grid { grid-template-columns: 1fr; } }
.ht-action-btn { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-radius: 8px; font-weight: 800; font-size: 15px; text-decoration: none !important; color: #fff !important; transition: transform 0.2s, box-shadow 0.2s; }
.ht-action-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }
.ht-btn-blue { background: #1d78b8; box-shadow: 0 4px 0 #155c8d; }
.ht-btn-green { background: #5cb85c; box-shadow: 0 4px 0 #449d44; }
.ht-btn-red { background: #d9534f; box-shadow: 0 4px 0 #c9302c; }
.ht-btn-purple { background: #8b5cf6; box-shadow: 0 4px 0 #7047d4; }
.ht-info-banner { background: #fff; border: 1px dashed #ccc; border-radius: 8px; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.ht-info-banner span { font-size: 14px; color: #444; }
.ht-close-btn { background: none; border: none; font-size: 18px; color: #999; cursor: pointer; line-height: 1; }
.ht-meta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
@media(max-width:768px) { .ht-meta-grid { grid-template-columns: repeat(2, 1fr); } }
.ht-meta-card { background: #f8f9fa; border-radius: 8px; padding: 15px; display: flex; flex-direction: column; gap: 5px; }
.ht-meta-card span { font-size: 12px; color: #888; font-weight: 700; }
.ht-meta-card strong { font-size: 13px; color: #333; font-weight: 900; }
.ht-boyama-title { font-size: 26px; font-weight: 900; color: #2c3e50; margin-bottom: 20px; }
.ht-boyama-app { background: #fff; border: 1px solid #eaeaea; border-radius: 16px; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); }
.ht-toolbar { background: #fff; border-radius: 12px; margin-bottom: 15px; }
.ht-tools-row { display: flex; flex-wrap: wrap; gap: 8px; }
.ht-tool-btn { background: #fff; border: 1px solid #ddd; padding: 6px 14px; border-radius: 20px; font-size: 13px; font-weight: 700; color: #555; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 5px; }
.ht-tool-btn:hover { background: #f8f9fa; border-color: #ccc; }
.ht-tool-btn.active { background: #eef5ff; border-color: #0d6efd; color: #0d6efd; }
.ht-tool-color-wrapper { position: relative; display: inline-block; }
#toolRenkPicker { position: absolute; opacity: 0; width: 0; height: 0; }
.ht-canvas-wrapper { border: 2px dashed #e2e8f0; border-radius: 12px; background: #f8f9fa; overflow: hidden; display: flex; justify-content: center; align-items: center; width: 100%; max-height: 600px; }
#bCanvas { max-width: 100%; height: auto; background: #fff; cursor: crosshair; }
.ht-boyama-app:-webkit-full-screen { background: #fff !important; width: 100vw !important; height: 100vh !important; padding: 20px; overflow: auto; display: flex; flex-direction: column; }
.ht-boyama-app:-webkit-full-screen .ht-canvas-wrapper { flex-grow: 1; max-height: none; }
.ht-boyama-app:fullscreen { background: #fff !important; width: 100vw !important; height: 100vh !important; padding: 20px; overflow: auto; display: flex; flex-direction: column; }
.ht-boyama-app:fullscreen .ht-canvas-wrapper { flex-grow: 1; max-height: none; }

.navbar-nav .menu-item-has-children { position: relative; }
.navbar-nav .menu-item-has-children > a::after { content: "▼"; font-size: 10px; margin-left: 6px; vertical-align: middle; color: #999; }
.navbar-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; background: #fff; min-width: 220px; box-shadow: 0 10px 25px rgba(0,0,0,0.08); border-radius: 8px; padding: 10px 0; z-index: 9999; list-style: none; margin: 0; border: 1px solid #f0f0f0; }
.navbar-nav .menu-item-has-children:hover > .sub-menu { display: block; animation: fadeIn 0.2s ease-in-out; }
.navbar-nav .sub-menu li { padding: 0; width: 100%; }
.navbar-nav .sub-menu li a { display: block; font-size: 14px; font-weight: 700; padding: 10px 20px !important; color: #444 !important; text-transform: none; text-decoration: none; transition: all 0.2s; }
.navbar-nav .sub-menu li a:hover { background-color: #f8f9fa; color: #f29d38 !important; padding-left: 25px !important; }

@media (max-width: 992px) { 
    .navbar-nav .sub-menu { position: static; box-shadow: none; border: none; padding-left: 15px; display: none; background: transparent; border-left: 2px solid #eee; margin-left: 15px; margin-top: 10px; }
    .navbar-nav .menu-item-has-children:hover > .sub-menu { display: block; }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}