/*
Theme Name: hyundai-realviews
Template:   twentytwentyfive
Author: Buro N11
Author URI: http://www.n11.nl
Description: Thema voor Hyundai Realviews
Version: 1.0.3
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

/* Font Faces */
@font-face {
    font-family: 'HyundaiSansHead';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansHead-Bold.woff2) format('woff2'),
    url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansHead-Bold.woff) format('woff');
    font-named-instance: 'Bold';
}

@font-face {
    font-family: 'HyundaiSansHead';
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansHead-Light.woff2) format('woff2'),
    url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansHead-Light.woff) format('woff');
    font-named-instance: 'Light';
}

@font-face {
    font-family: 'HyundaiSansHead';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansHead-Medium.woff2) format('woff2'),
    url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansHead-Medium.woff) format('woff');
    font-named-instance: 'Medium';
}

@font-face {
    font-family: 'HyundaiSansHead';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansHead-Regular.woff2) format('woff2'),
    url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansHead-Regular.woff) format('woff');
    font-named-instance: 'Regular';
}

@font-face {
    font-family: 'HyundaiSansText';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansText-Bold.woff2) format('woff2'),
    url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansText-Bold.woff) format('woff');
    font-named-instance: 'Bold';
}

@font-face {
    font-family: 'HyundaiSansText';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansText-Medium.woff2) format('woff2'),
    url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansText-Medium.woff) format('woff');
    font-named-instance: 'Medium';
}

@font-face {
    font-family: 'HyundaiSansText';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansText-Regular.woff2) format('woff2'),
    url(/wp-content/themes/hyundai-realviews/fonts/Hyundai/HyundaiSansText-Regular.woff) format('woff');
    font-named-instance: 'Regular';
}

/* CSS Custom Properties */
:root {
    --wp--style--global--content-size: 1200px;
    --color-text: #1c1b1b;
    --color-gray: #757575;
    --color-link: #002C5F;
    --font-family-head: 'HyundaiSansHead', sans-serif;
    --font-family-text: 'HyundaiSansText', sans-serif;
    --transition: all 0.15s ease-in-out;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
    line-height: 1.4;
    font-family: var(--font-family-text), serif;
    color: var(--color-text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family-text), serif;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--color-text);
    margin: 0;
    padding-bottom: 100px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-head), serif;
    font-weight: 500;
    margin: 2rem 0 0;
}

h2 {
    font-weight: 700;
    font-size: 2.125rem;
    line-height: 2.625rem;
}

h3 {
    font-size: 1.375rem;
    line-height: 1.625rem;
}

/* Links & Buttons */
a, input[type=submit], button {
    transition: var(--transition);
}

/* Forms */
body.home .gform-theme--foundation .gform_fields {
    row-gap: 0.5rem;

    @media screen and (min-width: 620px) {
        row-gap: 1.25rem;
    }
}

body.home .gform-theme--foundation .gfield.gfield--type-textarea {
    margin-top: 2rem;
}

body.home .gform_heading {
    margin-bottom: 2rem;
}

body.home .gform_heading .gform_title {
    margin: 0;
}

body.home .gform_heading .gform_description {
    margin-block: 5px 20px;
}

body.home .gform_heading .gform_required_legend {
    display: none;
}

.gfield_description a {
    text-decoration: underline;
}

.gfield_description strong {
    font-weight: bold;
}

.gfield_radio .gchoice {
    cursor: pointer;
}

label.gfield_label {
    margin-bottom: 0;
}

/* Star Rating Styles */
.star-rating {
    position: relative;
    font-size: 1.25rem;
    display: inline-block;
    width: auto;
    line-height: 1;
    color: transparent;
}

.overall-rating.star-rating {
    font-size: 1.5rem;
}

.star-rating::before {
    content: '★★★★★';
    position: absolute;
    color: rgba(0, 0, 0, 0.4);
    background: linear-gradient(90deg, gold var(--percent, 0%), rgba(0, 0, 0, 0.4) var(--percent, 0%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.overall-rating::before {
    content: '★★★★★';
    position: absolute;
    color: rgba(0, 44, 95, 0.4);
    background: linear-gradient(90deg, var(--color-link) var(--percent, 0%), rgba(0, 44, 95, 0.4) var(--percent, 0%));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Review Layout */
.review-wrapper {
    display: flex;
    gap: 6rem;
    max-width: 1200px;
    margin: 0 auto;

    flex-direction: column;
}

.gform-entry {
    padding: 1.6rem 0;
    border-bottom: 1px solid #d9d9d9;
}

.gform-entry-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
}

.gform-entry-header .title {
    margin: 0;
}

.gform-entry-header .date {
    font-size: 0.875rem;
    color: var(--color-gray);
}

.gform-entry-body .message {
    padding-top: 0.65rem;
    margin: 0;
}

.review-sidebar {
    text-align: center;
    padding: 10px 10px 40px;
    background: #F5F5F5;
}

.review-number {
    font-size: 3.2rem;
    line-height: 4rem;
    margin: 1rem 0;
    font-weight: 300;
    color: #333;
}

.review-text {
    display: block;
    margin-top: 0.25rem;
    color: var(--color-gray);
}

/* Pagination */
.gform-pagination {
    margin: 30px 0;
    text-align: center;
}

.gform-pagination .nav-links {
    display: inline-block;
}

.page-numbers {
    padding: 5px 10px;
    margin: 0 3px;
    border: 1px solid var(--color-gray);
    color: #333;
    text-decoration: none;
    border-radius: 3px;
}

.page-numbers.current {
    background-color: var(--color-link);
    color: white;
    border-color: var(--color-link);
}

.page-numbers:hover:not(.current) {
    background-color: #f5f5f5;
}

/* Media Queries */
@media screen and (min-width: 620px) {
    body.home .gfield.gfield--type-startrating {
        display: flex;
        gap: 2.25rem;
        align-items: center;
        justify-content: space-between;
        max-width: 600px;
    }

    /* Review Layout */
    .review-wrapper {
        flex-direction: row;
    }

    .gform-entries-container {
         width: 70%;
    }

    /* Sidebar */
    .review-sidebar-wrapper {
        width: 30%;
    }
}