/**
 * Hello Elementor Child Theme Custom Styles
 *
 * @package HelloElementorChild
 * @file    wordpress/wp-content/themes/hello-elementor-child/assets/css/custom.css
 * @version 1.0.1
 * @since   2025-08-03
 * @author  Tomas Burda
 * @description Custom styles for the product recommendation site, implementing 2025 design trends.
 * @last_modified 2025-08-03
 */

/* Define Variables */
:root {
    --inchworm: #B1FA63; /* Accents */
    --bright-snow: #FFFFFF; /* Backgrounds */
    --gunmetal: #243837; /* Text, headings */
    --orange: #FE7733; /* CTAs */
    --american-silver: #D1D1D1; /* Borders */
    --pale-violet: #B2A1FF; /* Premium highlights */
    --font-body: 'Inter', sans-serif;
    --font-heading: 'Breve Display', sans-serif;
    --transition: 0.3s ease;
}

/* Global Styles */
body {
    background-color: var(--bright-snow);
    color: var(--gunmetal);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--gunmetal);
    font-weight: bold;
}

a {
    color: var(--pale-violet);
    transition: var(--transition);
}

a:hover, a:focus {
    color: var(--orange);
    cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="12" fill="%23FE7733"/></svg>'), auto;
    outline: 2px solid var(--orange);
}

/* Dark Mode */
.dark-mode body {
    background-color: var(--gunmetal);
    color: var(--bright-snow);
}

.dark-mode h1, .dark-mode h2, .dark-mode h3,
.dark-mode h4, .dark-mode h5, .dark-mode h6 {
    color: var(--bright-snow);
}

.dark-mode a {
    color: var(--inchworm);
}

/* Dark Mode Toggle */
#dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--american-silver);
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 1000;
}

#dark-mode-toggle:hover, #dark-mode-toggle:focus {
    background: var(--orange);
    outline: 2px solid var(--pale-violet);
}

/* Product Card */
.product-card {
    background: rgba(255, 255, 255, 0.8); /* Glassmorphism */
    border: 1px solid var(--american-silver);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    transition: transform var(--transition), box-shadow var(--transition);
    overflow: hidden;
}

.product-card:hover, .product-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 8px 40px rgba(178, 161, 255, 0.2); /* Pale Violet glow */
}

.product-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-image, .product-card:focus-within .product-image {
    transform: scale(1.05);
}

.product-claim {
    font-size: 1.5em;
    color: var(--orange);
    font-weight: bold;
    margin: 10px 0;
}

.product-desc {
    font-size: 1em;
    color: var(--gunmetal);
}

.pros-cons {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.pros-cons ul {
    list-style: none;
    padding: 0;
}

.pros-cons li {
    padding: 5px 0;
    border-bottom: 1px solid var(--american-silver);
}

.cta-button {
    background: var(--orange);
    color: var(--bright-snow);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    margin-top: 15px;
    transition: background var(--transition);
}

.cta-button:hover, .cta-button:focus {
    background: var(--pale-violet);
    outline: 2px solid var(--inchworm);
}

/* Parallax Header */
.parallax-header {
    background-attachment: fixed;
    background-size: cover;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--bright-snow);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Widget Creator Integration */
.wce-single-box, .wce-split-box {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: transform var(--transition);
}

.wce-single-box:hover, .wce-split-box:hover,
.wce-single-box:focus-within, .wce-split-box:focus-within {
    transform: translateY(-3px);
}

.wce-field label {
    font-family: var(--font-heading);
    color: var(--gunmetal);
    font-weight: bold;
    margin-bottom: 5px;
    display: block;
}

.wce-cta {
    background: var(--orange);
    color: var(--bright-snow);
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition);
}

.wce-cta:hover, .wce-cta:focus {
    background: var(--pale-violet);
    outline: 2px solid var(--inchworm);
}

/* Navigation Accessibility */
.site-navigation ul.menu li a {
    transition: background var(--transition);
}

.site-navigation ul.menu li a:hover,
.site-navigation ul.menu li a:focus {
    background: var(--inchworm);
    color: var(--gunmetal);
    outline: 2px solid var(--orange);
}

/* Responsive Adjustments */
@media (max-width: 767px) {
    .wce-split-box .flex {
        flex-direction: column;
    }
    .wce-column {
        width: 100% !important;
        padding: 0 !important;
    }
}