/*
 * GS Salon - Content
 * Sections / Wysiwyg / Meta Chips / Content Blocks
 */

/* =========================
   Content Body / Sections
   ========================= */

.gs-content-body {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.gs-body-section {
    position: relative;
    padding: 28px 28px 30px;
    border-radius: var(--gs-radius-md);
    border: 1px solid rgba(184, 150, 92, 0.18);
    background:
        linear-gradient(180deg, rgba(255, 252, 247, 0.94) 0%, rgba(248, 241, 231, 0.90) 100%);
    box-shadow:
        0 10px 24px rgba(69, 50, 29, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    overflow: hidden;
    isolation: isolate;
}

.gs-body-section::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 18%, rgba(184, 150, 92, 0.10), transparent 16%),
        radial-gradient(circle at 88% 82%, rgba(184, 150, 92, 0.08), transparent 18%),
        linear-gradient(90deg, transparent 0%, rgba(184, 150, 92, 0.04) 50%, transparent 100%);
    z-index: 0;
}

.gs-body-section::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.30;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(184, 150, 92, 0.12) 1.2px, transparent 1.2px),
        radial-gradient(circle at 75% 75%, rgba(184, 150, 92, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 25% 75%, rgba(184, 150, 92, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 75% 25%, rgba(184, 150, 92, 0.06) 1px, transparent 1px);
    background-size: 28px 28px, 22px 22px, 34px 34px, 34px 34px;
    mix-blend-mode: multiply;
}

.gs-body-section > * {
    position: relative;
    z-index: 1;
}

/* =========================
   Titles / Headings
   ========================= */

.section-title {
    position: relative;
    margin: 0 0 22px;
    padding-bottom: 14px;
    font-size: 1.24rem;
    font-weight: 900;
    line-height: 1.5;
    color: var(--gs-primary);
    border-bottom: 1px solid rgba(184, 150, 92, 0.16);
}

.section-title::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -1px;
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--gs-accent-strong), #dbc089);
}

.gs-meta-title {
    position: relative;
    margin: 0 0 16px;
    padding-right: 14px;
    font-size: 0.96rem;
    font-weight: 800;
    line-height: 1.7;
    color: var(--gs-text-muted);
}

.gs-meta-title::before {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 14px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--gs-accent), var(--gs-accent-strong));
    box-shadow: 0 0 0 3px rgba(184, 150, 92, 0.08);
}

/* =========================
   Text / Paragraphs
   ========================= */

.section-text,
.section-text p {
    color: var(--gs-text-main);
    font-size: 1rem;
    line-height: 2.05;
}

.section-text > *:first-child {
    margin-top: 0;
}

.section-text > *:last-child {
    margin-bottom: 0;
}

.section-text p {
    margin: 0 0 1.15rem;
}

.section-text h1,
.section-text h2,
.section-text h3,
.section-text h4,
.section-text h5,
.section-text h6 {
    margin: 1.4em 0 0.7em;
    line-height: 1.6;
    color: var(--gs-primary);
    font-weight: 800;
}

.section-text h1 { font-size: 1.7rem; }
.section-text h2 { font-size: 1.45rem; }
.section-text h3 { font-size: 1.22rem; }
.section-text h4 { font-size: 1.08rem; }
.section-text h5,
.section-text h6 { font-size: 1rem; }

.section-text small {
    color: var(--gs-text-soft);
}

.section-text strong,
.section-text b {
    color: var(--gs-primary);
    font-weight: 800;
}

.section-text em,
.section-text i {
    font-style: italic;
}

.section-text mark {
    padding: 0.08em 0.35em;
    border-radius: 8px;
    background: rgba(184, 150, 92, 0.18);
    color: var(--gs-primary);
}

.section-text hr {
    margin: 1.6rem 0;
    border: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(184, 150, 92, 0.18) 20%,
        rgba(184, 150, 92, 0.28) 50%,
        rgba(184, 150, 92, 0.18) 80%,
        transparent 100%
    );
}

/* =========================
   WYSIWYG
   ========================= */

.section-wysiwyg {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.section-wysiwyg .aligncenter,
.section-wysiwyg img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

.section-wysiwyg .alignleft {
    float: left;
    margin: 0 0 1rem 1rem;
}

.section-wysiwyg .alignright {
    float: right;
    margin: 0 1rem 1rem 0;
}

.section-wysiwyg::after {
    content: "";
    display: block;
    clear: both;
}

.section-wysiwyg ul,
.section-wysiwyg ol {
    margin: 0 0 1.2rem;
    padding-right: 1.35rem;
}

.section-wysiwyg ul {
    list-style: disc;
}

.section-wysiwyg ol {
    list-style: decimal;
}

.section-wysiwyg li {
    margin-bottom: 0.45rem;
    line-height: 2;
    color: var(--gs-text-main);
}

.section-wysiwyg li > ul,
.section-wysiwyg li > ol {
    margin-top: 0.45rem;
    margin-bottom: 0.45rem;
}

.section-wysiwyg a {
    color: var(--gs-accent-strong);
    text-decoration: none;
    border-bottom: 1px dashed rgba(184, 150, 92, 0.45);
    transition: color var(--gs-transition), border-color var(--gs-transition);
}

.section-wysiwyg a:hover {
    color: var(--gs-primary);
    border-bottom-color: rgba(31, 26, 23, 0.35);
}

.section-wysiwyg strong {
    color: var(--gs-primary);
    font-weight: 800;
}

.section-wysiwyg blockquote {
    position: relative;
    margin: 1.3rem 0;
    padding: 16px 18px 16px 18px;
    border-right: 4px solid rgba(184, 150, 92, 0.45);
    border-radius: 16px;
    background: rgba(255, 248, 239, 0.72);
    color: var(--gs-text-main);
}

.section-wysiwyg blockquote p:last-child {
    margin-bottom: 0;
}

.section-wysiwyg code {
    display: inline-block;
    padding: 0.18em 0.48em;
    border-radius: 8px;
    background: rgba(45, 36, 29, 0.08);
    color: var(--gs-primary);
    font-size: 0.92em;
    direction: ltr;
}

.section-wysiwyg pre {
    margin: 1.3rem 0;
    padding: 16px 18px;
    border-radius: 16px;
    overflow: auto;
    background: #2b241f;
    color: #f8f2ea;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    direction: ltr;
    text-align: left;
}

.section-wysiwyg pre code {
    display: block;
    padding: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
    font-size: 0.92rem;
    line-height: 1.9;
}

.section-wysiwyg table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    overflow: hidden;
    border-radius: 16px;
    background: rgba(255, 252, 247, 0.78);
    border: 1px solid rgba(184, 150, 92, 0.16);
}

.section-wysiwyg th,
.section-wysiwyg td {
    padding: 12px 14px;
    text-align: right;
    vertical-align: top;
    border-bottom: 1px solid rgba(184, 150, 92, 0.12);
}

.section-wysiwyg th {
    color: var(--gs-primary);
    font-weight: 800;
    background: rgba(184, 150, 92, 0.08);
}

.section-wysiwyg tr:last-child td {
    border-bottom: none;
}

.section-wysiwyg img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
}

.section-wysiwyg figure {
    margin: 1.4rem 0;
}

.section-wysiwyg figcaption {
    margin-top: 0.7rem;
    color: var(--gs-text-soft);
    font-size: 0.88rem;
    text-align: center;
}

.section-wysiwyg iframe,
.section-wysiwyg video {
    width: 100%;
    max-width: 100%;
    border: 0;
    border-radius: 18px;
    overflow: hidden;
}

.section-wysiwyg .wp-block-embed,
.section-wysiwyg .wp-block-video,
.section-wysiwyg .wp-block-image,
.section-wysiwyg .wp-block-gallery {
    margin: 1.4rem 0;
}

/* =========================
   Meta Groups
   ========================= */

.gs-meta-group {
    margin-bottom: 26px;
}

.gs-meta-group:last-child {
    margin-bottom: 0;
}

/* =========================
   Chips / Taxonomy Items
   ========================= */

.services-pro .salon-taxonomy-list,
.types-pro .salon-taxonomy-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.services-pro .salon-tax-item,
.types-pro .salon-tax-item {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 40px;
    padding: 9px 16px;
    border-radius: 999px;
    text-decoration: none;
    border: 1px solid rgba(184, 150, 92, 0.18);
    background: rgba(255, 252, 247, 0.94);
    color: var(--gs-primary-soft);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.6;
    transition: all var(--gs-transition);
    box-shadow: 0 4px 12px rgba(69, 50, 29, 0.04);
}

.services-pro .salon-tax-item::before,
.types-pro .salon-tax-item::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--gs-accent), var(--gs-accent-strong));
    box-shadow: 0 0 0 4px rgba(184, 150, 92, 0.08);
}

.services-pro .salon-tax-item:hover,
.types-pro .salon-tax-item:hover {
    transform: translateY(-2px);
    color: var(--gs-primary);
    border-color: rgba(184, 150, 92, 0.32);
    background: rgba(255, 250, 242, 0.98);
    box-shadow: 0 10px 20px rgba(69, 50, 29, 0.08);
}

/* =========================
   Optional Content Cards
   ========================= */

.gs-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.gs-info-card {
    padding: 18px 18px 16px;
    border-radius: 18px;
    border: 1px solid rgba(184, 150, 92, 0.16);
    background: rgba(255, 252, 247, 0.82);
    box-shadow: 0 6px 16px rgba(69, 50, 29, 0.04);
}

.gs-info-card-title {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--gs-primary);
}

.gs-info-card-text {
    margin: 0;
    font-size: 0.94rem;
    line-height: 1.95;
    color: var(--gs-text-muted);
}

/* =========================
   Gallery in Content
   ========================= */

.gs-content-body .gs-highlight-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding: 4px 0 0;
}

.gs-content-body .gs-highlight-item {
    width: 92px;
    text-align: center;
    text-decoration: none;
}

.gs-content-body .highlight-circle {
    width: 82px;
    height: 82px;
    margin: 0 auto 10px;
    border-radius: 50%;
    padding: 3px;
    border: 2px solid rgba(184, 150, 92, 0.88);
    background: rgba(255, 252, 247, 0.84);
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(69, 50, 29, 0.06);
    transition:
        transform var(--gs-transition),
        border-color var(--gs-transition),
        box-shadow var(--gs-transition);
}

.gs-content-body .highlight-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.gs-content-body .gs-highlight-item:hover .highlight-circle {
    transform: translateY(-3px) scale(1.04);
    border-color: var(--gs-accent-strong);
    box-shadow: 0 14px 24px rgba(69, 50, 29, 0.10);
}

.gs-content-body .highlight-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gs-text-muted);
}

/* =========================
   Empty / Safe States
   ========================= */

.gs-empty-note {
    margin: 0;
    color: var(--gs-text-soft);
    font-size: 0.95rem;
    line-height: 1.9;
}

.gs-muted {
    color: var(--gs-text-soft);
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 1180px) {
    .gs-body-section {
        padding: 24px 24px 26px;
    }
}

@media (max-width: 992px) {
    .gs-content-body {
        gap: 18px;
    }

    .gs-body-section {
        padding: 22px 22px 24px;
    }

    .section-title {
        font-size: 1.16rem;
        margin-bottom: 18px;
        padding-bottom: 12px;
    }

    .gs-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .gs-content-body {
        gap: 16px;
    }

    .gs-body-section {
        padding: 18px 16px 20px;
        border-radius: 20px;
    }

    .section-title {
        font-size: 1.08rem;
        margin-bottom: 16px;
    }

    .section-title::after {
        width: 58px;
    }

    .section-text,
    .section-text p {
        font-size: 0.96rem;
        line-height: 1.95;
    }

    .services-pro .salon-taxonomy-list,
    .types-pro .salon-taxonomy-list {
        gap: 10px;
    }

    .services-pro .salon-tax-item,
    .types-pro .salon-tax-item {
        min-height: 38px;
        padding: 8px 14px;
        font-size: 0.88rem;
    }

    .gs-content-body .gs-highlight-grid {
        gap: 14px;
        justify-content: center;
    }

    .gs-content-body .gs-highlight-item {
        width: 84px;
    }

    .gs-content-body .highlight-circle {
        width: 74px;
        height: 74px;
        margin-bottom: 8px;
    }

    .section-wysiwyg table,
    .section-wysiwyg thead,
    .section-wysiwyg tbody,
    .section-wysiwyg tr,
    .section-wysiwyg th,
    .section-wysiwyg td {
        display: block;
    }

    .section-wysiwyg table {
        border-radius: 14px;
    }

    .section-wysiwyg thead {
        display: none;
    }

    .section-wysiwyg tr {
        padding: 10px 0;
        border-bottom: 1px solid rgba(184, 150, 92, 0.12);
    }

    .section-wysiwyg tr:last-child {
        border-bottom: none;
    }

    .section-wysiwyg td {
        padding: 8px 0;
        border: none;
        text-align: right;
    }

    .section-wysiwyg .alignleft,
    .section-wysiwyg .alignright {
        float: none;
        margin: 1rem 0;
    }
}

@media (max-width: 520px) {
    .gs-body-section {
        padding: 16px 14px 18px;
    }

    .section-title {
        font-size: 1rem;
    }

    .gs-meta-title {
        font-size: 0.92rem;
    }

    .section-text,
    .section-text p {
        font-size: 0.93rem;
    }

    .services-pro .salon-tax-item,
    .types-pro .salon-tax-item {
        width: 100%;
        justify-content: flex-start;
        border-radius: 16px;
    }

    .services-pro .salon-taxonomy-list,
    .types-pro .salon-taxonomy-list {
        flex-direction: column;
        align-items: stretch;
    }
}
