/*
Theme Name:        DrinkBarGroup
Theme URI:         https://drinkbargroup.pl
Author:            DrinkBarGroup
Author URI:        https://drinkbargroup.pl
Description:       Dedykowany motyw dla DrinkBarGroup — profesjonalna obsługa barmańska. Dark luxury theme z pełnym SEO, WooCommerce i własną wtyczką drinkbargroup.
Version:           1.0.0
Requires at least: 6.4
Tested up to:      6.6
Requires PHP:      8.1
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       drinkbargroup-theme
Tags:              dark, custom-menu, featured-images, translation-ready, full-site-editing
*/

/*
 * Globalne style bazowe motywu.
 * Główny CSS (dark theme, komponenty) jest w wtyczce:
 * /wp-content/plugins/drinkbargroup/frontend/assets/css/main.css
 *
 * Ten plik zawiera tylko:
 * - Style WordPress (content, gallery, alignment classes)
 * - Style blogu (wpisy, archiwum, sidebar)
 * - Style WordPress-specificzne (menu, widgets)
 */

/* ── WordPress content alignment ────────────────────────────── */
.alignwide  { margin-inline: -2rem; }
.alignfull  { margin-inline: calc(50% - 50vw); max-width: 100vw; }
.alignleft  { float: left; margin-right: 1.5rem; margin-bottom: 1rem; }
.alignright { float: right; margin-left: 1.5rem; margin-bottom: 1rem; }
.aligncenter { text-align: center; margin-inline: auto; display: block; }

/* ── WordPress caption ───────────────────────────────────────── */
.wp-caption { max-width: 100%; }
.wp-caption-text {
  font-size: .78rem; color: #6B6358;
  text-align: center; margin-top: .4rem;
  font-style: italic;
}

/* ── WordPress gallery ───────────────────────────────────────── */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px; margin: 1.5rem 0;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }

/* ── Post content ────────────────────────────────────────────── */
.dbg-post-content { max-width: 760px; margin-inline: auto; }
.dbg-post-content h2,
.dbg-post-content h3 { margin-top: 2rem; margin-bottom: .6rem; }
.dbg-post-content p   { line-height: 1.85; margin-bottom: 1.2rem; }
.dbg-post-content ul,
.dbg-post-content ol  { margin: 1rem 0 1.2rem 2rem; line-height: 1.9; }
.dbg-post-content li  { margin-bottom: .3rem; }
.dbg-post-content blockquote {
  border-left: 3px solid #C9A96E;
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: #1e1e1e;
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 1.05rem;
}
.dbg-post-content img {
  border-radius: 2px; margin: 1rem 0;
}
.dbg-post-content a { color: #C9A96E; text-decoration: underline; }
.dbg-post-content code {
  font-family: monospace; background: #1e1e1e;
  padding: .15rem .4rem; font-size: .88em;
}
.dbg-post-content pre {
  background: #161616; padding: 1.2rem; overflow-x: auto;
  font-size: .82rem; line-height: 1.7; margin: 1.2rem 0;
}
.dbg-post-content hr {
  border: none; border-top: 1px solid rgba(201,169,110,.15);
  margin: 2rem 0;
}
.dbg-post-content table {
  width: 100%; border-collapse: collapse; margin: 1.2rem 0;
  font-size: .88rem;
}
.dbg-post-content th {
  background: #C9A96E; color: #000; padding: .6rem 1rem;
  text-align: left; font-weight: 600;
}
.dbg-post-content td {
  padding: .7rem 1rem; border-bottom: 1px solid rgba(201,169,110,.08);
  color: #C8C0B2;
}

/* ── Blog posts list ─────────────────────────────────────────── */
.dbg-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.dbg-post-card {
  background: #161616; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.dbg-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.dbg-post-card__img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
  filter: brightness(.82);
  transition: filter .4s ease, transform .4s ease;
}
.dbg-post-card:hover .dbg-post-card__img {
  filter: brightness(1); transform: scale(1.04);
}
.dbg-post-card__img-ph {
  width: 100%; aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e1e1e, #252525);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.dbg-post-card__img-wrap { overflow: hidden; }

.dbg-post-card__body { padding: 1.5rem; }
.dbg-post-card__cats {
  display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .6rem;
}
.dbg-post-card__cat {
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  background: rgba(201,169,110,.12); color: #C9A96E;
  padding: .2rem .6rem; border: 1px solid rgba(201,169,110,.2);
}
.dbg-post-card__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem; font-weight: 600;
  color: #F5F0E8; line-height: 1.3;
  margin-bottom: .6rem;
}
.dbg-post-card__title a { color: inherit; text-decoration: none; }
.dbg-post-card__title a:hover { color: #C9A96E; }
.dbg-post-card__excerpt {
  font-size: .82rem; color: #6B6358; line-height: 1.75;
  margin-bottom: 1rem;
}
.dbg-post-card__meta {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .7rem; color: #6B6358; letter-spacing: .05em;
}
.dbg-post-card__read-more {
  font-size: .72rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: #C9A96E;
}
.dbg-post-card__read-more:hover { color: #E8C87A; }

/* ── Single post ─────────────────────────────────────────────── */
.dbg-single-hero {
  position: relative;
  background: #161616;
  padding: 6rem 5vw 4rem;
}
.dbg-single-hero__cats { display: flex; gap: .4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.dbg-single-hero__title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600; color: #F5F0E8; line-height: 1.1;
  max-width: 840px; margin-bottom: 1rem;
}
.dbg-single-hero__meta {
  font-size: .75rem; color: #6B6358; letter-spacing: .08em;
  display: flex; gap: 1.5rem; flex-wrap: wrap;
}
.dbg-single-hero__thumbnail {
  width: 100%; max-height: 520px; object-fit: cover;
  display: block; filter: brightness(.85);
}

/* ── Pagination ───────────────────────────────────────────────── */
.dbg-pagination {
  display: flex; justify-content: center; gap: .4rem;
  margin-top: 3rem; flex-wrap: wrap;
}
.dbg-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: #1e1e1e; border: 1px solid rgba(201,169,110,.15);
  color: #C8C0B2; font-size: .82rem; text-decoration: none;
  transition: all .2s;
}
.dbg-pagination .page-numbers:hover,
.dbg-pagination .page-numbers.current {
  background: #C9A96E; color: #000;
  border-color: #C9A96E;
}

/* ── Search form ─────────────────────────────────────────────── */
.dbg-search-form {
  display: flex; gap: 0; max-width: 520px; margin: 2rem 0;
}
.dbg-search-form input[type="search"] {
  flex: 1;
  background: #1e1e1e; border: 1px solid rgba(255,255,255,.08);
  color: #F5F0E8; padding: .8rem 1.2rem;
  font-family: 'Outfit', sans-serif; font-size: .88rem;
  outline: none;
  border-right: none;
}
.dbg-search-form button {
  background: #C9A96E; color: #000; border: none;
  padding: .8rem 1.4rem; cursor: pointer;
  font-family: 'Outfit', sans-serif; font-size: .75rem;
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s;
}
.dbg-search-form button:hover { background: #E8C87A; }

/* ── WooCommerce base overrides ───────────────────────────────── */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  background: #1e1e1e !important;
  border-top-color: #C9A96E !important;
  color: #C8C0B2 !important;
}
.dbg-price-hidden {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic; color: #C9A96E; font-size: .95rem;
  letter-spacing: .05em;
}

/* ── Skip link (accessibility) ────────────────────────────────── */
.skip-link {
  position: absolute; top: -100%; left: 0;
  background: #C9A96E; color: #000;
  padding: .5rem 1rem; z-index: 1000;
  font-size: .82rem; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── 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;
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dbg-posts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .dbg-posts-grid { grid-template-columns: 1fr; }
  .dbg-single-hero { padding: 4rem 5vw 2rem; }
}
