/*
Theme Name: RigBay
Theme URI: https://rigbay.pl
Author: RigBay
Description: The Marketplace for Entertainment Hoists
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: rigbay
*/

/* =============================================
   GOOGLE FONTS
   ============================================= */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --navy:   #2D3142;
  --orange: #E8470A;
  --white:  #FFFFFF;
  --light:  #F5F5F5;
  --gray:   #CCCCCC;
  --text:   #333333;
  --font-heading: 'Bebas Neue', sans-serif;
  --font-body:    'Lato', 'Helvetica Neue', sans-serif;
  --banner-h:     90px;
  --banner-side-w: 160px;
  --radius: 4px;
}

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--light);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--navy);
  letter-spacing: 0.03em;
}

/* =============================================
   TOP BAR (login / contact links)
   ============================================= */
.topbar {
  background: var(--navy);
  color: var(--white);
  padding: 6px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 20px;
  font-size: 0.85rem;
}

.topbar a {
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.topbar a:hover { color: var(--orange); text-decoration: none; }

.topbar .sep { color: var(--gray); }

/* =============================================
   BANER TOP
   ============================================= */
.baner-top {
  width: 100%;
  height: var(--banner-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.baner-top img { max-height: var(--banner-h); width: 100%; object-fit: cover; }
.baner-top .placeholder {
  color: rgba(255,255,255,0.3);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

/* =============================================
   MAIN LAYOUT (side banners + content)
   ============================================= */
.site-main-wrapper {
  display: flex;
  flex: 1;
  min-height: 0;
}

.baner-left,
.baner-right {
  width: var(--banner-side-w);
  min-width: var(--banner-side-w);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.baner-left .placeholder,
.baner-right .placeholder {
  color: rgba(255,255,255,0.3);
  font-family: var(--font-heading);
  font-size: 1rem;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.site-content {
  flex: 1;
  min-width: 0;
  background: var(--white);
  padding: 40px 30px;
}

/* =============================================
   BANER BOTTOM
   ============================================= */
.baner-bottom {
  width: 100%;
  height: var(--banner-h);
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.baner-bottom .placeholder {
  color: rgba(255,255,255,0.3);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
}

/* =============================================
   SEARCH FORM (strona główna)
   ============================================= */
.search-form-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.search-form-wrap h1 {
  font-size: 2.2rem;
  color: var(--navy);
  margin-bottom: 24px;
  text-align: center;
}

.form-section {
  margin-bottom: 24px;
}

.form-section-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--orange);
  display: inline-block;
}

.form-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 180px;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--navy);
  margin-bottom: 5px;
}

.form-group label .req {
  color: var(--orange);
  font-size: 0.7rem;
  margin-left: 4px;
}

.form-group select,
.form-group input[type="text"],
.form-group input[type="number"] {
  padding: 10px 12px;
  border: 1px solid var(--gray);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232D3142' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color 0.2s;
}

.form-group input[type="text"],
.form-group input[type="number"] {
  background-image: none;
}

.form-group select:focus,
.form-group input:focus {
  outline: none;
  border-color: var(--orange);
}

.form-group select.error,
.form-group input.error {
  border-color: #e53e3e;
}

.error-msg {
  color: #e53e3e;
  font-size: 0.75rem;
  margin-top: 3px;
  display: none;
}

/* Checkboxy */
.checkbox-group {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.checkbox-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.checkbox-item span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--navy);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.checkbox-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: var(--orange);
}

/* Przycisk szukaj */
.btn-search {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: 32px auto 0;
  padding: 14px 20px;
  background: var(--orange);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.3rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  text-align: center;
}

.btn-search:hover { background: #c93d08; }
.btn-search:active { transform: scale(0.98); }

/* =============================================
   STRONA LOGOWANIA
   ============================================= */
.login-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 0;
}

.login-wrap h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 32px;
}

.login-wrap .form-group {
  margin-bottom: 16px;
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.2s;
}

.btn-primary:hover { background: var(--orange); }

.login-links {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.login-links a {
  color: var(--navy);
  font-size: 0.9rem;
}

.login-links a:hover { color: var(--orange); }

/* =============================================
   STRONA REJESTRACJI
   ============================================= */
.register-wrap {
  max-width: 600px;
  margin: 0 auto;
}

.register-wrap h1 {
  font-size: 2rem;
  margin-bottom: 28px;
}

.register-wrap .form-group {
  margin-bottom: 14px;
}

.register-wrap .form-group input,
.register-wrap .form-group select {
  width: 100%;
}

.section-label {
  font-family: var(--font-heading);
  font-size: 1rem;
  color: var(--navy);
  letter-spacing: 0.08em;
  margin: 20px 0 12px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--orange);
}

.optional-section {
  background: var(--light);
  border: 1px dashed var(--gray);
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 0;
}

.optional-section .section-label {
  margin-top: 0;
  font-size: 0.95rem;
}

.checkbox-tos {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
}

.checkbox-tos input { margin-top: 3px; accent-color: var(--orange); }
.checkbox-tos label { font-size: 0.9rem; line-height: 1.4; }
.checkbox-tos a { color: var(--orange); }

/* =============================================
   STRONA NIE PAMIĘTAM HASŁA
   ============================================= */
.forgot-wrap {
  max-width: 420px;
  margin: 0 auto;
  padding: 20px 0;
}

.forgot-wrap h1 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 12px;
}

.forgot-wrap p {
  text-align: center;
  color: #666;
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.5;
}

/* =============================================
   KOMUNIKATY SYSTEMOWE
   ============================================= */
.notice {
  padding: 14px 18px;
  border-radius: var(--radius);
  margin-bottom: 20px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.notice-success { background: #f0fff4; border-left: 4px solid #38a169; color: #276749; }
.notice-error   { background: #fff5f5; border-left: 4px solid #e53e3e; color: #c53030; }
.notice-info    { background: #ebf8ff; border-left: 4px solid #3182ce; color: #2b6cb0; }

/* =============================================
   RESPONSYWNOŚĆ
   ============================================= */
@media (max-width: 768px) {
  :root { --banner-side-w: 50px; --banner-h: 60px; }
  .baner-left .placeholder, .baner-right .placeholder { font-size: 0.7rem; }
  .site-content { padding: 20px 14px; }
  .form-row { flex-direction: column; gap: 0; }
  .checkbox-group { gap: 16px; }
}

@media (max-width: 480px) {
  .baner-left, .baner-right { display: none; }
}
