/*
Theme Name: KDean Theme
Theme URI: https://kdean.example.com/
Author: KDean Engineering
Author URI: https://kdean.example.com/
Description: Lightweight presentation theme for the KDean Alumni Network (Naogaon KD Govt High School ex-students). Defers ALL business logic to the kdean-core plugin. Pair with kdean-core for full functionality.
Version: 1.0.0
Requires at least: 6.2
Requires PHP: 8.1
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kdean-theme
Tags: alumni, community, directory, membership, blood-bank, events, two-column, right-sidebar, custom-colors, custom-logo
*/

:root {
	--kdean-primary: #1e40af;
	--kdean-primary-dark: #1e3a8a;
	--kdean-accent: #f59e0b;
	--kdean-bg: #f9fafb;
	--kdean-text: #111827;
	--kdean-text-muted: #6b7280;
	--kdean-border: #e5e7eb;
	--kdean-success: #16a34a;
	--kdean-warning: #d97706;
	--kdean-error: #dc2626;
}

* { box-sizing: border-box; }

body {
	font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
	color: var(--kdean-text);
	background: var(--kdean-bg);
	margin: 0;
	line-height: 1.6;
}

a { color: var(--kdean-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.kdean-container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
.kdean-row { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.kdean-main { flex: 1 1 70%; }
.kdean-sidebar { flex: 1 1 25%; }

.kdean-site-header { background: #fff; border-bottom: 1px solid var(--kdean-border); padding: 0.75rem 0; position: sticky; top: 0; z-index: 100; }
.kdean-site-header .kdean-container { display: flex; align-items: center; justify-content: space-between; }
.kdean-logo { font-weight: 700; font-size: 1.5rem; color: var(--kdean-primary); }
.kdean-logo img { max-height: 48px; width: auto; }

.kdean-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.25rem; align-items: center; }
.kdean-nav a { color: var(--kdean-text); font-weight: 500; font-size: 0.95rem; }
.kdean-nav a:hover { color: var(--kdean-primary); }
.kdean-nav .kdean-cta { background: var(--kdean-primary); color: #fff; padding: 0.5rem 1rem; border-radius: 6px; font-weight: 500; }
.kdean-nav .kdean-cta:hover { background: var(--kdean-primary-dark); text-decoration: none; color: #fff; }

.kdean-site-footer { background: #1f2937; color: #d1d5db; padding: 2.5rem 0 1rem; margin-top: 4rem; }
.kdean-site-footer a { color: #f9fafb; }
.kdean-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.kdean-footer-grid h4 { color: #fff; font-size: 1rem; margin: 0 0 1rem; }
.kdean-footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; font-size: 0.85rem; text-align: center; color: #9ca3af; }

.kdean-hero { background: linear-gradient(135deg, var(--kdean-primary) 0%, var(--kdean-primary-dark) 100%); color: #fff; padding: 5rem 0; text-align: center; }
.kdean-hero h1 { font-size: 3rem; margin: 0 0 1rem; font-weight: 800; }
.kdean-hero p { font-size: 1.25rem; opacity: 0.9; max-width: 700px; margin: 0 auto 2rem; }
.kdean-hero .button { background: var(--kdean-accent); color: #fff; padding: 0.85rem 2rem; border-radius: 6px; font-weight: 600; font-size: 1rem; display: inline-block; }
.kdean-hero .button:hover { background: #d97706; text-decoration: none; color: #fff; }

.kdean-card { background: #fff; border: 1px solid var(--kdean-border); border-radius: 8px; padding: 1.5rem; margin-bottom: 1rem; transition: box-shadow 0.2s, transform 0.2s; }
.kdean-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.08); transform: translateY(-2px); }

.kdean-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.kdean-form-row label { display: flex; flex-direction: column; font-size: 0.875rem; color: var(--kdean-text-muted); font-weight: 500; }
.kdean-form-row input, .kdean-form-row select, .kdean-form-row textarea { padding: 0.5rem 0.75rem; border: 1px solid var(--kdean-border); border-radius: 6px; font-size: 1rem; margin-top: 0.25rem; }
.kdean-form-row input:focus, .kdean-form-row select:focus, .kdean-form-row textarea:focus { outline: none; border-color: var(--kdean-primary); box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1); }

.button, .button-primary, .button-secondary { display: inline-block; padding: 0.5rem 1rem; border-radius: 6px; font-weight: 500; font-size: 0.95rem; cursor: pointer; border: 1px solid var(--kdean-border); background: #fff; color: var(--kdean-text); text-decoration: none; }
.button:hover { text-decoration: none; }
.button-primary { background: var(--kdean-primary); color: #fff; border-color: var(--kdean-primary); }
.button-primary:hover { background: var(--kdean-primary-dark); text-decoration: none; color: #fff; }

.kdean-badge { display: inline-block; padding: 0.2rem 0.6rem; border-radius: 12px; font-size: 0.75rem; font-weight: 600; }
.kdean-badge-verified { background: #d1fae5; color: #065f46; }
.kdean-badge-pending  { background: #fef3c7; color: #92400e; }
.kdean-featured { background: var(--kdean-accent); color: #fff; }

.kdean-notice { padding: 1rem 1.25rem; border-radius: 6px; margin: 1rem 0; }
.kdean-success { background: #d1fae5; color: #065f46; border-left: 4px solid var(--kdean-success); }
.kdean-error { background: #fee2e2; color: #991b1b; border-left: 4px solid var(--kdean-error); }
.kdean-warning { background: #fef3c7; color: #92400e; border-left: 4px solid var(--kdean-warning); }

@media (max-width: 768px) {
	.kdean-footer-grid { grid-template-columns: 1fr; }
	.kdean-hero h1 { font-size: 2rem; }
	.kdean-nav ul { display: none; }
}
