@font-face {
    font-family: 'The Seasons';
    src: url('../fonts/The_Seasons_Regular.woff2') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'The Seasons';
    src: url('../fonts/The_Seasons_Bold.woff2') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'The Seasons';
    src: url('../fonts/The_Seasons_Bold_Italic.woff2') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --cream: #FFE7D5;
    --ink: #171717;
    --gray: #4D4D4D;
    --crimson: #A91110;
    --white: #ffffff;
}

*, *::before, *::after {
    box-sizing: border-box;
}

/* Scrollbar kısmı */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.25); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(0,0,0,0.4); }

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: 'Inria Serif', serif;
    background-color: var(--cream);
}

/* Sabit background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        linear-gradient(rgba(240, 235, 224, 0.55), rgba(240, 235, 224, 0.55)),
        url("../images/J1.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
}

section {
    scroll-margin-top: 72px;
}

nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    padding: 0 48px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(169, 17, 16, 0.15);
    transition: all 0.4s ease;
}

.logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    line-height: 1;
    pointer-events: all;
}

.logo-img {
    height: 72px;
    width: auto;
    object-fit: contain;
    display: block;
    transform: scale(3);
    transform-origin: center;
    padding-top: 5px;
    pointer-events: none;
}

.logo-text {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 38px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    position: relative;
    text-decoration: none;
    font-family: 'The Seasons', serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink);
    transition: color 0.25s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--crimson);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link:visited {
    color: var(--gray);
}

.nav-link.active {
    color: var(--crimson);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

/* Arama çubuğu */
.search-container {
    display: flex;
    align-items: center;
    position: relative;
    height: 36px;
    border-radius: 30px;
    padding: 0 5px 0 15px;
    transition: all 0.4s ease;
}

.search-container:hover,
.search-container:focus-within {
    background: rgba(255, 231, 213, 0.4);
}

.search-input {
    width: 0;
    opacity: 0;
    border: none;
    background: transparent;
    outline: none;
    font-family: 'Inria Serif', serif;
    font-size: 13px;
    transition: all 0.4s ease;
}

.search-container:hover .search-input {
    width: 130px;
    opacity: 1;
}

.search-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--ink);
}

.search-btn svg {
    width: 16px;
    height: 16px;
}

.search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.06), 0 0 0 1px rgba(169,17,16,0.06);
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.28s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1001;
}

.search-dropdown.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 18px;
    text-decoration: none;
    border-bottom: 1px solid rgba(23, 23, 23, 0.05);
    cursor: pointer;
}

.search-result-item:hover {
    background: rgba(255, 231, 213, 0.55);
}

.search-result-img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.search-result-icon {
    font-size: 20px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 231, 213, 0.7);
    border-radius: 10px;
}

.search-result-title {
    font-family: 'The Seasons', serif;
    font-weight: 700;
    font-size: 15px;
    color: var(--ink);
    display: block;
}

.search-result-tag {
    font-family: 'Inria Serif', serif;
    font-size: 12px;
    font-style: italic;
    color: var(--crimson);
}

.search-no-result {
    padding: 22px 20px;
    font-family: 'The Seasons', serif;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 16px;
    border-left: 1px solid rgba(23, 23, 23, 0.15);
    padding-left: 24px;
}

.social-icon {
    color: var(--ink);
    transition: all 0.3s ease;
}

.social-icon svg {
    width: 17px;
    height: 17px;
}

.social-icon:hover {
    color: var(--crimson);
    transform: translateY(-2px);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ink);
    transition: all 0.3s ease;
}

.hamburger.open span {
    background: var(--crimson);
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-link {
    font-family: 'The Seasons', serif;
    font-weight: 700;
    font-size: 26px;
    letter-spacing: 0.1em;
    color: var(--ink);
    text-decoration: none;
    position: relative;
}

.mobile-nav-link:hover {
    color: var(--crimson);
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background: var(--crimson);
    transition: width 0.3s ease;
}

.mobile-nav-link:hover::after {
    width: 100%;
}

.mobile-social {
    display: flex;
    gap: 24px;
    margin-top: 20px;
}

/* Footer kısmı */
.site-footer {
    background: var(--ink);
    padding: 40px 8% 0 8%;
}

.site-footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
}

.site-footer-brand {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-logo-text {
    font-family: 'The Seasons', serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
}

.footer-brand-desc {
    font-family: 'Inria Serif', serif;
    font-size: 14px;
    font-style: italic;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin: 8px 0 0 0;
}

.site-footer-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-col-title {
    font-family: 'The Seasons', serif;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.2em;
    color: var(--crimson);
    margin-bottom: 4px;
}

.footer-link {
    font-family: 'Inria Serif', serif;
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.25s ease;
    line-height: 1.4;
}

.footer-link:hover {
    color: rgba(255,255,255,0.9);
}
.footer-link:visited {
    color: rgba(255, 255, 255, 0.35);
}

.footer-socials {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

.footer-social-icon {
    color: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
}

.footer-social-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}

.footer-social-icon:hover {
    color: var(--crimson);
    transform: translateY(-2px);
}

.footer-bottom-divider {
    height: 1px;
    background: rgba(255,255,255,0.08);
}

.footer-bottom-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0 20px 0;
}

.footer-copy {
    font-family: 'The Seasons', serif;
    font-weight: 300;
    font-size: 13px;
    letter-spacing: 0.1em;
     color: #D4D4D4;
}

.footer-kanji-deco {
    font-family: serif;
    font-size: 28px;
    color: #CC1110;
    opacity: 0.4;
    line-height: 1;
}
.footer-kanji { 
    font-size: 20px;
    color: var(--crimson);
    opacity: 1;
}
/* Animasyonlar */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.search-highlight {
    animation: searchGlow 2.2s ease forwards;
}

@keyframes searchGlow {
    0%   { box-shadow: 0 0 0 0 rgba(169, 17, 16, 0); outline: 2px solid transparent; }
    15%  { box-shadow: 0 0 0 6px rgba(169, 17, 16, 0.25); outline: 2px solid rgba(169, 17, 16, 0.3); }
    100% { box-shadow: 0 0 0 0 rgba(169, 17, 16, 0); outline: 2px solid transparent; }
}

/* Tablet görünüm */
@media (max-width: 1024px) {
    nav { padding: 0 28px; }
    .nav-links { gap: 24px; }
    .logo-text { font-size: 22px; }
    .social-links { display: none; }
    .site-footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
/* Mobil görünüm */
@media (max-width: 768px) {
    .mobile-hide { display: none !important; }

    nav {
        padding: 0 20px;
        height: 60px;
    }

    .nav-links, .nav-right { display: none; }

    .logo { position: static; transform: none; }
    .logo-text { font-size: 20px; }
    .logo-img { height: 60px; transform: scale(3); padding-top: 5px; }

    .hamburger { display: flex; }
    .mobile-menu { display: flex; }

    section { scroll-margin-top: 64px; }
    .search-dropdown { width: 280px; right: -20px; }
}
/* Küçük mobil görünüm */
@media (max-width: 600px) {
    .site-footer { padding: 50px 6% 0 6%; }
    .site-footer-top { grid-template-columns: 1fr; gap: 32px; text-align: center; }
    .site-footer-brand { align-items: center; }
    .footer-socials { justify-content: center; }
    .footer-bottom-inner { flex-direction: column; gap: 15px; text-align: center; }
}
/* Daga küçük mobil görünüm */
@media (max-width: 480px) {
    .logo-text { font-size: 17px; letter-spacing: 0.05em; }
    .footer-kanji { font-size: 11px; }
    .mobile-nav-link { font-size: 22px; }
}
/* Loader kısmı */
.loader-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: #f8f5f0; 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;  /* Katman olarak en üstte */
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.koi-loader {
  width: 500px;
  height: 500px;
  animation: spin 3s linear infinite;
  transform-origin: 48% 50%;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* JS tarafından tetiklenmesi için gizli class */
.loader-container.hidden {
  opacity: 0;
  visibility: hidden;
}