/*
Theme Name: Picks Curated Theme
Theme URI: https://pickcurated.com/
Author: Jean Baptiste A.
Author URI: https://pickcurated.com/
Description: A custom WordPress theme for curating top-reviewed products.
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: picks-curated-theme
Tags: custom, product, affiliate, responsive, blog
*/

/* --- Critical Base Styles (not handled by Tailwind) --- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* WordPress required classes */
.alignwide {
    width: 100vw;
    max-width: 1200px;
    margin-left: 50%;
    transform: translateX(-50%);
}

.alignfull {
    width: 100vw;
    margin-left: 50%;
    transform: translateX(-50%);
}

.wp-block-image figcaption {
    text-align: center;
    font-size: 0.875em;
    color: #666;
}

/* --- Accessibility --- */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

.screen-reader-text:focus {
    clip: auto;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
}

/* --- WordPress Content Styles (for backend editor) --- */
.entry-content > * {
    margin-bottom: 1.5em;
}

/* --- Responsive Embeds --- */
.wp-embed-responsive .wp-has-aspect-ratio {
    position: relative;
}

.wp-embed-responsive .wp-has-aspect-ratio:before {
    content: "";
    display: block;
    padding-top: 50%;
}

.wp-embed-responsive .wp-has-aspect-ratio iframe {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

/* --- Gallery Fixes --- */
.gallery {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -0.5em 1.5em;
}

.gallery-item {
    margin: 0.5em;
    flex-grow: 1;
}

/* --- Button Fix (for your specific request) --- */
.buy-now-button {
    background-color: var(--color-primary-blue);
    color: white !important;
}

.buy-now-button:hover {
    background-color: var(--color-secondary-blue);
    color: white !important;
}

/* --- Smooth Scrolling --- */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}