/*!
Theme Name: sinpagenew
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: sinpagenew
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

sinpagenew is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

 /* Modal orqa foni */
.custom-modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(4px);
}

/* Modal oynaning o'zi */
.custom-modal-content {
  background: #fff;
  width: 90%; 
  max-width: 56rem;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  animation: fadeIn 0.3s ease-in-out;
}

/* Yopish tugmasi */
.modal-close-btn {
  position: absolute;
  top: 15px; right: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: #fff; border: none;
  width: 32px; height: 32px;
  border-radius: 50%; font-size: 22px;
  cursor: pointer; z-index: 10;
  display: flex; align-items: center; justify-content: center;
}

/* Banner qismi */
.modal-header-banner img {
  width: 100%; height: 220px;
  object-fit: cover;
}

/* Modal ichki kontenti */
.modal-body-content {
  padding: 24px;
  max-height: 50vh; overflow-y: auto;
}
.modal-body-content h2 { margin: 0 0 8px 0; font-size: 24px; color: #111; }
.inline-tag { display: inline-block; margin-bottom: 15px; padding: 4px 12px; border-radius: 6px; font-size: 12px;}
.modal-description { color: #555; line-height: 1.6; font-size: 14px; margin-bottom: 20px; }

/* Galereya */
.modal-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 10px;
}
.modal-gallery img {
  width: 100%; height: 110px; object-fit: cover; border-radius: 12px;
}

/* Modal Pastki qismi (Fiksirlangan footer) */
.modal-footer-action {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px; border-top: 1px solid #eee; background: #fff;
}
.modal-price { font-size: 24px; font-weight: bold; color: #ff4500; }
.modal-price span { font-size: 14px; color: #777; font-weight: normal; }

.btn-submit-request {
  background: #ff5722; color: #fff;
  padding: 12px 28px; border-radius: 12px;
  text-decoration: none; font-weight: bold;
  font-size: 15px; transition: 0.2s;
}
.btn-submit-request:hover { background: #e64a19; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
/* Ikkinchi modal uchun qo'shimcha dizayn */
.form-modal {
  max-width: 650px !important; /* Forma kichikroq va ixcham bo'ladi */
  padding: 10px;
}
.text-center { text-align: center; }

.order-club-info {
  background: #f5f7fa;
  padding: 15px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-size: 15px;
  color: #333;
  line-height: 1.5;
}
.highlight-price {
  color: #ff4500;
  font-weight: bold;
}

/* Form elementlari */
.modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  color: #666;
  font-weight: 500;
}
.form-group input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 15px;
  outline: none;
  transition: 0.2s;
}
.form-group input:focus {
  border-color: #ff5722;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.1);
}

/* Yuborish tugmasi */
.btn-send-order {
  background: #ff5722;
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
  margin-top: 10px;
}
.btn-send-order:hover { background: #e64a19; }

/* Ikkinchi modal yopish tugmasi */
.order-modal-close-btn {
  position: absolute;
  top: 15px; right: 20px;
  background: none; color: #aaa; border: none;
  font-size: 28px; cursor: pointer;
}
.order-modal-close-btn:hover { color: #333; }

/* Sidebar drawerning asosiy foni va joylashuvi */
.club-sidebar-drawer {
    position: fixed;
    top: 0;
    left: -100%; /* Dastlab yashirin turadi */
    width: 80%;
    height: 100vh;
    background: #fff;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease-in-out;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Sidebar ochiq holati */
.club-sidebar-drawer.open {
    left: 0;
}

/* 1. HEADER (Logo + Yopish) */
.drawer-header {
    padding: 24px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #f0f0f0;
}

.logo-group {
    display: flex;
    flex-direction: column;
}

.main-logo {
    font-size: 20px;
    font-weight: 800;
    color: #4338CA; /* To'q ko'k */
    text-decoration: none;
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: #FF5722; /* To'q sariq */
}

.logo-sub-text {
    font-size: 11px;
    color: #8D99AE;
    margin: 4px 0 0 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.drawer-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    color: #B2BAC2;
    cursor: pointer;
    line-height: 1;
    margin-top: -5px;
}

/* 2. BODY KONTEYNERI */
.drawer-body {
    flex: 1;
    overflow-y: auto; /* Agar ko'p kategoriya bo'lsa, skroll bo'ladi */
    padding: 20px;
}

/* Umumiy bo'lim stillari */
.filter-section {
    margin-bottom: 30px;
}

.section-title {
    font-size: 11px;
    color: #B2BAC2;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

/* 3. KATEGORIYA MENYUSI */
.menu-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-radius: 12px;
    text-decoration: none;
    color: #333333;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
}

/* Faol kategoriya foni (Och sarg'ish) */
.menu-item.active {
    background-color: #FFF7EB;
    color: #FF5722;
}

/* Ikonkalar doirasi */
.icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    background-color: #EDF2F7;
    color: #8D99AE;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
}

/* Turli rangdagi ikonka doiralari */
.menu-item.active .icon-circle,
.icon-orange {
    color: #FF5722;
}

.icon-purple {
    color: #7E22CE;
}

.icon-blue {
    color: #1D4ED8;
}

/* 4. TIZIM DOSTUPA (RADIO TUGMALARI) */
.radio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-item {
    display: flex;
    align-items: center;
    color: #8D99AE;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.radio-item:hover,
.radio-item.active {
    color: #333;
}

/* Radio doira */
.radio-circle {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid #D1D5DB;
    background-color: #fff;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

/* Radio faol holati */
.radio-item.active .radio-circle {
    border-color: #FF5722;
}

/* Radio markazi (To'q sariq nuqta) */
.radio-item.active .radio-circle::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #FF5722;
    display: block;
}