﻿/* ============================================================
   FILE 7: 07-wordpress-customizer.css
   WordPress Customizer Settings
   Project: Gentlwish.com — Taoist Talismans & Spiritual Wellness
   ============================================================ */

/* ========================================
   HOW TO USE THIS FILE:
   Paste these settings into your theme's Additional CSS
   panel (Appearance > Customize > Additional CSS),
   OR add them to your child theme's style.css.
   ======================================== */

/* ========================================
   GOOGLE FONTS — ENQUEUE IN functions.php
   ======================================== */

/*
  Add this to your child theme's functions.php:

  function gentlwish_enqueue_google_fonts() {
    wp_enqueue_style(
      "gentlwish-google-fonts",
      "https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500&display=swap",
      array(),
      null
    );
  }
  add_action("wp_enqueue_scripts", "gentlwish_google_fonts");
*/

/* ========================================
   CUSTOMIZER SETTINGS — HEADER
   ======================================== */

/* 
  WordPress Customizer > Header Settings:
  - Header Background: #F8F5F0
  - Sticky Header: Enabled
  - Header Border Bottom: 1px solid #E6E0D6

  If your theme supports Customizer header options:
*/

.site-header,
.main-header,
.header-wrapper {
  background: var(--header-bg) !important;
  border-bottom: var(--header-border) !important;
}

/* Sticky Header */
.sticky-header,
.header-sticky,
.admin-bar .sticky-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* ========================================
   CUSTOMIZER SETTINGS — MENU
   ======================================== */

.main-navigation a,
.nav-menu a,
.primary-menu a {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: var(--font-weight-body-500);
  color: var(--header-menu-color) !important;
  text-decoration: none;
  padding: 12px 16px;
  transition: color var(--transition-fast);
}

.main-navigation a:hover,
.nav-menu a:hover,
.primary-menu a:hover {
  color: var(--header-menu-hover) !important;
}

/* ========================================
   CUSTOMIZER SETTINGS — SITE WIDTH
   ======================================== */

/*
  WordPress Customizer > Layout:
  - Content Width: 1200px
*/

.page-wrapper,
.site-content,
.container,
.content-area {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--content-padding);
}

/* Full-width elements inside containers */
.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

.alignwide {
  margin-left: calc(50% - 45vw);
  margin-right: calc(50% - 45vw);
  max-width: 90vw;
}

/* ========================================
   CUSTOMIZER SETTINGS — TYPOGRAPHY
   ======================================== */

body,
p,
li,
.entry-content,
.site-content {
  font-family: var(--font-body);
  font-weight: var(--font-weight-body-400);
  font-size: 16px;
  line-height: var(--line-height-body);
  color: var(--color-text);
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.page-title,
.widget-title {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading-600);
  color: var(--color-text);
  line-height: var(--line-height-heading);
}

h1, .entry-title {
  font-size: 42px;
  font-weight: var(--font-weight-heading-700);
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

/* ========================================
   CUSTOMIZER SETTINGS — BACKGROUND
   ======================================== */

/*
  WordPress Customizer > Colors:
  - Background Color: #F8F5F0
  - Text Color: #2C2C2C
*/

body,
.site,
.site-wrapper {
  background: var(--color-bg) !important;
  color: var(--color-text);
}

/* Content cards and containers should use white */
.entry-content,
.site-main,
.content-area {
  background: transparent;
}

/* ========================================
   CUSTOMIZER SETTINGS — BUTTONS (Global)
   ======================================== */

button,
.button,
input[type="submit"],
.wp-block-button__link {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: var(--font-weight-body-500);
  padding: var(--btn-primary-padding);
  border-radius: var(--btn-primary-radius);
  transition: all var(--transition-fast);
  cursor: pointer;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
}

/* Primary Button Style */
button:not(.secondary):not(.wp-block-button__link--secondary),
.button,
input[type="submit"],
.wp-block-button__link:not(.is-style-outline) {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
}

button:not(.secondary):not(.wp-block-button__link--secondary):hover,
.button:hover,
input[type="submit"]:hover,
.wp-block-button__link:not(.is-style-outline):hover {
  background: var(--btn-primary-hover-bg);
  color: var(--btn-primary-text);
  transform: translateY(-1px);
}

/* Outline / Secondary Button */
.is-style-outline .wp-block-button__link,
.wp-block-button__link.is-style-outline {
  background: transparent;
  color: var(--btn-secondary-text);
  border: var(--btn-secondary-border);
}

.is-style-outline .wp-block-button__link:hover,
.wp-block-button__link.is-style-outline:hover {
  background: var(--btn-secondary-hover-bg);
  color: var(--btn-secondary-hover-text);
}

/* ========================================
   SEARCH FORM
   ======================================== */

.search-form input[type="search"],
.woocommerce-product-search input[type="search"] {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg-card);
  transition: border-color var(--transition-fast);
}

.search-form input[type="search"]:focus,
.woocommerce-product-search input[type="search"]:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-light);
  outline: none;
}

.search-form button,
.woocommerce-product-search button {
  padding: 12px 24px;
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-form button:hover,
.woocommerce-product-search button:hover {
  background: var(--btn-primary-hover-bg);
}

/* ========================================
   SIDEBAR
   ======================================== */

.widget-area .widget {
  margin-bottom: 32px;
  padding: 24px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}

.widget-area .widget-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: var(--font-weight-heading-600);
  color: var(--color-text);
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border-light);
}

/* ========================================
   COMMENTS
   ======================================== */

.comment-list {
  list-style: none;
  padding: 0;
}

.comment-list .comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border-light);
}

.comment-list .comment .comment-author {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: var(--font-weight-heading-600);
}

.comment-list .comment .comment-metadata {
  font-size: 13px;
  color: var(--color-text-muted);
}

.comment-list .comment .comment-content {
  font-size: 15px;
  line-height: var(--line-height-body);
  color: var(--color-text-light);
}

.comment-respond .comment-reply-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: var(--font-weight-heading-600);
}

.comment-respond input,
.comment-respond textarea {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: var(--color-bg-card);
}

.comment-respond input:focus,
.comment-respond textarea:focus {
  border-color: var(--color-primary);
  outline: none;
}

.comment-respond .submit {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  padding: 14px 32px;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.comment-respond .submit:hover {
  background: var(--btn-primary-hover-bg);
}
