/* Poker In The Wood — Casino Tournament Calendar styles.
   Scoped under .pcc-* so they sit inside the Kadence theme without leaking.
   Shares the league's warm wood-and-felt palette (see pitw-league/assets/pitw.css). */

.pcc {
	--pcc-felt:   #1b4332;
	--pcc-felt-2: #143026;
	--pcc-wood:   #3b2417;
	--pcc-wood-2: #5a3a26;
	--pcc-gold:   #e0b34d;
	--pcc-cream:  #f4ece0;
	--pcc-red:    #a31621;
	--pcc-ink:    #1a120b;
	--pcc-line:   rgba(224,179,77,.28);
	color: var(--pcc-ink);
}

/* ---- disclaimer ---- */
.pcc-disclaimer {
	background: linear-gradient(160deg, var(--pcc-wood-2), var(--pcc-wood));
	color: var(--pcc-cream);
	border: 1px solid var(--pcc-line);
	border-left: 5px solid var(--pcc-gold);
	border-radius: 12px;
	padding: .9rem 1.1rem;
	margin: 0 0 1.25rem;
	font-size: .92rem;
	line-height: 1.5;
}
.pcc-disclaimer strong { color: var(--pcc-gold); }
.pcc-disclaimer-date { display: inline-block; opacity: .8; font-style: italic; }

/* ---- controls ---- */
.pcc-controls { margin: 0 0 1rem; }
.pcc-search-row { margin-bottom: .6rem; }
.pcc-search {
	width: 100%;
	padding: .65rem .9rem;
	border-radius: 10px;
	border: 1px solid var(--pcc-line);
	background: #fff;
	font-size: 1rem;
}
.pcc-filters {
	display: flex;
	flex-wrap: wrap;
	gap: .6rem;
	align-items: flex-end;
}
.pcc-field { display: flex; flex-direction: column; gap: .2rem; flex: 1 1 150px; min-width: 130px; }
.pcc-field-label {
	font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
	font-weight: 700; color: var(--pcc-wood-2);
}
.pcc-filter {
	padding: .5rem .6rem;
	border-radius: 9px;
	border: 1px solid var(--pcc-line);
	background: #fff;
	font-size: .92rem;
	width: 100%;
}
.pcc-reset {
	flex: 0 0 auto;
	background: var(--pcc-red); color: #fff; border: 0;
	padding: .55rem .9rem; border-radius: 9px; cursor: pointer; font-weight: 600;
}
.pcc-reset:hover { filter: brightness(1.08); }

.pcc-viewtoggle { display: inline-flex; margin-top: .7rem; border: 1px solid var(--pcc-line); border-radius: 9px; overflow: hidden; }
.pcc-view { background: #fff; border: 0; padding: .45rem 1rem; cursor: pointer; font-weight: 600; color: var(--pcc-wood-2); }
.pcc-view + .pcc-view { border-left: 1px solid var(--pcc-line); }
.pcc-view.is-active { background: var(--pcc-felt); color: var(--pcc-cream); }

.pcc-count { font-size: .85rem; color: var(--pcc-wood-2); margin: .2rem 0 1rem; font-weight: 600; }

/* ---- region sections (Southern California leads) ---- */
.pcc-regiongroup { margin: 0 0 1.75rem; }
.pcc-regiongroup + .pcc-regiongroup { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 2px dashed var(--pcc-line); }
.pcc-region-h {
	font-size: 1.55rem; margin: 0 0 1rem; color: var(--pcc-felt-2);
	border-left: 6px solid var(--pcc-gold); padding-left: .6rem; line-height: 1.2;
}

/* ---- month groups + event cards ---- */
.pcc-monthgroup { margin: 0 0 1.5rem; }
.pcc-monthgroup.is-past { opacity: .62; }
.pcc-monthgroup-h {
	font-size: 1.15rem; margin: 0 0 .7rem;
	color: var(--pcc-wood-2); border-bottom: 2px solid var(--pcc-line); padding-bottom: .3rem;
}

.pcc-event {
	display: flex; gap: .9rem;
	background: #fff;
	border: 1px solid var(--pcc-line);
	border-radius: 12px;
	padding: .85rem 1rem;
	margin: 0 0 .7rem;
	box-shadow: 0 4px 14px rgba(0,0,0,.06);
}
.pcc-event.is-past { opacity: .55; }

.pcc-event-when {
	flex: 0 0 64px;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	background: var(--pcc-felt); color: var(--pcc-cream);
	border-radius: 10px; padding: .4rem .2rem; text-align: center;
}
.pcc-event-mon { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--pcc-gold); }
.pcc-event-day { font-size: 1.6rem; font-weight: 800; line-height: 1; }
.pcc-event-dow { font-size: .66rem; opacity: .8; }
.pcc-event-recur {
	font-size: .68rem; font-weight: 700; line-height: 1.2; text-align: center;
	color: var(--pcc-gold); text-transform: uppercase; letter-spacing: .04em;
}

.pcc-event-body { flex: 1 1 auto; min-width: 0; }
.pcc-event-title { font-weight: 800; font-size: 1.05rem; line-height: 1.2; color: var(--pcc-ink); }
.pcc-event-casino { font-size: .85rem; color: var(--pcc-wood-2); margin: .1rem 0 .45rem; font-weight: 600; }

ul.pcc-event-meta { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0 0 .35rem; padding: 0; }
.pcc-tag {
	font-size: .76rem; font-weight: 600;
	background: rgba(27,67,50,.08); color: var(--pcc-felt-2);
	border-radius: 6px; padding: .12rem .5rem;
}
.pcc-tag-buy { background: rgba(224,179,77,.22); color: #6b4e15; }
.pcc-tag-gtd { background: rgba(163,22,33,.12); color: var(--pcc-red); }

.pcc-event-notes { font-size: .82rem; color: #4a4a4a; margin: .25rem 0 .35rem; line-height: 1.4; }

.pcc-event-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; font-size: .8rem; }
.pcc-event-link { font-weight: 700; color: var(--pcc-felt); text-decoration: none; }
.pcc-event-link:hover { text-decoration: underline; }
.pcc-event-src { color: var(--pcc-wood-2); opacity: .85; text-decoration: underline; }
.pcc-event-verified { margin-left: auto; font-style: italic; opacity: .7; font-size: .75rem; }

.pcc-empty-dated, .pcc-fallback {
	background: rgba(27,67,50,.06); border: 1px dashed var(--pcc-line);
	border-radius: 10px; padding: 1rem; color: var(--pcc-wood-2);
}

/* ---- month / calendar view ---- */
.pcc-month { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.1rem; align-items: start; }
.pcc-cal { background: #fff; border: 1px solid var(--pcc-line); border-radius: 12px; padding: .8rem; }
.pcc-cal-name { font-weight: 800; color: var(--pcc-wood-2); margin-bottom: .4rem; text-align: center; }
table.pcc-cal-grid { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pcc-cal-grid th { font-size: .62rem; color: var(--pcc-wood-2); padding: .2rem 0; font-weight: 700; }
.pcc-cal-grid th.we { opacity: .55; }
.pcc-cal-grid td { height: 34px; text-align: center; vertical-align: top; position: relative; border-radius: 6px; }
.pcc-cal-d { font-size: .72rem; color: #777; }
.pcc-cal-grid td.has-evt { background: var(--pcc-felt); color: var(--pcc-cream); cursor: pointer; }
.pcc-cal-grid td.has-evt .pcc-cal-d { color: var(--pcc-cream); font-weight: 700; }
.pcc-cal-grid td.has-evt:hover, .pcc-cal-grid td.has-evt:focus { outline: 2px solid var(--pcc-gold); }
.pcc-cal-dot {
	position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
	min-width: 14px; height: 14px; line-height: 14px; border-radius: 8px;
	background: var(--pcc-gold); color: var(--pcc-ink); font-size: .6rem; font-weight: 800;
}
.pcc-cal-detail, .pcc-cal-recurring {
	grid-column: 1 / -1;
	background: #fff; border: 1px solid var(--pcc-line); border-radius: 12px; padding: 1rem;
}
.pcc-cal-detail h4, .pcc-cal-recurring h4 { margin: 0 0 .6rem; color: var(--pcc-wood-2); }
.pcc-cal-hint { color: var(--pcc-wood-2); opacity: .8; margin: 0; }
ul.pcc-cal-evts { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
ul.pcc-cal-evts li { border-left: 3px solid var(--pcc-gold); padding: .2rem 0 .2rem .7rem; font-size: .9rem; }
.pcc-cal-evcasino { color: var(--pcc-wood-2); font-weight: 600; font-size: .82rem; }
.pcc-cal-evmeta { font-size: .8rem; color: #555; }
.pcc-cal-evlinks { margin-top: .25rem; font-size: .82rem; display: flex; gap: .8rem; flex-wrap: wrap; }
.pcc-cal-evlinks a { font-weight: 700; color: var(--pcc-felt); text-decoration: none; }
.pcc-cal-evlinks a:hover { text-decoration: underline; }
.pcc-cal-src { font-weight: 400 !important; opacity: .8; text-decoration: underline !important; }

/* ---- directory ---- */
.pcc-directory { margin: 1rem 0; }
.pcc-dir-region { font-size: 1.2rem; color: var(--pcc-wood-2); margin: 1.4rem 0 .6rem; border-bottom: 2px solid var(--pcc-line); padding-bottom: .3rem; }
.pcc-dir-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8rem; }
.pcc-dir-card { background: #fff; border: 1px solid var(--pcc-line); border-radius: 12px; padding: .9rem 1rem; box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.pcc-dir-name { font-weight: 800; font-size: 1.05rem; color: var(--pcc-ink); }
.pcc-dir-city { font-size: .82rem; color: var(--pcc-wood-2); margin-bottom: .4rem; }
.pcc-dir-notes { font-size: .8rem; color: #4a4a4a; line-height: 1.4; margin: .4rem 0; }
.pcc-dir-links { display: flex; flex-direction: column; gap: .2rem; margin-top: .5rem; }
.pcc-dir-links a { font-weight: 700; color: var(--pcc-felt); text-decoration: none; font-size: .88rem; }
.pcc-dir-links a:hover { text-decoration: underline; }

.pcc-badge { display: inline-block; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 6px; background: rgba(0,0,0,.08); }
.pcc-badge-ok { background: rgba(27,67,50,.16); color: var(--pcc-felt-2); }
.pcc-badge-warn { background: rgba(163,22,33,.12); color: var(--pcc-red); }

/* ---- mobile ---- */
@media (max-width: 560px) {
	.pcc-field { flex: 1 1 100%; }
	.pcc-event-when { flex-basis: 54px; }
	.pcc-event-verified { margin-left: 0; width: 100%; }
}
