/* 
 Theme Name:   Assets Collection
 Theme URI:    https://github.com/versluis/Assets-Collection
 Description:  starting point for my ever growing games collection
 Author:       Jay Versluis
 Author URI:   https://versluis.com
 Template:     generatepress
 Version:      1.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html

 CHANGELOG
 ==========

 v1.3 - June 2026
 * modernised code for PHP 8 compatibility
 * fixed fatal error: corrected mismatched function name in archive-queries.php
 * fixed undefined variable warnings in content-queries.php and shortcodes.php
 * fixed array access on possibly-false get_post_meta() return values
 * added isset() guards for $_POST access in custom-fields.php
 * added esc_attr() and esc_url_raw() sanitisation to meta field output and save
 * replaced date() with wp_date() in footer
 * added URL format validation to the Marketplace URL meta field (browser + server-side)

 v1.2.1 - June 2026
 * synced changes from several edits on the live site

 v1.2 - July 2021
 * added affiliate code to all DAZ links

 v1.1 - February 2021
 * consolidated page templates into shortcode queries
 * added random header images
 * refactored code queries
 * added separator to list queries to improve readability

 v1.0 - August 2020
 * based on my Games Collection
 * replaced Platform with Marketplace
 * replaced Games with Assets
 * added routine to grab and cahce web preview from asset URL

 /* == Add your own styles below this line ==
--------------------------------------------*/

#nav-below {
    display: none;
}

.search-submit {
    border-radius: 5px;
}

.button {
    border-radius: 5px;
    font-size: 1.5em;
    text-transform: uppercase;
}

.button.gradient,
.button.gradient:visited {
    border-radius: 5px; /*Adjust accordingly*/
    background: #0e103d;
    background: 1webkit-gradient(linear, left top, left bottom, color-stop(49%, #0e103d), to(#d3bcc0));
    background: linear-gradient(180deg, #0e103d 49%, #d3bcc0 100%);
    -webkit-transition: all 0.35s ease;
    transition: all 0.35s ease;
    background-repeat: repeat-y;
    background-size: 100% 90px;
    background-position: 0 -30px;
}
.button.gradient:hover,
.button.gradient:active {
    background-position: 0;
}

.button.gradient2,
.button.gradient2:visited {
    border-radius: 5px; /*Adjust accordingly*/
    background: rgb(255, 183, 65);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(49%, rgba(255, 183, 65, 1)), to(rgba(214, 38, 38, 1)));
    background: linear-gradient(180deg, rgba(255, 183, 65, 1) 49%, rgba(214, 38, 38, 1) 100%);
    -webkit-transition: all 0.35s ease;
    transition: all 0.35s ease;
    background-repeat: repeat-y;
    background-size: 100% 90px;
    background-position: 0 -30px;
}
.button.gradient2:hover,
.button.gradient2:active {
    background-position: 0;
}

.button.gradient3,
.button.gradient3:visited {
    border-radius: 5px; /*Adjust accordingly*/
    background: #441a33;
    background: -webkit-gradient(linear, left top, left bottom, color-stop(49%, #441a33), to(#5BB3A4));
    background: linear-gradient(180deg, #68a6a8 49%, #441a33 100%);
    -webkit-transition: all 0.35s ease;
    transition: all 0.35s ease;
    background-repeat: repeat-y;
    background-size: 100% 90px;
    background-position: 0 -30px;
}
.button.gradient3:hover,
.button.gradient3:active {
    background-position: 0;
}

/* less padding for this HR separator in lists */
.slimline {
    margin-top: 20px;
    margin-bottom: 20px;
}