/*
 * ESCC Event System – Frontend Styles
 * All styles here can be overridden by the active theme.
 * Inline styles in PHP still handle dynamic values (colors, widths, etc.).
 */

/* ============================================================
   ESCC Design Tokens (CSS Custom Properties)
   ============================================================ */
:root {
	--escc-primary:        #0066cc;
	--escc-primary-dark:   #004d99;
	--escc-primary-light:  #e0f2fe;
	--escc-success-text:   #166534;
	--escc-success-bg:     #f0fdf4;
	--escc-success-border: #dcfce7;
	--escc-danger-text:    #991b1b;
	--escc-danger-bg:      #fee2e2;
	--escc-danger-border:  #fecaca;
	--escc-warning-text:   #92400e;
	--escc-warning-bg:     #fef3c7;
	--escc-muted:          #64748b;
	--escc-text:           #1e293b;
	--escc-border:         #e2e8f0;
	--escc-bg-light:       #f8fafc;
	--escc-radius-sm:      6px;
	--escc-radius:         8px;
	--escc-radius-lg:      12px;
	--escc-radius-xl:      15px;
	--escc-shadow:         0 2px 10px rgba(0, 0, 0, 0.05);
	--escc-shadow-md:      0 4px 15px rgba(0, 0, 0, 0.08);
}

/* ============================================================
   Alerts / Notices
   ============================================================ */
.escc-alert {
	padding: 12px 16px;
	border-radius: var(--escc-radius);
	margin-bottom: 20px;
	font-weight: 500;
	border: 1px solid transparent;
}

.escc-alert-success { background: var(--escc-success-bg);    color: var(--escc-success-text); border-color: var(--escc-success-border); }
.escc-alert-error   { background: var(--escc-danger-bg);     color: var(--escc-danger-text);  border-color: var(--escc-danger-border); }
.escc-alert-info    { background: var(--escc-primary-light); color: var(--escc-primary-dark); border-color: #bae6fd; }

/* ============================================================
   Buttons
   ============================================================ */
.escc-btn {
	display: inline-block;
	padding: 10px 20px;
	border-radius: var(--escc-radius);
	font-weight: 600;
	font-size: 14px;
	cursor: pointer;
	border: none;
	text-decoration: none;
	text-align: center;
	line-height: 1.4;
	transition: opacity 0.15s;
	box-sizing: border-box;
}

.escc-btn:hover        { opacity: 0.88; text-decoration: none; }
.escc-btn-primary      { background: var(--escc-primary);      color: #fff; }
.escc-btn-primary:hover { color: #fff; }
.escc-btn-success      { background: var(--escc-success-text); color: #fff; }
.escc-btn-success:hover { color: #fff; }
.escc-btn-danger       { background: var(--escc-danger-text);  color: #fff; }
.escc-btn-danger:hover  { color: #fff; }
.escc-btn-full         { width: 100%; display: block; padding: 14px; font-size: 15px; }

/* ============================================================
   Status Badges
   ============================================================ */
.escc-badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 700;
}

.escc-badge-success { background: var(--escc-success-border); color: var(--escc-success-text); }
.escc-badge-warning { background: var(--escc-warning-bg);     color: var(--escc-warning-text); }
.escc-badge-danger  { background: var(--escc-danger-bg);      color: var(--escc-danger-text); }
.escc-badge-neutral { background: #f1f5f9;                    color: #475569; }

/* ============================================================
   Section Card (container for organizer panels)
   ============================================================ */
.escc-section-card {
	background: #fff;
	border: 1px solid var(--escc-border);
	border-radius: var(--escc-radius-xl);
	padding: 25px;
	margin-bottom: 24px;
	box-shadow: var(--escc-shadow-md);
}

/* ============================================================
   Form Elements
   ============================================================ */
.escc-form-row     { margin-bottom: 16px; }
.escc-form-label   { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 5px; }
.escc-form-hint    { font-size: 11px; color: var(--escc-muted); margin-top: 4px; display: block; }

.escc-form-input,
.escc-form-select,
.escc-form-textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--escc-border);
	border-radius: var(--escc-radius);
	font-size: 14px;
	box-sizing: border-box;
	background: #fff;
}

.escc-form-input:focus,
.escc-form-select:focus,
.escc-form-textarea:focus {
	outline: none;
	border-color: var(--escc-primary);
	box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.12);
}

.escc-form-textarea { resize: vertical; min-height: 100px; }
.escc-form-grid-2   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ============================================================
   Dashboard Tabs ([escc_organizer_dashboard])
   ============================================================ */
.escc-dash-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	border-bottom: 2px solid var(--escc-border);
	margin-bottom: 28px;
}

.escc-dash-tab-btn {
	padding: 10px 20px;
	border-radius: var(--escc-radius-sm) var(--escc-radius-sm) 0 0;
	cursor: pointer;
	font-size: 14px;
	background: var(--escc-bg-light);
	color: var(--escc-muted);
	border: 2px solid transparent;
	border-bottom: none;
	transition: color 0.15s, background 0.15s;
}

.escc-dash-tab-btn:hover {
	color: var(--escc-primary);
	background: #fff;
}

.escc-dash-tab-btn.active {
	background: #fff;
	color: var(--escc-primary-dark);
	border-color: var(--escc-border);
	border-bottom: 2px solid #fff;
	margin-bottom: -2px;
	font-weight: 700;
}

.escc-dash-panel        { display: none; }
.escc-dash-panel.active { display: block; }

/* ============================================================
   Responsive adjustments
   ============================================================ */
@media (max-width: 600px) {
	.escc-form-grid-2  { grid-template-columns: 1fr; }
	.escc-dash-tab-btn { padding: 8px 12px; font-size: 13px; }
}

/* ============================================================
   Event details box
   ============================================================ */
.escc-event-details-box {
	background: #fff;
	border: 1px solid #e0e8f0;
	border-left: 6px solid #0066cc;
	border-radius: 12px;
	padding: 25px;
	margin-bottom: 30px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.escc-event-details-box h3 {
	margin-top: 0;
	color: #0066cc;
	font-size: 20px;
	text-transform: uppercase;
	margin-bottom: 20px;
}

.escc-event-details-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 20px;
}

.escc-event-detail-row {
	display: flex;
	align-items: center;
}

.escc-event-detail-row .escc-detail-icon {
	margin-right: 12px;
	flex-shrink: 0;
}

.escc-event-detail-row label {
	display: block;
	font-size: 10px;
	color: #8899aa;
	font-weight: 700;
	text-transform: uppercase;
}

.escc-event-detail-row span {
	font-weight: 600;
}

/* ============================================================
   Hero / thumbnail image
   ============================================================ */
.escc-event-hero-img {
	width: 100%;
	height: 350px;
	background-size: cover;
	background-position: center;
	border-radius: 15px;
	margin-bottom: 30px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ============================================================
   Calendar download button
   ============================================================ */
.escc-ics-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: #e0f2fe;
	color: #0369a1;
	padding: 10px 20px;
	border-radius: 30px;
	text-decoration: none;
	font-weight: bold;
	font-size: 13px;
	border: 1px solid #bae6fd;
	transition: background 0.2s, color 0.2s;
}

.escc-ics-btn:hover {
	background: #bae6fd;
	color: #075985;
}

/* ============================================================
   Capacity / deadline status badges
   ============================================================ */
.escc-status-full,
.escc-status-deadline-passed {
	color: #ef4444;
	font-weight: 600;
}

.escc-status-available {
	font-weight: 600;
}

/* ============================================================
   Registration closed notice
   ============================================================ */
.escc-reg-closed-notice {
	margin-top: 40px;
	background: #fee2e2;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
}

.escc-reg-closed-notice strong {
	color: #991b1b;
}

/* ============================================================
   Post-event review box
   ============================================================ */
.escc-event-review-box {
	margin: 30px 0;
	padding: 30px;
	background: #f0fdf4;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.escc-event-review-box h3 {
	margin-top: 0;
	color: #166534;
	font-size: 20px;
}

/* ============================================================
   Participant list (auto-appended / shortcode)
   ============================================================ */
.escc-participants {
	margin-top: 30px;
	padding: 20px;
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
}

.escc-participants h4 {
	margin-top: 0;
	color: #334155;
}

.escc-participant-count {
	font-weight: 600;
	color: #475569;
}

.escc-participant-names {
	list-style: none;
	padding: 0;
	margin: 10px 0 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.escc-participant-names li {
	background: #e0f2fe;
	color: #0369a1;
	padding: 4px 10px;
	border-radius: 20px;
	font-size: 13px;
}

.escc-no-participants {
	color: #94a3b8;
	font-style: italic;
}

/* ============================================================
   Marketplace
   ============================================================ */
.escc-marketplace {
	max-width: 1100px;
	margin: 0 auto;
	font-family: sans-serif;
}

.escc-market-card {
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	padding: 22px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* ============================================================
   My Events table ([escc_my_events])
   ============================================================ */
.escc-my-events-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.escc-my-events-table th {
	padding: 14px 16px;
	text-align: left;
	font-size: 12px;
	color: #64748b;
	text-transform: uppercase;
	font-weight: 700;
	background: #f8fafc;
	border-bottom: 2px solid #e2e8f0;
}

.escc-my-events-table td {
	padding: 14px 16px;
	border-bottom: 1px solid #f1f5f9;
}

.escc-cancel-event-btn {
	color: #ef4444;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	background: #fee2e2;
	padding: 5px 12px;
	border-radius: 6px;
	display: inline-block;
}

.escc-cancel-event-btn:hover {
	background: #fecaca;
}

/* ============================================================
   Org profile pages
   ============================================================ */
.escc-final-layout {
	max-width: 1100px;
	margin: auto;
	font-family: sans-serif;
	color: #1e293b;
}
