/* ============================================================   
   jpchacha.com | Add-on CSS for Wishlist Page
============================================================ */

/* ------------------------------------------------------------
Layout
------------------------------------------------------------ */

.layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  align-items: start;
}

.main { border-right: 0.5px solid var(--navy-mid); }


/* ------------------------------------------------------------
Wish Form
------------------------------------------------------------ */

.wish-form {
	background: var(--navy-mid);
	border: 0.5px solid var(--navy-light);
	border-radius: 10px;
	padding: 24px;
}

.form-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-bottom: 16px;
}

.form-group { 
	display: flex; 
	flex-direction: column; 
	gap: 6px; 
}
.form-group:not(:last-child) 
{ 
	margin-bottom: 16px; 
}
.form-row .form-group { 
	margin-bottom: 0; 
}

.form-label {
	font-size: 12px;
	font-weight: 500;
	color: var(--text-secondary);
}

.form-optional {
	font-size: 11px;
	font-weight: 400;
	color: var(--text-faint);
}

.form-control {
	background: var(--navy);
	border: 0.5px solid var(--navy-light);
	border-radius: 7px;
	padding: 9px 12px;
	font-size: 13px;
	color: var(--text-primary);
	font-family: inherit;
	outline: none;
	transition: border-color 0.15s;
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
}

.form-control::placeholder { 
	color: var(--text-faint); 
}
.form-control:focus { 
	border-color: var(--blue); 
}

select.form-control {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23475569' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 32px;
	cursor: pointer;
}

select.form-control option { 
	background: var(--navy-mid); 
}

.form-textarea { 
	resize: vertical; 
	min-height: 120px; 
	line-height: 1.6; 
}

.form-footer {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-top: 4px;
	flex-wrap: wrap;
}

.form-note { 
	font-size: 12px; 
	color: var(--text-faint); 
}

.form-success {
	display: none;
	margin-top: 14px;
	background: var(--green-dim);
	border: 0.5px solid var(--green-light);
	color: var(--green-light);
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 7px;
}

.form-success-success {
	display: block;
	margin-top: 14px;
	background: var(--green-dim);
	border: 0.5px solid var(--green-light);
	color: var(--green-light);
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 7px;
}

.form-success-failure {
	display: block;
	margin-top: 14px;
	background: var(--amber-dim);
	border: 0.5px solid var(--amber-light);
	color: var(--amber-light);
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 7px;
}

/* ------------------------------------------------------------
Feed Header
------------------------------------------------------------ */

.feed-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}
.feed-header .section-label { 
	margin-bottom: 0; 
}
.feed-meta { 
	font-size: 12px; 
	color: var(--text-faint); 
}
.feed-meta strong { 
	color: var(--text-muted); 
}

/* ------------------------------------------------------------
Wish Items
------------------------------------------------------------ */

.wish {
	padding: 20px 0;
	border-bottom: 0.5px solid var(--navy-mid);
}

.wish a, .wish * a {
	text-decoration: none;
}

.wish:first-child {
	padding-top: 0; 
}
.wish:last-child { 
	border-bottom: none; 
	padding-bottom: 0; 
}

.wish-header {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
	flex-wrap: wrap;
}

.wish-num {
	font-size: 12px;
	font-weight: 600;
	color: var(--text-faint);
	letter-spacing: 0.04em;
}

.wish-num--wait {
	color: #44cc55;
}

.wish-num--hide {
	color: #cc4455;
}

.wish-date {
	font-size: 12px;
	color: var(--text-dimmer);
}

.wish-tag {
	display: inline-block;
	background: var(--blue-dim);
	color: var(--blue-pale);
	font-size: 10px;
	font-weight: 500;
	padding: 2px 8px;
	border-radius: 3px;
}

.wish-done-badge {
	display: inline-block;
	background: var(--green-dim);
	border: 0.5px solid var(--green-light);
	color: var(--green-light);
	font-size: 10px;
	font-weight: 500;
	padding: 2px 8px;
	border-radius: 3px;
}

.wish-done-badge--wait {
	background: var(--amber-dim);
	border: 0.5px solid var(--amber-light);
	color: var(--amber-light);
}

.wish-done-badge--hide {
	background: var(--red-dim);
	border: 0.5px solid var(--red-light);
	color: var(--red-light);
}

.wish-body {
	font-size: 14px;
	color: var(--text-secondary);
	line-height: 1.75;
	margin-bottom: 12px;
}

.wish-reply {
	background: var(--navy-mid);
	border: 0.5px solid var(--navy-light);
	border-left: 2px solid var(--blue);
	border-radius: 0 7px 7px 0;
	padding: 12px 14px;
}

.wish-reply-label {
	font-size: 10px;
	font-weight: 500;
	color: var(--blue);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.wish-reply p {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.7;
}

.wish-admin {
	background: var(--navy-mid);
	border: 0.5px solid var(--navy-light);
	border-left: 2px solid var(--green);
	border-radius: 0 7px 7px 0;
	padding: 12px 14px;
}

.wish-admin-actions {
	font-size: 10px;
	font-weight: 500;
	color: var(--green);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.wish-admin-actions-btn {
	display: inline-block;
	background: transparent;
	color: var(--text-secondary);
	text-transform: uppercase;
	font-size: 12px;
	padding: 2px 18px;
	border-radius: 4px;
	border: 0.5px solid var(--navy-light);
	cursor: pointer;
	white-space: nowrap;
	margin-left: auto;
	transition: color 0.15s, border-color 0.15s;
}

.wish-admin-actions-btn:hover {
	color: var(--text-primary);
	border-color: var(--text-muted);
	background: var(--green-dim);
}

.wish-admin-actions-btn--wait:hover {
	background: var(--amber-dim);
}

.wish-admin-actions-btn--delete:hover {
	background: var(--red-dim);
}

.wish-admin-label {
	font-size: 10px;
	font-weight: 500;
	color: var(--green);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.wish-admin p {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.7;
}

.wish-admin form {
	display: block;
	margin-left: auto;
	margin-bottom: 16px;
}

.wish-notif {
	background: var(--navy-mid);
	border: 0.5px solid var(--navy-light);
	border-left: 2px solid var(--green);
	border-radius: 0 7px 7px 0;
	padding: 12px 14px;
}

.wish-notif-actions {
	font-size: 10px;
	font-weight: 500;
	color: var(--green);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.wish-notif-actions-btn {
	display: inline-block;
	background: transparent;
	color: var(--text-secondary);
	text-transform: uppercase;
	font-size: 12px;
	padding: 2px 18px;
	border-radius: 4px;
	border: 0.5px solid var(--navy-light);
	cursor: pointer;
	white-space: nowrap;
	margin-right: auto;
	transition: color 0.15s, border-color 0.15s;
}

.wish-notif-actions-btn:hover {
	color: var(--text-primary);
	border-color: var(--text-muted);
	background: var(--blue-dim);
}

.wish-notif-label {
	font-size: 10px;
	font-weight: 500;
	color: var(--green);
	letter-spacing: 0.07em;
	text-transform: uppercase;
	margin-bottom: 6px;
}

.wish-notif p {
	font-size: 13px;
	color: var(--text-muted);
	line-height: 1.7;
	margin-bottom: 6px;
}

.wish-notif form {
    display: flex;         /* Magic starts here */
    align-items: center;   /* Keeps them perfectly centered vertically */
    gap: 10px;             /* Adds space between the input and button */
}

/* ------------------------------------------------------------
Pagination
------------------------------------------------------------ */

.pagination {
	padding: 24px 40px;
	display: flex;
	align-items: center;
	gap: 6px;
	border-bottom: 0.5px solid var(--navy-mid);
	flex-wrap: wrap;
}

.page-btn {
	display: inline-block;
	background: transparent;
	border: 0.5px solid var(--navy-light);
	border-radius: 6px;
	padding: 6px 12px;
	font-size: 13px;
	color: var(--text-muted);
	font-family: inherit;
	cursor: pointer;
	transition: color 0.15s, border-color 0.15s, background 0.15s;
	text-decoration: none;
}

.page-btn:hover {
	color: var(--text-primary);
	border-color: var(--text-muted);
}

.page-btn--active {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

.page-btn--active:hover {
	background: var(--blue);
	border-color: var(--blue);
	color: #fff;
}

.page-btn--next { 
	margin-left: 4px; 
}

.page-ellipsis {
	font-size: 13px;
	color: var(--text-dimmer);
	padding: 0 4px;
}

/* ------------------------------------------------------------
Tips List and Stats Rows
------------------------------------------------------------ */

.tips-list {
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.tips-list li {
	font-size: 12px;
	color: var(--text-muted);
	padding-left: 14px;
	position: relative;
	line-height: 1.5;
}

.tips-list li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 7px;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: var(--navy-light);
}

.stat-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 6px 0;
	border-bottom: 0.5px solid var(--navy-mid);
	font-size: 12px;
}

.stat-row:last-child { 
	border: none; 
}

.stat-label { 
	color: var(--text-faint); 
}

.stat-val { 
	color: var(--text-primary); 
	font-weight: 500; 
}

/* ------------------------------------------------------------
Responsive
------------------------------------------------------------ */

@media (max-width: 700px) {
  .nav { padding: 0 16px; gap: 16px; }
  .nav-link { display: none; }
  .breadcrumb, .page-header, .section, .pagination { padding-left: 16px; padding-right: 16px; }
  .page-header h1 { font-size: 24px; }
  .layout { grid-template-columns: 1fr; }
  .main { border-right: none; }
  .sidebar { position: static; border-top: 0.5px solid var(--navy-mid); padding: 20px 16px; }
  .form-row { grid-template-columns: 1fr; }
  .footer { padding: 16px; flex-direction: column; align-items: flex-start; }
}
