/*
Theme Name: Inkspiration
Theme URI: https://inkspiration.com/
Author: Inkspiration
Author URI: https://inkspiration.com/
Description: Inkspiration is a theme for the Inkspiration website
Requires at least: 6.7
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inkspiration
*/

/* based in magicom */
:root {
	--dark-bg: #181818;
	--accent-color: #c59b68;
	--gray-color: #999999;
	--secondary-dark-color: #202020;
	--font-1: "Lato", sans-serif;
	--font-2: "Old Standard TT", serif;
	--font-3: "Playfair Display", serif;
}

body {
	background-color: var(--dark-bg);
}

h1 {
	font-size: 100px;
}

h2 {
	font-size: 72px;
}

h3 {
	font-size: 50px;
}

h4 {
	font-size: 32px;
}

h5 {
	font-size: 24px;
}

h6 {
	font-size: 18px;
}

ul {
	list-style: none;
}

img {
	object-fit: cover;
}

button,
a[type="button"] {
	padding-inline: 2rem;
	padding-block: 0.7rem;
	border: 2px solid var(--accent-color);
	text-decoration: none;
	border-radius: 25px;
	transition: all 0.5s;
}

a:hover {
	color: var(--accent-color);
}

a {
	text-decoration: none;
}

.form input,
.form textarea {
	background-color: #2f2f2f;
	color: white;
	border: none;
}

.form input:focus,
.form textarea:focus {
	background-color: #2f2f2f;
	color: white;
	border: none;
	box-shadow: none;
}

.nav-link:focus {
	color: var(--gray-color) !important;
}

.section {
	padding: 5em 1em 10em 1em;
	background-size: cover;
	background-position: center;
}

.r-container {
	max-width: 1140px;
	margin-right: auto;
	margin-left: auto;
}

.bg-accent-color {
	background-color: var(--accent-color);
}

.accent-color {
	color: var(--accent-color);
}

.border-accent-color {
	border-color: var(--accent-color);
}

.bg-dark-color {
	background-color: var(--dark-bg);
}

.bg-secondary-dark {
	background-color: var(--secondary-dark-color);
}

.bg-secondary-gray {
	background-color: #2f2f2f;
}

.text-gray {
	color: var(--gray-color);
}

.text-dark-color {
	color: var(--secondary-dark-color);
}

.nav-link {
	color: var(--gray-color);
}

.navbar .nav-link:hover {
	color: var(--accent-color);
}

.nav-link.active {
	color: var(--accent-color) !important;
}

.navbar-toggler:focus {
	box-shadow: none !important;
}

.navbar .dropdown-item {
	color: var(--gray-color);
}

.navbar .dropdown-item:hover {
	color: var(--accent-color);
	background-color: var(--secondary-dark-color);
}

.navbar .dropdown-item.active {
	color: var(--accent-color);
	background-color: var(--secondary-dark-color);
}

.logo-container {
	max-width: 150px;
}

.social-icon {
	font-size: 20px;
}

.white-text-hover:hover {
	color: white;
}

.font-1 {
	font-family: var(--font-1);
}

.font-2 {
	font-family: var(--font-2);
}

.font-3 {
	font-family: var(--font-3);
}

.image-overlay {
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
	position: absolute;
	background-color: #212121;
	opacity: 0.6;
	transition: background 0.3s, border-radius 0.3s, opacity 0.3s;
}

.divider {
	display: flex;
	width: 12%;
	align-items: center;
	font-size: 20px;
}

.divider::before,
.divider::after {
	content: "";
	display: block;
	border-bottom: 0;
	flex-grow: 1;
	border-top: 1px dashed var(--accent-color);
	margin-inline: 0.5rem;
}

.secondary-color-hover:hover {
	background-color: var(--secondary-dark-color);
	color: white;
}

.accent-color-hover:hover {
	background-color: var(--accent-color);
	color: white;
}

.icon-box {
	border-radius: 50%;
	font-size: 32px;
	width: 5rem;
	height: 5rem;
}

.bg-overlay {
	background-color: #18181896;
}

.shadow {
	box-shadow: 10px 10px 15px 0px rgba(0, 0, 0, 0.5) !important;
}

.border-bottom {
	border-bottom: solid 1px #505050 !important;
}

.border-left {
	border-left: solid 1px #373737;
}

.video-container {
	aspect-ratio: 16/9;
	background-size: cover;
	background-position: center;
	position: relative;
}

.video-btn {
	aspect-ratio: 1/1;
	padding: 0;
	border-radius: 50%;
}

.video-btn-larger {
	width: 4rem;
	font-size: 36px;
}

.video-btn-small {
	width: 2.5rem;
	font-size: 24px;
}

.video-iframe {
	position: absolute;
	height: 100%;
	width: 100%;
	top: 0;
	left: 0;
}

.maps {
	width: 100%;
	height: 400px;
	filter: brightness(100%) contrast(100%) saturate(0%) blur(0px)
		hue-rotate(0deg);
}

.link-white {
	color: var(--gray-color);
}

.link-white:hover {
	color: white;
}

@media only screen and (max-width: 768px) {
	h1 {
		font-size: 42px;
	}

	h2 {
		font-size: 36px;
	}

	h3 {
		font-size: 26px;
	}

	h5 {
		font-size: 18px;
	}

	h6 {
		font-size: 14px;
	}

	.divider {
		width: 30%;
	}
	.border-left {
		border-left: none;
	}
}

.icon-img {
	width: 1.5rem;
	filter: brightness(0) invert(1);
}

/* ===== Artists State/City Pages ===== */
.states-links {
	line-height: 2.2;
}

.state-link {
	color: var(--gray-color);
	font-size: 14px;
	letter-spacing: 0.5px;
	transition: color 0.3s;
	padding: 0.2em 0.4em;
}

.state-link:hover,
.state-link.active {
	color: var(--accent-color);
}

.state-separator {
	font-size: 14px;
	user-select: none;
}

.artist-card {
	border: 1px solid #2f2f2f;
	transition: transform 0.3s, box-shadow 0.3s;
}

.artist-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.review-card {
	border: 1px solid #2f2f2f;
}

/* Swiper overrides for artist pages */
.artist-card .swiper-slide,
.review-card .swiper-slide {
	height: auto;
}

.flash-card,
.style-card {
	display: block;
	position: relative;
	overflow: hidden;
	border-radius: 8px;
}

.flash-card-overlay,
.style-card-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 60%);
	transition: background 0.3s;
}

.flash-card:hover .flash-card-overlay,
.style-card:hover .style-card-overlay {
	background: linear-gradient(to top, rgba(197, 155, 104, 0.6) 0%, transparent 60%);
}

/* ===== Artist Profile Page ===== */
.artist-hero {
	padding: 4em 1em;
	background-size: cover;
	background-position: center;
}

.artist-hero-photo {
	height: 400px;
}

@media only screen and (max-width: 768px) {
	.artist-hero-photo {
		height: 300px;
	}
}

.gallery-thumb {
	height: 120px;
	cursor: pointer;
	transition: opacity 0.3s;
}

.gallery-thumb:hover {
	opacity: 0.8;
}

.flash-grid-item {
	height: 200px;
}

.flash-grid-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
}

.badge-tag {
	display: inline-block;
	padding: 0.4em 1em;
	border: 1px solid #505050;
	border-radius: 20px;
	color: var(--gray-color);
	font-size: 13px;
	background: transparent;
}

.badge-tag--restricted {
	border-color: #6b4040;
	color: #cc8888;
}

/* Leaflet dark mode overrides */
#artist-map {
	filter: brightness(0.85) contrast(1.1) saturate(0.8);
}

/* Swiper nav buttons on artist profile */
.swiper-button-prev,
.swiper-button-next {
	color: var(--accent-color) !important;
}

.swiper-button-prev::after,
.swiper-button-next::after {
	font-size: 18px !important;
}

/* ===== Light Header ===== */
.header-light {
	background-color: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.header-light .header-nav-link {
	color: #333333;
}

.header-light .header-nav-link:hover {
	color: var(--accent-color);
}

.header-light .header-icon-img {
	filter: brightness(0);
}

.header-light .header-menu-icon {
	filter: brightness(0);
}

.header-light .header-social-icon:hover .header-icon-img {
	filter: brightness(0) sepia(1) hue-rotate(350deg) saturate(3);
}

/* ===== State Link Light Variant (homepage hero) ===== */
.state-link--light {
	color: rgba(255, 255, 255, 0.8);
}

.state-link--light:hover {
	color: #ffffff;
}

/* ===== Artist Card 2x2 Grid ===== */
.artist-card-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 2px;
	height: 200px;
	overflow: hidden;
}

.artist-card-grid-item {
	overflow: hidden;
}

.artist-card-grid-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.artist-card:hover .artist-card-grid-item img {
	transform: scale(1.05);
}

/* ===== Search Results Dropdown ===== */
.search-results-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	background-color: var(--secondary-dark-color);
	border: 1px solid #373737;
	border-radius: 0 0 8px 8px;
	max-height: 320px;
	overflow-y: auto;
	z-index: 100;
}

.search-result-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 16px;
	color: #ffffff;
	font-family: var(--font-1);
	font-size: 14px;
	border-bottom: 1px solid #2f2f2f;
	transition: background-color 0.2s;
}

.search-result-item:hover {
	background-color: #2f2f2f;
	color: var(--accent-color);
}

.search-result-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.search-result-badge {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 10px;
	background-color: var(--accent-color);
	color: #fff;
	font-size: 11px;
	font-weight: 600;
}

/* ===== Flash Exclusive Badge ===== */
.flash-exclusive-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	background-color: var(--accent-color);
	color: #ffffff;
	font-family: var(--font-1);
	font-size: 11px;
	font-weight: 600;
	padding: 4px 10px;
	border-radius: 12px;
	z-index: 2;
}

/* ===== Flash Price Overlay ===== */
.flash-card-overlay .font-1.small {
	opacity: 0.85;
}

/* ===== Header Search Toggle ===== */
.header-search-toggle {
	background: none;
	cursor: pointer;
	line-height: 1;
	transition: opacity 0.2s;
}

.header-search-toggle:hover {
	opacity: 0.7;
}

/* ===== Search Overlay ===== */
.search-overlay {
	position: fixed;
	inset: 0;
	z-index: 1050;
	display: flex;
	flex-direction: column;
	visibility: hidden;
	pointer-events: none;
}

.search-overlay.is-open {
	visibility: visible;
	pointer-events: auto;
}

.search-overlay__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	opacity: 0;
	transition: opacity 0.3s ease;
}

.search-overlay.is-open .search-overlay__backdrop {
	opacity: 1;
}

.search-overlay__panel {
	position: relative;
	background-color: var(--secondary-dark-color);
	transform: translateY(-100%);
	transition: transform 0.35s ease;
	max-height: 100vh;
	overflow-y: auto;
}

.search-overlay.is-open .search-overlay__panel {
	transform: translateY(0);
}

.search-overlay__close {
	position: absolute;
	top: 1rem;
	right: 1rem;
	background: none;
	border: none;
	color: var(--gray-color);
	cursor: pointer;
	padding: 0.5rem;
	z-index: 2;
	transition: color 0.2s;
}

.search-overlay__close:hover {
	color: #ffffff;
}

.search-overlay__states {
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Mobile adjustments */
@media only screen and (max-width: 768px) {
	.search-overlay__panel {
		max-height: 100vh;
		overflow-y: auto;
		-webkit-overflow-scrolling: touch;
	}

	.search-overlay__panel .r-container {
		padding-left: 1rem;
		padding-right: 1rem;
	}

	.search-overlay__panel h4 {
		font-size: 22px;
	}

	.search-overlay__panel h5 {
		font-size: 16px;
	}

	.search-overlay__states .state-link {
		font-size: 12px;
	}
}
