@font-face {
font-family: 'Outfit';
font-style: normal;
font-weight: 400;
font-display: swap;
src: url('tema/font/Outfit-Medium.woff2') format('woff2');
}
@font-face {
font-family: 'Outfit';
font-style: normal;
font-weight: 600;
font-display: swap;
src: url('tema/font/Outfit-SemiBold.woff2') format('woff2');
}

:root {
--primary: #0074d4;
--primary-light: #e0f2ff;
--bg: #fbfbfb;
--surface: #ffffff;
--text-main: #1f2937;
--text-muted: #6b7280;
--border: #e5e7eb;
--radius: 10px;
--shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Outfit', sans-serif;
-webkit-tap-highlight-color: transparent;
}

body {
background-color: var(--bg);
color: var(--text-main);
line-height: 1.5;
overflow-x: hidden;
}

.app-wrapper {
width: 100%;
margin: 0;
min-height: 100vh;
}

/* --- HEADER --- */
.app-header {
background:#fdfdfd;
position: sticky;
top: 0;
z-index: 100;
padding-top: 20px;
border-bottom: 1px solid var(--border);
box-shadow: var(--shadow);
width: 100%;
}

.header-content {
max-width: 800px;
margin: 0 auto;
padding: 0 20px 15px 20px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
}

.logo-link {
text-decoration: none;
display: block;
}

.logo {
font-size: 1.2rem;
font-weight: 700;
color: var(--text-main);
letter-spacing: -0.03em;
white-space: nowrap;
}

.logo span {
color: var(--primary);
}

/* SEARCH */
.search-container {
flex: 1;
max-width: 450px;
}

.search-input-wrapper {
position: relative;
display: flex;
align-items: center;
}

.search-input-wrapper svg {
position: absolute;
left: 12px;
color: var(--text-muted);
}

.search-input-wrapper input {
width: 100%;
padding: 10px 35px;
border: 1px solid var(--border);
border-radius: 12px;
background: #f9fafb;
font-size: 0.9rem;
outline: none;
transition: all 0.2s;
}

.clear-search {
position: absolute;
right: 12px;
background: #e5e7eb;
border: none;
border-radius: 50%;
width: 20px;
height: 20px;
display: none; /* Varsayılan olarak gizli */
align-items: center;
justify-content: center;
cursor: pointer;
color: #4b5563;
font-size: 12px;
font-weight: bold;
}

.search-input-wrapper input:focus {
border-color: var(--primary);
background: #fff;
box-shadow: 0 0 0 4px var(--primary-light);
}

/* CATEGORY NAV - MODERN APP STYLE */
.category-nav {
max-width:945px;
margin: 0 auto;
padding-bottom: 12px;
position: relative;
}

.nav-arrow {
position: absolute;
top: 0;
bottom: 12px;
width: 40px;
border: none;
background: transparent;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
z-index: 20;
transition: opacity 0.3s, visibility 0.3s;
outline: none;
}

.nav-arrow.left {
left: 0;
background: linear-gradient(to right, var(--surface) 30%, rgba(255,255,255,0));
}

.nav-arrow.right {
right: 0;
background: linear-gradient(to left, var(--surface) 30%, rgba(255,255,255,0));
}

.nav-arrow svg {
width: 28px;
height: 28px;
background: var(--surface);
border-radius: 50%;
padding: 6px;
box-shadow: 0 2px 10px rgba(0,0,0,0.08);
border: 1px solid var(--border);
color: var(--text-muted);
transition: all 0.2s;
}

.nav-arrow:hover svg {
color: var(--primary);
border-color: var(--primary);
transform: scale(1.1);
}

.nav-scroll {
display: flex;
overflow-x: auto;
gap: 8px;
scrollbar-width: none;
scroll-behavior: smooth;
padding: 2px 20px;
}

.nav-scroll::-webkit-scrollbar {
display: none; /* Chrome/Safari */
}

.cat-pill {
white-space: nowrap;
padding: 8px 16px;
background: #f3f4f6;
border-radius: 10px;
text-decoration: none;
color: var(--text-muted);
font-size: 0.85rem;
font-weight: 600;
transition: all 0.2s;
}

.cat-pill.active {
background: var(--primary);
color: #fff;
}

/* --- CONTENT --- */
.content-body {
max-width: 800px;
margin: 20px auto;
padding: 6px;
}

.category-section {
margin-bottom:20px;
scroll-margin-top: 150px;
transition: all 0.3s;
border-radius: var(--radius);
padding: 6px;
}

/* Tıklanan Kategori Vurgusu */
.section-highlight {
animation: highlightPulse 2s ease-out;
}

@keyframes highlightPulse {
0% {
background-color: var(--primary-light);
box-shadow: 0 0 0 10px var(--primary-light);
}
30% {
background-color: var(--primary-light);
box-shadow: 0 0 0 15px var(--primary-light);
}
100% {
background-color: transparent;
box-shadow: 0 0 0 0 transparent;
}
}

.section-title {
font-size: 1.1rem;
font-weight:600;
margin-bottom: 15px;
color: #1b405e;
display: flex;
align-items: center;
gap: 8px;
}

/* GRID */
.tools-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 12px;
}

.tool-item {
background: var(--surface);
padding: 14px;
border-radius: var(--radius);
text-decoration: none;
display: flex;
flex-direction: row;
align-items: center;
gap:6px;
border: 1px solid var(--border);
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.tool-item:hover {
border-color: var(--primary);
background: #fdfdfd;
box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
transform: translateY(-2px);
}

.tool-item:active {
transform: scale(0.97);
}

.tool-item .icon {
flex-shrink: 0;
font-size: 24px;
width: 30px;
height: 36px;
display: flex;
justify-content: center;
}

.tool-item .name {
flex: 1;
font-size: 18px;
font-weight: 500;
color: var(--text-main);
line-height: 1.2;
text-align: left;
}

/* FOOTER */
.app-footer {
background: var(--surface);
padding: 60px 20px;
border-top: 1px solid var(--border);
margin-top: 40px;
}

.footer-content {
max-width: 800px;
margin: 0 auto;
text-align: center;
color: var(--text-muted);
font-size: 0.9rem;
}

.footer-content p {
margin-bottom: 15px;
line-height: 1.6;
}

@media (max-width: 500px) {
.tool-item {padding: 8px;}
.tool-item .name {font-size: 14px;}
}

@media (max-width: 400px) {
.tool-item {padding: 8px 2px;}
}
