/*
Theme Name: Swiss Club Tokyo
Theme URI: https://swissclubtokyo.com/
Author: Massimo
Author URI: https://swissclubtokyo.com/
Description: A clean, typography-focused modern theme for Swiss Club Tokyo inspired by "Nothing" aesthetic.
Version: 1.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: sct-theme
*/

:root {
	--color-white: #ffffff;
	--color-black: #000000;
	--color-charcoal: #333333;
	--color-light-gray: #dad3d3;
	/* Placeholder for Charcoal */
	--color-red: #E11B22;
	/* Swiss Red - Approximate, to be refined based on logo */

	--font-primary: 'Inter', sans-serif;
	/* Modern clean font, assuming we'll use Google Fonts or similar */
}

/* Reset / Base Styles */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--font-primary);
	color: var(--color-black);
	background-color: var(--color-white);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--color-black);
	text-decoration: none;
	transition: all 0.3s ease;
}

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

.sct-logo {
	width: 150px;
	/* Base size */
	height: auto;
}

/* ── Shared Wall-of-Text Utilities ──────────────────────────────────── */
/* Used by both home.js and interior.js to render the SWISS CLUB TOKYO text wall */

.text-line {
	font-weight: 900;
	display: block;
	white-space: nowrap;
	overflow: visible;
}

.bg-word {
	font-family: Arial, Helvetica, sans-serif;
	text-transform: uppercase;
	font-weight: 900;
}

.outline-red {
	-webkit-text-stroke: 1px var(--color-red) !important;
}

.outline-black {
	-webkit-text-stroke: 1px var(--color-black) !important;
}

/* ── Minimalist Page Template Styles ────────────────────────────────── */

.page-container {
	max-width: 1000px;
	margin: 0 auto;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.entry-header {
	/* padding: 4rem 2rem 2rem 2rem; */
	border-bottom: 1px solid var(--color-light-gray);
}

.entry-title {
	font-size: 2.5rem;
	font-weight: 900;
	text-transform: uppercase;
	margin: 0;
	line-height: 1.1;
}

.entry-content {
	padding: 3rem 2rem;
	flex-grow: 1;
}

.entry-content p {
	font-size: 1.125rem;
	line-height: 1.8;
	margin-bottom: 1.5rem;
	color: var(--color-charcoal);
}

/* ── Morphing Search Bar ───────────────────────────────────────────── */
.search-morph-container {
	position: fixed;
	bottom: 2rem;
	left: calc(100% - 6rem);
	width: 4rem;
	height: 4rem;
	border: 1px solid var(--color-black);
	background: var(--color-white);
	border-radius: 2rem;
	z-index: 999;
	display: flex;
	align-items: center;
	justify-content: space-between;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
	transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	            width 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	            bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	            height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	            border-radius 0.4s cubic-bezier(0.4, 0, 0.2, 1),
	            background-color 0.4s ease,
	            border-color 0.4s ease,
	            box-shadow 0.4s ease;
}

/* Hover state when collapsed */
.search-morph-container:not(.is-expanded):hover {
	background: var(--color-red);
	border-color: var(--color-red);
	transform: scale(1.05);
	box-shadow: 0 6px 16px rgba(225, 27, 34, 0.2);
}

.search-morph-container:not(.is-expanded):hover .search-morph-btn {
	color: var(--color-white);
}

/* Expanded state morphs container to a floating pill stretching across viewport */
.search-morph-container.is-expanded {
	bottom: 2rem;
	left: 2rem;
	width: calc(100% - 4rem);
	height: 4rem;
	border-radius: 2rem;
	border: 1px solid var(--color-black);
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	background: var(--color-white);
}

.search-morph-form {
	width: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	height: 100%;
	transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-morph-container.is-expanded .search-morph-form {
	width: calc(100% - 5rem);
}

.search-morph-input {
	width: 100%;
	border: none;
	background: transparent;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 1.5rem;
	font-weight: 900;
	text-transform: uppercase;
	color: transparent;
	-webkit-text-stroke: 1px var(--color-black);
	padding: 0.5rem 1rem 0.5rem 2rem;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.search-morph-container.is-expanded .search-morph-input {
	opacity: 1;
	pointer-events: auto;
}

.search-morph-input::placeholder {
	color: transparent;
	-webkit-text-stroke: 1px var(--color-light-gray);
}

.search-morph-input:focus {
	outline: none;
	color: var(--color-black);
	-webkit-text-stroke: 0px;
}

/* Hide native HTML5 clear search button (x) */
.search-morph-input::-webkit-search-cancel-button,
.search-morph-input::-webkit-search-decoration,
.search-morph-input::-webkit-search-results-button,
.search-morph-input::-webkit-search-results-decoration {
	-webkit-appearance: none;
	display: none;
}

.search-morph-btn {
	width: 3.8rem;
	height: 3.8rem;
	border: none;
	background: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--color-black);
	outline: none;
	flex-shrink: 0;
	transition: color 0.2s ease, transform 0.2s ease;
}

.search-morph-btn svg {
	width: 1.5rem;
	height: 1.5rem;
}

.search-morph-btn .close-icon-span {
	font-size: 2.5rem;
	line-height: 1;
	font-weight: 300;
	font-family: Arial, Helvetica, sans-serif;
}

.search-morph-btn:hover {
	color: var(--color-red);
}