/*
Theme Name: Swapzy Theme
Description: Minimal, lightweight companion theme for Swapzy — the student swap, donate & wanted board.
Version: 1.1.0
Author: WeBloom Studio
*/

:root {
	--seh-primary: #1a56db;
	--seh-primary-dark: #1543ab;
	--seh-accent: #f59e0b;
	--seh-swap: #10b981;
	--seh-donate: #8b5cf6;
	--seh-wanted: #ec4899;
	--seh-bg: #f8fafc;
	--seh-surface: #ffffff;
	--seh-text: #1e293b;
	--seh-text-soft: #64748b;
	--seh-border: #e2e8f0;
	--font-display: 'Baloo 2', sans-serif;
	--font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }

body {
	font-family: var(--font-body);
	margin: 0;
	background: var(--seh-bg);
	color: var(--seh-text);
	line-height: 1.55;
}

h1, h2, h3, .seh-logo span, .seh-tab-btn, .seh-btn, .seh-nav-cta {
	font-family: var(--font-display);
}

a { color: var(--seh-primary); }

/* Header */
.seh-site-header {
	background: var(--seh-primary);
	color: #fff;
	padding: 14px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: sticky;
	top: 0;
	z-index: 20;
	box-shadow: 0 2px 10px rgba(26,86,219,0.15);
}

.seh-logo {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	font-size: 20px;
	letter-spacing: 0.2px;
}

.seh-site-nav {
	display: flex;
	align-items: center;
	gap: 16px;
}

.seh-site-nav a {
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	opacity: 0.9;
}

.seh-nav-cta {
	background: var(--seh-accent);
	color: #1e293b !important;
	padding: 8px 16px;
	border-radius: 20px;
	font-weight: 700 !important;
	opacity: 1 !important;
}

.seh-content {
	max-width: 1040px;
	margin: 0 auto;
	padding: 0 16px 40px;
}

/* Hero */
.seh-hero {
	text-align: center;
	padding: 48px 16px 32px;
}

.seh-hero h1 {
	font-size: 34px;
	font-weight: 800;
	margin: 0 0 8px;
	color: var(--seh-text);
}

.seh-hero h1 span {
	color: var(--seh-primary);
}

.seh-hero p {
	font-size: 15px;
	color: var(--seh-text-soft);
	max-width: 460px;
	margin: 0 auto 22px;
}

.seh-hero-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}

.seh-hero-btn {
	font-family: var(--font-display);
	font-weight: 700;
	text-decoration: none;
	padding: 12px 22px;
	border-radius: 24px;
	font-size: 15px;
	display: inline-block;
}

.seh-hero-btn.primary {
	background: var(--seh-primary);
	color: #fff;
}

.seh-hero-btn.secondary {
	background: #fff;
	color: var(--seh-primary);
	border: 2px solid var(--seh-primary);
}

/* Empty state */
.seh-empty-state {
	text-align: center;
	padding: 40px 20px;
	background: var(--seh-surface);
	border: 1px dashed var(--seh-border);
	border-radius: 14px;
	color: var(--seh-text-soft);
}

.seh-empty-state h3 {
	color: var(--seh-text);
	margin-bottom: 6px;
}

/* Notices */
.seh-verify-notice {
	background: #fffbeb;
	border: 1px solid var(--seh-accent);
	border-radius: 10px;
	padding: 16px;
	margin-bottom: 16px;
}

.seh-privacy-notice {
	background: #ecfdf5;
	border: 1px solid var(--seh-swap);
	border-radius: 10px;
	padding: 12px 14px;
	margin-bottom: 14px;
	font-size: 13px;
	color: #065f46;
}

.seh-safety-reminder {
	font-size: 13px;
	color: #92400e;
	background: #fffbeb;
	border-radius: 8px;
	padding: 8px 10px;
	margin: 8px 0;
}

.seh-safety-tips {
	background: #fffbeb;
	border: 1px solid var(--seh-accent);
	border-radius: 10px;
	padding: 12px 14px;
	margin-top: 10px;
	font-size: 13px;
	color: #78350f;
}

.seh-safety-tips ul { margin: 6px 0 0; padding-left: 18px; }
.seh-safety-tips li { margin-bottom: 4px; }

/* Dashboard tabs */
.seh-dashboard-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 16px;
}

.seh-tab-btn {
	background: #fff;
	border: 1px solid var(--seh-border);
	border-radius: 20px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

.seh-tab-btn.active {
	background: var(--seh-primary);
	color: #fff;
	border-color: var(--seh-primary);
}

.seh-list { list-style: none; padding: 0; margin: 0; }
.seh-list li { padding: 10px 0; border-bottom: 1px solid var(--seh-border); }

/* Grid + cards */
.seh-section-title {
	font-size: 20px;
	font-weight: 700;
	margin: 28px 0 14px;
}

.seh-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}

@media (min-width: 600px) { .seh-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .seh-grid { grid-template-columns: repeat(4, 1fr); } }

.seh-card {
	background: var(--seh-surface);
	border: 1px solid var(--seh-border);
	border-radius: 14px;
	overflow: hidden;
	position: relative;
	display: flex;
	flex-direction: column;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.seh-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(30,41,59,0.08);
}

.seh-card img { width: 100%; height: 120px; object-fit: cover; background: var(--seh-bg); }

.seh-card-noimg {
	width: 100%;
	height: 120px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 34px;
	background: var(--seh-bg);
}

.seh-card h3 { font-size: 14px; margin: 10px 10px 4px; font-family: var(--font-body); font-weight: 600; }
.seh-card h3 a { color: var(--seh-text); text-decoration: none; }
.seh-meta { font-size: 12px; color: var(--seh-text-soft); margin: 0 10px 8px; }

.seh-badge {
	position: absolute;
	top: 8px;
	left: 8px;
	font-size: 11px;
	font-weight: 700;
	color: #fff;
	padding: 3px 9px;
	border-radius: 12px;
	font-family: var(--font-display);
}

.seh-badge-swap { background: var(--seh-swap); }
.seh-badge-donate { background: var(--seh-donate); }
.seh-badge-wanted { background: var(--seh-wanted); }

.seh-actions { display: flex; gap: 6px; padding: 0 10px 10px; margin-top: auto; }

.seh-actions button {
	flex: 1;
	background: var(--seh-bg);
	border: 1px solid var(--seh-border);
	border-radius: 8px;
	padding: 6px 4px;
	font-size: 12px;
	cursor: pointer;
}

.seh-actions button.active { background: var(--seh-primary); color: #fff; border-color: var(--seh-primary); }

/* Forms */
#seh-submit-listing-form, #seh-item-request-form, #seh-id-upload-form,
#seh-profile-form, #seh-login-form, #seh-register-form {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 460px;
	background: var(--seh-surface);
	border: 1px solid var(--seh-border);
	border-radius: 14px;
	padding: 20px;
}

#seh-submit-listing-form label, #seh-item-request-form label, #seh-profile-form label,
#seh-login-form label, #seh-register-form label {
	font-size: 13px;
	font-weight: 600;
	color: var(--seh-text);
}

#seh-submit-listing-form input, #seh-submit-listing-form select, #seh-submit-listing-form textarea,
#seh-item-request-form input, #seh-item-request-form textarea,
#seh-profile-form input, #seh-profile-form select,
#seh-login-form input, #seh-register-form input {
	padding: 10px 12px;
	border: 1px solid var(--seh-border);
	border-radius: 8px;
	font-size: 14px;
	width: 100%;
	font-family: var(--font-body);
}

.seh-btn, .seh-hero-btn.primary, button[type="submit"].seh-btn {
	background: var(--seh-primary);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 12px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
}

.seh-btn:hover { background: var(--seh-primary-dark); }

.seh-form-msg { font-size: 13px; color: var(--seh-swap); margin: 0; }

.seh-declaration {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	font-size: 12px;
	font-weight: 400 !important;
	color: var(--seh-text-soft);
	line-height: 1.4;
}

.seh-declaration input { width: auto; margin-top: 3px; }

.seh-requesters {
	margin-top: 6px;
	font-size: 13px;
	background: var(--seh-bg);
	border-radius: 8px;
	padding: 8px 10px;
}

.seh-requesters ul { list-style: none; padding: 0; margin: 6px 0 0; }
.seh-requesters li { margin-bottom: 6px; }

.seh-select-recipient-btn {
	background: var(--seh-primary);
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 4px 8px;
	font-size: 12px;
	margin-left: 6px;
	cursor: pointer;
	font-family: var(--font-body);
}

/* Auth tabs */
.seh-auth-tabs { display: flex; gap: 8px; margin-bottom: 16px; max-width: 460px; }

.seh-auth-tab-btn {
	flex: 1;
	background: #fff;
	border: 1px solid var(--seh-border);
	border-radius: 10px;
	padding: 10px;
	font-family: var(--font-display);
	font-weight: 700;
	cursor: pointer;
}

.seh-auth-tab-btn.active { background: var(--seh-primary); color: #fff; border-color: var(--seh-primary); }

/* Single listing */
.seh-single-listing { background: var(--seh-surface); border: 1px solid var(--seh-border); border-radius: 14px; padding: 22px; margin-top: 16px; }
.seh-single-listing h1 { font-size: 24px; margin: 8px 0 12px; }
.seh-single-listing img { max-width: 100%; border-radius: 10px; }

.seh-contact-reveal {
	background: #eff6ff;
	border: 1px solid var(--seh-primary);
	border-radius: 10px;
	padding: 14px;
	margin-top: 14px;
}

.seh-site-footer {
	text-align: center;
	padding: 24px 16px;
	font-size: 12px;
	color: var(--seh-text-soft);
}
