/*
Theme Name: Fotograf Portfolio
Theme URI: https://pixel-photo.pl
Author: Ty
Author URI: https://pixel-photo.pl
Description: Prosty motyw z pojedynczym layoutem portfolio.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: fotograf-portfolio
*/

/* Polish glyph support: broaden fallback stack */
:root {
  --font-sans-fallback: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Liberation Sans", Arial, "Helvetica Neue", Helvetica, "DejaVu Sans", sans-serif;
}

body, button, input, select, textarea {
  font-family: var(--font-primary, inherit), var(--font-sans-fallback);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.6;
}

/* ========== Nawigacja ========== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 1px solid #2d2d2d;
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: 300;
  letter-spacing: 0.2em;
}

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

.nav-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  transition: color 0.3s;
}

.nav-menu a:hover { color: #d1d1d1; }

/* Dropdown */
.dropdown { position: relative; }

.dropdown-toggle {
  cursor: pointer;
  background: none;
  border: none;
  color: #fff;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  padding: 0;
}

.dropdown-toggle:hover { color: #d1d1d1; }

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -80%;
  margin-top: 0;
  padding-top: 1rem;
  text-align: center;
  width: 12rem;
  background-color: #000;
  border: 1px solid #2d2d2d;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: none;
  z-index: 1001;
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show { display: block; }

.dropdown-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #1a1a1a;
  transition: background-color 0.3s;
}

.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu a:hover { background-color: #1a1a1a; }

/* ========== Hero ========== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1rem;
  margin-top: 64px;
}

.hero h1 {
  font-size: 5rem;
  font-weight: 100;
  letter-spacing: 0.2em;
  margin-bottom: 1.5rem;
}

.hero p {
  font-size: 1.5rem;
  font-weight: 300;
  color: #9ca3af;
  letter-spacing: 0.1em;
  margin-bottom: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.2em;
  font-size: 0.875rem;
  transition: all 0.3s;
  cursor: pointer;
}

.btn:hover { background-color: #fff; color: #000; }

/* ========== Layout sekcji ========== */
.container { max-width: 1280px; margin: 0 auto; }
.gallery-section { padding: 5rem 1rem; }
.category-section { margin-bottom: 6rem; scroll-margin-top: 5rem; }

.category-title {
  font-size: 3rem;
  font-weight: 100;
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 4rem;
}

/* ========== Galeria (domyślnie 4:3) ========== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0);
  transition: background-color 0.3s;
}

.gallery-item:hover::after { background-color: rgba(0,0,0,0.3); }

.gallery-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #4b5563;
}

/* ========== PORTRETY: pionowe 3:4 i 2 kolumny ========== */
#cat-port .gallery-grid {
  grid-template-columns: repeat(2, 1fr);
}

#cat-port .gallery-item {
  aspect-ratio: 3 / 4;
}

#cat-port .gallery-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

/* ========== Cennik ========== */
.pricing-section {
  padding: 5rem 1rem;
  background-color: #0a0a0a;
}

.section-title {
  font-size: 3rem;
  font-weight: 100;
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 4rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

.pricing-card {
  border: 1px solid #2d2d2d;
  padding: 2rem;
  transition: border-color 0.3s;
}

.pricing-card:hover { border-color: #fff; }

.pricing-card h3 {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 100;
  margin-bottom: 2rem;
}

.pricing-card ul {
  list-style: none;
  margin-bottom: 2rem;
}

.pricing-card li {
  color: #9ca3af;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.pricing-card .btn {
  width: 100%;
  text-align: center;
  border-color: #4b5563;
}

/* ========== O mnie ========== */
.about-section {
  padding: 5rem 1rem;
  text-align: center;
}

.about-content {
  max-width: 56rem;
  margin: 0 auto;
}

.about-content p {
  color: #9ca3af;
  font-size: 1.125rem;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ========== Kontakt ========== */
.contact-section {
  padding: 5rem 1rem;
  background-color: #0a0a0a;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
}

.contact-item-label {
  font-size: 0.875rem;
  color: #6b7280;
}

.contact-item-value {
  font-size: 1.125rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background-color: #000;
  border: 1px solid #2d2d2d;
  padding: 0.75rem 1rem;
  color: #fff;
  margin-bottom: 1rem;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #fff;
}

.contact-form textarea { resize: none; }

.contact-form .btn {
  width: 100%;
  background-color: #fff;
  color: #000;
  border: none;
}

.contact-form .btn:hover { background-color: #e5e5e5; }

/* ========== Stopka ========== */
.footer {
  padding: 2rem 1rem;
  border-top: 1px solid #1a1a1a;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

/* ========== Lightbox ========== */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background-color: rgba(0,0,0,0.95);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.lightbox.active { display: flex; }

.lightbox-content {
  max-width: 80rem;
  max-height: 90vh;
  position: relative;
}

.lightbox-content img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 2001;
}

.lightbox-close:hover { color: #d1d1d1; }

/* Strzałki nawigacji w lightboxie */
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  color: #fff;
  background: rgba(0,0,0,0.4);
  border: none;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  z-index: 2001;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0,0,0,0.7);
}

/* ========== Responsywność ogólna ========== */
@media (max-width: 900px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 3rem; }
  .hero p { font-size: 1.125rem; }
  .category-title,
  .section-title { font-size: 2rem; }
  .nav-menu {
    gap: 1rem;
    flex-wrap: wrap;
  }
}
