/*
Theme Name: Pasang Togel Sydney Today
Theme URI: https://pasangtogelsydneytoday.com
Author: Pasang Togel Sydney Today
Author URI: https://pasangtogelsydneytoday.com
Description: Theme paito warna & data pengeluaran Sydney (SDY) dengan update result otomatis, SEO meta, canonical, robots, dan schema markup bawaan.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pts
*/

:root {
	--pts-primary: #5b2a91;
	--pts-primary-dark: #35135c;
	--pts-primary-soft: #efe7f9;
	--pts-accent: #a6e22e;
	--pts-accent-dark: #6f9e12;
	--pts-page: #0f0818;
	--pts-wrap: #f5f3f8;
	--pts-surface: #ffffff;
	--pts-header: #f4f2f7;
	--pts-text: #1f1a26;
	--pts-muted: #6c6478;
	--pts-border: #e2dbeb;
	--pts-radius: 4px;
	--pts-font: "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--pts-page);
	color: var(--pts-text);
	font-family: var(--pts-font);
	font-size: 16px;
	line-height: 1.65;
}

img { max-width: 100%; height: auto; }
a { color: var(--pts-primary); text-decoration: none; }
a:hover, a:focus { color: var(--pts-accent-dark); text-decoration: underline; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 9999;
	width: auto; height: auto; clip: auto;
	background: #fff; color: var(--pts-primary); padding: 8px 14px; border-radius: var(--pts-radius);
}

/* ---------- Layout wrapper ---------- */
.site {
	max-width: 1000px;
	margin: 0 auto;
	background: var(--pts-wrap);
	min-height: 100vh;
	box-shadow: 0 0 40px rgba(0, 0, 0, .45);
}

.topbar {
	background: var(--pts-primary-dark);
	color: #d9cdea;
	font-size: 13px;
	padding: 6px 16px;
	display: flex;
	justify-content: space-between;
	gap: 12px;
	align-items: center;
	min-height: 32px;
}
.topbar strong { color: var(--pts-accent); }
.topbar .social-mini { display: flex; gap: 10px; }
.topbar .social-mini a { color: #d9cdea; display: inline-flex; }
.topbar .social-mini a:hover { color: var(--pts-accent); }
.topbar .social-mini svg { width: 15px; height: 15px; }

.site-header {
	background: var(--pts-header);
	padding: 18px 16px;
	text-align: center;
	border-bottom: 1px solid var(--pts-border);
}
.site-branding a { display: inline-block; }
.site-branding img {
	display: block;
	width: auto;
	max-height: 128px;
	margin: 0 auto;
}
.site-title-text { margin: 0; font-size: 30px; font-weight: 900; color: var(--pts-primary); }

/* ---------- Navigation ---------- */
.main-navigation {
	background: linear-gradient(180deg, var(--pts-primary) 0%, var(--pts-primary-dark) 100%);
	position: relative;
}
.main-navigation ul {
	list-style: none;
	margin: 0;
	padding: 0 8px;
	display: flex;
	flex-wrap: wrap;
}
.main-navigation li { position: relative; }
.main-navigation a {
	display: block;
	color: #fff;
	padding: 12px 16px;
	font-size: 15px;
	font-weight: 600;
	border-right: 1px solid rgba(255, 255, 255, .12);
}
.main-navigation li:last-child a { border-right: 0; }
.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a {
	background: var(--pts-accent);
	color: var(--pts-primary-dark);
	text-decoration: none;
}
.main-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 200px;
	background: var(--pts-primary-dark);
	z-index: 50;
	padding: 0;
	flex-direction: column;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu { display: flex; }
.menu-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: #fff;
	font: 600 15px var(--pts-font);
	padding: 12px 16px;
	width: 100%;
	text-align: left;
	cursor: pointer;
}
.menu-toggle .bars { display: inline-block; vertical-align: middle; margin-right: 8px; }
.menu-toggle .bars span { display: block; width: 20px; height: 2px; background: var(--pts-accent); margin: 4px 0; }

/* ---------- Content grid ---------- */
.site-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 280px;
	gap: 20px;
	padding: 16px;
}
.content-area { min-width: 0; }

.card,
.widget {
	background: var(--pts-surface);
	border: 1px solid var(--pts-border);
	border-radius: var(--pts-radius);
	padding: 16px 18px;
	margin-bottom: 16px;
}

.breadcrumbs {
	font-size: 13px;
	color: var(--pts-muted);
	margin: 0 0 10px;
}
.breadcrumbs a { color: var(--pts-muted); }
.breadcrumbs span.sep { margin: 0 6px; }

.entry-title {
	font-size: 28px;
	line-height: 1.25;
	margin: 0 0 14px;
	font-weight: 800;
	color: var(--pts-text);
}
.entry-meta { font-size: 13px; color: var(--pts-muted); margin: -6px 0 14px; }
.entry-content { text-align: justify; }
.entry-content h2 {
	text-align: center;
	font-size: 23px;
	margin: 26px 0 10px;
	line-height: 1.3;
}
.entry-content h3 { font-size: 19px; margin: 22px 0 8px; text-align: left; }
.entry-content p { margin: 0 0 14px; }
.entry-content ul, .entry-content ol { text-align: left; padding-left: 22px; }
.entry-content table { border-collapse: collapse; width: 100%; }
.entry-content blockquote {
	margin: 16px 0; padding: 10px 16px;
	border-left: 4px solid var(--pts-accent);
	background: var(--pts-primary-soft);
}
.post-thumb img { border-radius: var(--pts-radius); margin-bottom: 14px; }

/* ---------- Sidebar ---------- */
.widget-title {
	margin: 0 0 10px;
	padding-bottom: 6px;
	font-size: 17px;
	font-weight: 800;
	color: var(--pts-primary);
	border-bottom: 2px solid var(--pts-accent);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { border-bottom: 1px dashed var(--pts-border); }
.widget li:last-child { border-bottom: 0; }
.widget li a { display: block; padding: 6px 0; color: var(--pts-text); font-size: 15px; }
.widget li a:hover { color: var(--pts-primary); }
.widget .mini-results li { display: flex; justify-content: space-between; padding: 6px 0; font-size: 14px; }
.widget .mini-results li b { letter-spacing: 2px; color: var(--pts-primary); }
.widget-latest { text-align: center; }
.widget-latest .date { font-size: 13px; color: var(--pts-muted); }

/* ---------- Result box ---------- */
.sdy-result {
	text-align: center;
	background: linear-gradient(160deg, var(--pts-primary-dark), var(--pts-primary));
	color: #fff;
	border-radius: 8px;
	padding: 18px 14px;
	margin: 0 0 18px;
}
.sdy-result .label { margin: 0; font-size: 14px; letter-spacing: 2px; text-transform: uppercase; color: var(--pts-accent); font-weight: 800; }
.sdy-result .date { margin: 2px 0 10px; font-size: 15px; color: #e6dcf3; }
.balls { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.ball {
	width: 58px; height: 58px;
	border-radius: 50%;
	display: inline-flex; align-items: center; justify-content: center;
	position: relative;
	background: radial-gradient(circle at 32% 28%, #ffffff 0 6%, #c79cff 7% 22%, #8b4fd6 50%, #4c1d86 100%);
	box-shadow: inset -4px -6px 10px rgba(0, 0, 0, .25), 0 4px 10px rgba(0, 0, 0, .3);
}
.ball:nth-child(even) {
	background: radial-gradient(circle at 32% 28%, #ffffff 0 6%, #e3ff9c 7% 22%, #a6e22e 50%, #5f8d0c 100%);
}
.ball span {
	width: 34px; height: 34px;
	border-radius: 50%;
	background: #fff;
	color: #2a0f4a;
	display: flex; align-items: center; justify-content: center;
	font-weight: 900;
	font-size: 21px;
	box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .08);
}
.balls.small .ball { width: 40px; height: 40px; }
.balls.small .ball span { width: 24px; height: 24px; font-size: 15px; }
.sdy-result .meta { margin: 10px 0 0; font-size: 13px; color: #d9cdea; }
.sdy-empty {
	padding: 14px;
	background: var(--pts-primary-soft);
	border: 1px dashed var(--pts-primary);
	border-radius: var(--pts-radius);
	text-align: center;
	color: var(--pts-primary-dark);
}

/* ---------- Prize table (live draw) ---------- */
.prize-table { width: 100%; border-collapse: collapse; margin: 0 0 16px; }
.prize-table th, .prize-table td { border: 1px solid var(--pts-border); padding: 8px 10px; text-align: center; }
.prize-table th { background: var(--pts-primary); color: #fff; font-weight: 700; }
.prize-table td.num { font-weight: 900; letter-spacing: 6px; font-size: 20px; color: var(--pts-primary-dark); }
.sdy-live > p { text-align: left; }
.countdown {
	display: inline-block;
	background: var(--pts-accent);
	color: var(--pts-primary-dark);
	font-weight: 900;
	padding: 4px 12px;
	border-radius: 20px;
	font-variant-numeric: tabular-nums;
}

/* ---------- Paito warna ---------- */
.paito-wrap { margin: 10px 0 18px; }
.paito-palette {
	display: flex;
	border: 3px solid #d7d7d7;
	border-radius: 4px;
	overflow: hidden;
	margin-bottom: 8px;
}
.paito-palette button {
	flex: 1;
	height: 30px;
	border: 0;
	cursor: pointer;
	padding: 0;
	font: 800 12px var(--pts-font);
	color: #fff;
	position: relative;
}
.paito-palette button.clr { background: #2f2f2f; flex: 1.2; }
.paito-palette button.active { box-shadow: inset 0 0 0 3px var(--pts-primary-dark); }
.paito-palette button.active::after {
	content: "";
	position: absolute; left: 50%; bottom: 3px;
	width: 6px; height: 6px; margin-left: -3px;
	border-radius: 50%;
	background: var(--pts-primary-dark);
}
.paito-palette button.clr.active::after { background: var(--pts-accent); }
.paito-help { font-size: 12.5px; color: var(--pts-muted); margin: 0 0 8px; text-align: left; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.paito {
	border-collapse: collapse;
	width: 100%;
	min-width: 620px;
	font-size: 13px;
	text-align: center;
	user-select: none;
}
table.paito th {
	background: var(--pts-primary);
	color: #fff;
	font-weight: 800;
	font-size: 12px;
	padding: 6px 2px;
	border: 1px solid var(--pts-primary-dark);
	letter-spacing: .5px;
}
table.paito td {
	border: 1px solid #dcd6e4;
	padding: 3px 0;
	width: 3.4%;
	font-weight: 800;
	color: #111;
	cursor: pointer;
	font-variant-numeric: tabular-nums;
	transition: background-color .1s;
}
table.paito td.d-last { border-right: 2px solid var(--pts-primary); }
table.paito tr:nth-child(even) td { background-color: #faf8fc; }
table.paito td.empty { color: #c6bfd0; cursor: default; }
table.paito td.latest { outline: 2px solid var(--pts-accent-dark); outline-offset: -2px; }
table.paito td[data-c] { background-color: var(--c) !important; }

/* ---------- Data table ---------- */
.year-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; justify-content: center; }
.year-tabs a {
	padding: 5px 14px;
	border-radius: 20px;
	background: var(--pts-primary-soft);
	color: var(--pts-primary-dark);
	font-weight: 700;
	font-size: 14px;
}
.year-tabs a.active { background: var(--pts-primary); color: #fff; }
table.data-sdy { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data-sdy th { background: var(--pts-primary); color: #fff; padding: 8px; border: 1px solid var(--pts-primary-dark); }
table.data-sdy td { padding: 7px 8px; border: 1px solid var(--pts-border); text-align: center; }
table.data-sdy tr:nth-child(even) td { background: #faf8fc; }
table.data-sdy td.res { font-weight: 900; letter-spacing: 4px; color: var(--pts-primary-dark); font-size: 17px; }
table.data-sdy td.res6 { color: var(--pts-muted); letter-spacing: 2px; }

/* ---------- Jadwal ---------- */
table.jadwal { width: 100%; border-collapse: collapse; }
table.jadwal th { background: var(--pts-primary); color: #fff; padding: 8px; border: 1px solid var(--pts-primary-dark); }
table.jadwal td { padding: 8px; border: 1px solid var(--pts-border); text-align: center; }
table.jadwal tr.today td { background: #f3ffd9; font-weight: 700; }

/* ---------- FAQ ---------- */
.faq details {
	border: 1px solid var(--pts-border);
	border-radius: var(--pts-radius);
	margin: 0 0 8px;
	background: #fff;
	text-align: left;
}
.faq summary {
	cursor: pointer;
	padding: 10px 14px;
	font-weight: 700;
	color: var(--pts-primary-dark);
	list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--pts-accent-dark); font-weight: 900; margin-right: 8px; }
.faq details[open] summary::before { content: "–"; }
.faq .answer { padding: 0 14px 12px; }

/* ---------- Social ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.social-links li { border: 0 !important; }
.social-links a {
	display: inline-flex !important;
	align-items: center;
	gap: 6px;
	padding: 6px 10px !important;
	border-radius: 20px;
	background: var(--pts-primary-soft);
	color: var(--pts-primary-dark) !important;
	font-size: 13px !important;
	font-weight: 700;
}
.social-links a:hover { background: var(--pts-primary); color: #fff !important; text-decoration: none; }
.social-links svg { width: 16px; height: 16px; }

/* ---------- Posts list ---------- */
.post-list article { border-bottom: 1px solid var(--pts-border); padding: 0 0 14px; margin: 0 0 14px; }
.post-list article:last-child { border-bottom: 0; margin-bottom: 0; }
.post-list h2 { font-size: 20px; margin: 0 0 6px; text-align: left; }
.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }
.pagination .page-numbers {
	padding: 5px 12px; border: 1px solid var(--pts-border); border-radius: var(--pts-radius); background: #fff;
}
.pagination .current { background: var(--pts-primary); color: #fff; border-color: var(--pts-primary); }

/* ---------- Forms ---------- */
.search-form { display: flex; gap: 6px; }
.search-form input[type="search"] {
	flex: 1; min-width: 0;
	padding: 8px 10px;
	border: 1px solid var(--pts-border);
	border-radius: var(--pts-radius);
	font: inherit;
}
.search-form button, .btn {
	background: var(--pts-primary);
	color: #fff;
	border: 0;
	border-radius: var(--pts-radius);
	padding: 8px 14px;
	font: 700 14px var(--pts-font);
	cursor: pointer;
}
.search-form button:hover, .btn:hover { background: var(--pts-primary-dark); color: #fff; text-decoration: none; }

/* ---------- Footer ---------- */
.site-footer {
	background: var(--pts-primary-dark);
	color: #d9cdea;
	padding: 20px 16px 16px;
	font-size: 14px;
	text-align: center;
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--pts-accent); }
.footer-menu ul { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; }
.footer-social { display: flex; justify-content: center; gap: 12px; margin: 0 0 12px; }
.footer-social a { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: rgba(255, 255, 255, .1); }
.footer-social a:hover { background: var(--pts-accent); color: var(--pts-primary-dark); }
.footer-social svg { width: 17px; height: 17px; }
.footer-note {
	max-width: 760px;
	margin: 0 auto 10px;
	font-size: 12.5px;
	line-height: 1.6;
	color: #bfb1d4;
}
.age-badge {
	display: inline-block;
	border: 2px solid var(--pts-accent);
	color: var(--pts-accent);
	border-radius: 50%;
	width: 34px; height: 34px; line-height: 30px;
	font-weight: 900; font-size: 12px;
	margin-bottom: 8px;
}
.copyright { font-size: 13px; margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
	.site-content { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.menu-toggle { display: block; }
	.main-navigation ul { display: none; flex-direction: column; padding: 0; }
	.main-navigation.toggled ul { display: flex; }
	.main-navigation a { border-right: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
	.main-navigation .sub-menu { position: static; display: flex; background: rgba(0, 0, 0, .15); }
	.site-branding img { max-height: 92px; }
	.entry-title { font-size: 23px; }
	.entry-content { text-align: left; }
	.entry-content h2 { font-size: 20px; }
	.ball { width: 48px; height: 48px; }
	.ball span { width: 28px; height: 28px; font-size: 17px; }
	.topbar .tagline { display: none; }
}
@media (max-width: 420px) {
	.site-content { padding: 10px; }
	.card, .widget { padding: 14px; }
}
