/* Base */
html, body {
	margin: 0;
	padding: 0;
	background: #f8dfe8; /* pale pink */
	color: #3b0620; /* very dark pink/burgundy */
	font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

a { color: #3b0620; text-decoration: underline; }
a:hover { color: #5c0a32; }

/* Layout */
.landing {
	min-height: 100vh;
	display: grid;
	place-items: center;
	padding: 40px 20px 120px; /* leave room for footer */
}

.landing__content { text-align: center; max-width: 1400px; width: 100%; margin: 0 auto; }
.landing__logo { max-width: 1000px; width: 100%; height: auto; display: block; margin: 0 auto 24px; border: 0; }
.landing__tagline { font-size: 20px; margin: 0 0 6px; }
.landing__status { font-weight: bold; margin: 0; }

/* Footer */
.site-footer {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	background: #e6e6e6; /* pale grey */
	color: #555; /* dark grey */
	padding: 12px 16px;
	text-align: center;
	border-top: 1px solid #d0d0d0;
}

/* Footer in member section - not fixed, appears at bottom of content */
.site-footer--members {
	position: relative;
	margin-top: 40px;
	padding-top: 20px;
	padding-bottom: 20px;
}

.site-footer__notice { font-size: 16px; font-weight: bold; margin: 0 0 8px; }
.site-footer__links { font-size: 16px; font-weight: bold; margin: 0; }
.site-footer a { color: #555; text-decoration: none; }
.site-footer a:hover { color: #333; }

/* Container widths */
@media (min-width: 1500px) {
	.landing__content { max-width: 1400px; }
}

@media (max-width: 768px) {
	.landing { padding: 32px 20px 120px; }
	.landing__logo { max-width: 700px; }
}

/* ============================================
   MAIN WEBSITE STYLES
   ============================================ */

/* Container */
.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
}

@media (max-width: 768px) {
	.container {
		padding: 0 20px;
		width: calc(100% - 40px);
	}
}

/* Logo */
.site-logo {
	display: block;
	margin: 0 auto;
	max-width: 1000px;
	width: 100%;
	height: auto;
}

.site-logo--members {
	max-width: 700px;
}

.site-logo--admin {
	max-width: 300px;
}

/* Menu Buttons */
.menu {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 20px 0;
}

.menu-button {
	display: inline-block;
	padding: 10px 20px;
	background: #e6e6e6; /* pale grey */
	color: #3b0620;
	border: 2px solid #555; /* dark grey */
	border-radius: 10px;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
}

.menu-button:hover,
.menu-button:focus {
	background: #f8dfe8; /* pale pink */
	border-color: #c41e5f; /* rich pink */
	outline: none;
}

.menu-button.active {
	background: #f8dfe8;
	border-color: #c41e5f;
}

/* Thumbnails */
.thumbnail {
	border-radius: 10px;
	border: 2px solid #555;
	display: inline-block;
	transition: border-color 0.2s;
	overflow: hidden;
	width: auto;
	max-width: 100%;
}

.thumbnail:hover {
	border-color: #c41e5f; /* rich pink */
}

.thumbnail img {
	display: block;
	width: auto;
	height: auto;
	max-width: 300px;
	max-height: 300px;
	border-radius: 8px;
	object-fit: contain;
}

/* Homepage gallery thumbnails - smaller size */
.gallery .thumbnail img {
	max-width: 200px;
	max-height: 200px;
}

@media (max-width: 768px) {
	.thumbnail {
		display: block;
		width: 100%;
	}
	
	.thumbnail img {
		width: auto;
		max-width: 300px;
		max-height: 300px;
		margin: 0 auto;
	}
}

/* Video Rows */
.video-row {
	margin: 20px 0;
	padding-bottom: 20px;
	border-bottom: 2px solid #c41e5f;
	text-align: center;
}

.video-row__info {
	margin-bottom: 10px;
	font-size: 14px;
	text-align: center;
}

.video-row__title {
	font-weight: bold;
	font-size: 18px;
	margin-bottom: 4px;
}

.video-row__meta {
	color: #666;
	margin-bottom: 10px;
}

.video-row__thumbs {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin-top: 10px;
}

.video-row__thumbs--single {
	justify-content: center;
}

@media (max-width: 768px) {
	.video-row__thumbs {
		flex-direction: column;
		align-items: stretch;
	}
	
	.video-row__thumbs .thumbnail,
	.video-row__thumbs a {
		width: 100%;
		display: block;
	}
	
	.video-row__thumbs .thumbnail img {
		width: 100%;
		max-width: none;
		max-height: none;
	}
}

/* Range Navigation */
.range-nav {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	margin: 20px 0;
}

.range-nav__button {
	background: #e6e6e6;
	border: 2px solid #555;
	border-radius: 10px;
	padding: 8px 15px;
	color: #3b0620;
	font-weight: bold;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.2s;
}

.range-nav__button:hover,
.range-nav__button:focus {
	background: #f8dfe8;
	border-color: #c41e5f;
	outline: none;
}

.range-nav__text {
	font-weight: bold;
	color: #3b0620;
}

/* Gallery (Homepage) */
.gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	margin: 20px 0;
}

.gallery__item {
	position: relative;
	opacity: 1;
	transition: opacity 0.5s;
	display: flex;
	justify-content: center;
	align-items: center;
}

.gallery__item--fade {
	opacity: 0;
}

@media (max-width: 768px) {
	.gallery {
		grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	}
	
	.gallery .thumbnail img {
		max-width: 150px;
		max-height: 150px;
	}
}

/* Video Player */
.video-player {
	width: 100%;
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

/* Forms */
.form-group {
	margin-bottom: 15px;
}

.form-label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #3b0620;
}

.form-input,
.form-textarea,
.form-select {
	width: 100%;
	padding: 8px;
	border: 2px solid #555;
	border-radius: 5px;
	font-size: 14px;
	font-family: inherit;
}

.form-textarea {
	resize: vertical;
	min-height: 80px;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
	outline: none;
	border-color: #c41e5f;
}

/* Buttons */
.btn {
	display: inline-block;
	padding: 10px 20px;
	border: 2px solid #555;
	border-radius: 10px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.2s;
	text-decoration: none;
	font-size: 14px;
	font-family: inherit;
}

.btn-primary {
	background: #f8dfe8;
	color: #3b0620;
}

.btn-primary:hover,
.btn-primary:focus {
	background: #f0c9d6;
	border-color: #c41e5f;
	outline: none;
}

.btn-secondary {
	background: #e6e6e6;
	color: #3b0620;
}

.btn-secondary:hover,
.btn-secondary:focus {
	background: #d0d0d0;
	border-color: #555;
	outline: none;
}

/* Admin Frameset */
.frameset-container {
	display: flex;
	height: 100vh;
}

.frameset-main {
	flex: 1;
	border: none;
}

.frameset-tools {
	width: 700px;
	border-left: 2px solid #555;
}

@media (max-width: 768px) {
	.frameset-tools {
		display: none;
	}
}

/* Admin Tools */
.upload-zone {
	width: 200px;
	height: 200px;
	border: 2px dashed #555;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 10px 0;
	cursor: pointer;
	transition: all 0.2s;
}

.upload-zone:hover {
	border-color: #c41e5f;
	background: #f8dfe8;
}

.upload-zone--active {
	border-color: #c41e5f;
	background: #f8dfe8;
}

.overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1000;
}

.overlay__content {
	background: white;
	padding: 30px;
	border-radius: 10px;
	text-align: center;
	max-width: 400px;
}

.overlay__spinner {
	border: 4px solid #f8dfe8;
	border-top: 4px solid #c41e5f;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Cookie Notice */
.cookie-notice {
	position: fixed;
	bottom: 60px;
	left: 50%;
	transform: translateX(-50%);
	background: #e6e6e6;
	border: 2px solid #555;
	border-radius: 10px;
	padding: 12px 20px;
	font-size: 12px;
	font-weight: bold;
	color: #3b0620;
	cursor: pointer;
	z-index: 999;
	opacity: 1;
	transition: opacity 0.3s;
}

.cookie-notice--hidden {
	opacity: 0;
	pointer-events: none;
}

/* Keywords (Admin) */
.keyword-toggle {
	background: #e6e6e6;
	border: 2px solid #555;
	color: #666;
}

.keyword-toggle.active {
	background: #f8dfe8;
	border-color: #c41e5f;
	color: #3b0620;
}

/* Save Button (Admin Edit) */
.save-button {
	position: fixed;
	top: 20px;
	right: 20px;
	background: #e6e6e6;
	border: 2px solid #555;
	color: #3b0620;
	z-index: 100;
}

.save-button--pending {
	background: #4a90e2;
	border-color: #2a70c2;
	color: white;
}

/* Error Messages */
.error-message {
	background: #fee;
	border: 2px solid #c41e5f;
	border-radius: 10px;
	padding: 15px;
	margin: 20px 0;
	color: #c41e5f;
	font-weight: bold;
	text-align: center;
}

/* Mobile Admin Tools Button */
.mobile-tools-btn {
	display: none;
}

@media (max-width: 768px) {
	.mobile-tools-btn {
		display: inline-block;
		margin-bottom: 10px;
	}
}

/* Loading States */
.loading {
	opacity: 0.6;
	pointer-events: none;
}

/* Lazy Loading Images */
.lazy-image {
	opacity: 0;
	transition: opacity 0.3s;
}

.lazy-image.loaded {
	opacity: 1;
}


