/*
Theme Name: Fullscreen Canvas
Theme URI: https://example.com/fullscreen-canvas
Author: Claude
Author URI: https://claude.ai
Description: Minimalist full-screen WordPress theme designed for full-page scroll plugins like FullPage.js, Pagepiling, and WP FullPage. Zero interference, maximum canvas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: fullscreen-canvas
Tags: full-screen, one-page, full-page, minimal, custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ============================================================
   CSS CUSTOM PROPERTIES
   ============================================================ */
:root {
  --color-bg:        #0a0a0a; /* override via fsc_customize_css in functions.php */
  --color-text:      #f0ece4;
  --color-accent:    #c8a96e;
  --color-muted:     rgba(240, 236, 228, 0.45);
  --color-border:    rgba(240, 236, 228, 0.1);
  --color-overlay:   rgba(10, 10, 10, 0.6);

  --font-display:    'Cormorant Garamond', 'Palatino Linotype', serif;
  --font-body:       'DM Sans', 'Helvetica Neue', sans-serif;
  --font-mono:       'JetBrains Mono', 'Courier New', monospace;

  --transition-base: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-slow: 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --header-height:   70px;
  --nav-padding:     0 2.5rem;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Tema elementlerine özgü reset — WPBakery elementlerine dokunmaz */
html, body,
#site-header, #site-header *,
#site-footer, #site-footer *,
#content > .site-main > *:not([class*="vc_"]):not([class*="wpb_"]):not([class*="boomapps_"]),
.nav-menu, .nav-menu *,
.site-branding, .site-branding *,
.menu-toggle, .footer-columns, .footer-columns *,
h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote {
  margin: 0;
  padding: 0;
}



html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   FULL-SCREEN PLUGIN COMPATIBILITY LAYER
   These rules ensure FullPage.js, WP FullPage, Pagepiling,
   ScrollMagic etc. work without interference.
   ============================================================ */

/* FullPage.js core containers */
#fullpage,
.fullpage-wrapper {
  width: 100%;
}

.fp-section,
.fs-section {
  position: relative;
  width: 100%;
  height: 100vh !important;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .section sadece WPBakery olmayan alanlarda */
.section:not([class*="vc_"]):not([class*="wpb_"]) {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide,
.fp-slide {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Pagepiling plugin */
#pagepiling .pp-section {
  height: 100vh !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ScrollMagic / GSAP sections */
.scrollmagic-pin-spacer {
  display: block !important;
}

/* Generic full-screen section utility */
.fs-section {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
#site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-height);
  padding: var(--nav-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition-base),
              border-color var(--transition-base);
  border-bottom: 1px solid transparent;
}

#site-header.scrolled,
#site-header.header--solid {
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--color-border);
}

/* Logo */
.site-branding {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.custom-logo {
  height: 36px;
  width: auto;
  display: block;
}

.site-title {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-decoration: none;
  line-height: 1;
}

.site-description {
  display: none;
}

/* Primary Navigation */
#primary-menu-wrapper {
  display: flex;
  align-items: center;
}

.nav-menu {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-menu a {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-base);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--color-accent);
  transition: width var(--transition-base);
}

.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--color-text);
}

.nav-menu a:hover::after,
.nav-menu .current-menu-item > a::after {
  width: 100%;
}

/* Dropdown */
.nav-menu .sub-menu {
  position: absolute;
  top: calc(100% + 1rem);
  left: 0;
  min-width: 220px;
  background: rgba(15, 15, 15, 0.96);
  backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-base);
  padding: 0.5rem 0;
}

.nav-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-menu .sub-menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.82rem;
}

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1100;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 1.5px;
  background: var(--color-text);
  transition: all var(--transition-base);
  transform-origin: center;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* FullPage.js navigation dots - override defaults with theme style */
#fp-nav ul li a span,
.fp-slidesNav ul li a span {
  background: var(--color-accent) !important;
}

#fp-nav ul li a.active span,
.fp-slidesNav ul li a.active span {
  background: var(--color-text) !important;
}

/* ============================================================
   CONTENT AREA
   ============================================================ */
#content {
  position: relative;
  width: 100%;
}

/* When full-page plugin is NOT active - fallback page layout */
.site-main {
  position: relative;
  width: 100%;
  min-height: 100vh;
}

/* ============================================================
   SECTION CONTENT HELPERS
   ============================================================ */
.section-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.section-inner--narrow {
  max-width: 760px;
}

.section-inner--wide {
  max-width: 1600px;
}

/* Backgrounds */
.bg--dark    { background-color: var(--color-bg); }
.bg--light   { background-color: #f4f1ec; color: #0a0a0a; }
.bg--accent  { background-color: #1a1510; }
.bg--image   { background-size: cover; background-position: center; background-repeat: no-repeat; }

/* Overlay helper */
.section-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--color-overlay);
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(3rem, 8vw, 8rem); }
h2 { font-size: clamp(2rem, 5vw, 5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 3rem); }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.15rem; }
h6 { font-size: 1rem; }

p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--color-muted);
}

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

a:hover { color: var(--color-text); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 1rem 2.2rem;
  border: 1px solid currentColor;
  background: transparent;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  transform: translateX(-101%);
  transition: transform var(--transition-base);
  z-index: 0;
}

.btn:hover {
  color: var(--color-bg);
  border-color: var(--color-accent);
}

.btn:hover::before {
  transform: translateX(0);
}

.btn span {
  position: relative;
  z-index: 1;
}

.btn--primary {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-bg);
}

.btn--primary::before {
  background: var(--color-text);
}

/* ============================================================
   FOOTER
   ============================================================ */
#site-footer {
  position: relative;
  width: 100%;
  z-index: 10;
  padding: 2.5rem;
  background: transparent;
}

/* Footer çok sütunlu yapı */
.footer-columns {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  align-items: flex-start;
}

.footer-col {
  min-width: 0;
}

/* Footer nav (menü) */
.footer-nav {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.footer-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.footer-menu a {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-decoration: none;
  transition: color var(--transition-base);
}

.footer-menu a:hover {
  color: var(--color-text);
}

/* Widget başlıkları */
.footer-widget-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text);
  margin-bottom: 1rem;
}

/* Widget içeriği */
.footer-widget {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.7;
}

.footer-widget a {
  color: var(--color-muted);
  transition: color var(--transition-base);
}

.footer-widget a:hover {
  color: var(--color-text);
}

/* Copyright */
.footer-copyright {
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.footer-copyright a {
  color: var(--color-muted);
  transition: color var(--transition-base);
}

.footer-copyright a:hover {
  color: var(--color-text);
}

/* Mobil */
@media (max-width: 768px) {
  .footer-columns {
    flex-direction: column;
  }
  .footer-col {
    flex: 1 1 100% !important;
  }
}

/* ============================================================
   MOBILE NAVIGATION
   ============================================================ */
@media (max-width: 768px) {
  :root { --header-height: 60px; }

  .menu-toggle { display: flex; }

  #primary-menu-wrapper {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-slow);
    z-index: 1050;
  }

  #primary-menu-wrapper.open {
    opacity: 1;
    visibility: visible;
  }

  .nav-menu {
    flex-direction: column;
    gap: 2.5rem;
    text-align: center;
  }

  .nav-menu a {
    font-family: var(--font-display);
    font-size: 2.5rem;
    letter-spacing: 0.02em;
    text-transform: none;
    color: var(--color-text);
  }

  .nav-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    padding: 0.5rem 0 0;
  }
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--color-accent);
  color: var(--color-bg);
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
}

.skip-link:focus {
  top: 1rem;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   WORDPRESS CORE CLASSES
   ============================================================ */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }

.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--color-muted); margin-top: 0.5rem; }

.gallery { display: grid; gap: 1rem; }
.gallery-columns-2 { grid-template-columns: repeat(2, 1fr); }
.gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); }

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

/* ============================================================
   SCROLLBAR
   ============================================================ */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--color-bg); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-accent); }
