/* --- Header --- */

.site-header {
	position: relative;
	z-index: 100;
	min-height: 250px;
	background-color: #000;
}

.home .site-header {
	min-height: 830px;
}

.site-header__inner {
	position: relative;
	max-width: 1138px;
	margin: 0 auto;
	height: 60px;
	z-index: 1;
	background: url('../images/header/header-bar-bg.png') no-repeat center top;
}

.site-header__logo {
	position: absolute;
	top: 2px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 101;
}

.site-header__logo img {
	width: 673px;
	height: auto;
}

.site-header__bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 240px;
	background: url('../images/header/backgrounds/main_header_bg.jpg') no-repeat top center;
	z-index: 0;
}

.single-news .site-header__bg,
.archive .site-header__bg {
	background-image: url('../images/header/backgrounds/ord_mantell_01.jpg');
}

.post-type-archive-community_blog .site-header__bg {
	background-image: url('../images/header/backgrounds/main_header_bg.jpg');
}

.single-swtor_media .site-header__bg {
	background-image: url('../images/header/backgrounds/coruscant_01.jpg');
}

.single-system_alert .site-header__bg {
	background-image: url('../images/header/backgrounds/hoth_01.jpg');
}

/* --- Navigation Tab --- */

.site-nav {
	position: relative;
	z-index: 102;
	width: 1119px;
	height: 60px;
	margin: -60px auto 0;
	background: url('../images/header/nav-bar-bg.png') no-repeat top center;
}

.site-nav__menu {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 15px;
	height: 60px;
	list-style: none;
	margin: 0;
	padding: 5px 0 0 0;
	box-sizing: content-box;
}

.site-nav__link {
	display: flex;
	align-items: center;
	gap: 5px;
	font: small-caps 700 18px/30px var(--wp--preset--font-family--berling);
	letter-spacing: 1px;
	color: var(--wp--preset--color--gold-nav);
	padding: 0 15px;
	text-decoration: none;
}

.site-nav__link:hover,
.site-nav__link:focus {
	color: var(--wp--preset--color--gold-nav-light);
}

/* Nav Icons */

.site-nav__icon {
	display: inline-block;
	width: 30px;
	height: 30px;
	background: url('../images/header/nav-icons.png') no-repeat;
}

.site-nav__item--about .site-nav__icon { background-position: 0 0; }
.site-nav__item--myswtor .site-nav__icon { background-position: -60px 0; }
.site-nav__item--store .site-nav__icon { background-position: -220px 0; }
.site-nav__item--community .site-nav__icon { background-position: -150px 0; }
.site-nav__item--support .site-nav__icon { background-position: -120px 0; }

.site-nav__link:hover .site-nav__icon,
.site-nav__link:focus .site-nav__icon {
	background-position-y: -30px;
}

/* Secondary Navigation */

.site-nav__sub {
	position: absolute;
	top: 100%;
	left: 0;
	width: 100%;
	text-align: center;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.18s ease;
}

.site-nav__sub::before {
	content: '';
	position: absolute;
	top: -20px;
	left: 0;
	width: 100%;
	height: 20px;
}

.site-nav__sub-divider {
	height: 3px;
	background: url('../images/header/nav-divider.jpg') no-repeat center;
}

.site-nav__sub-menu {
	display: flex;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 5px 0 0;
}

.site-nav__sub-menu a {
	display: block;
	font: 300 16px/18px var(--wp--preset--font-family--news-gothic);
	color: var(--wp--preset--color--gold-nav);
	padding: 5px 15px;
	text-decoration: none;
}

.site-nav__sub-menu a:hover,
.site-nav__sub-menu a:focus {
	color: var(--wp--preset--color--gold-nav-light);
}

/* --- Header Actions --- */

.site-header__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 353px;
	position: relative;
	z-index: 102;
}

.site-header__actions-left,
.site-header__actions-right {
	display: flex;
	align-items: flex-start;
}

.header-btn {
	display: inline-block;
	font: small-caps 700 18px/42px var(--wp--preset--font-family--berling);
	letter-spacing: 2px;
	text-align: center;
	color: var(--wp--preset--color--gold-button);
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
	position: relative;
	height: 37px;
	top: -2px;
}

.header-btn--subscribe {
	width: 230px;
	background: url('../images/header/btn-play-now.png') no-repeat;
	text-indent: 26px;
	clip-path: polygon(0 0, 85% 0, 100% 100%, 15% 100%);
	margin-right: -17px;
}

.header-btn--account {
	width: 149px;
	clip-path: polygon(13% 0, 100% 0, 87% 100%, 0 100%);
	background: url('../images/header/btn-right.png') no-repeat;
	text-indent: 5px;
}

.header-btn--play {
	width: 230px;
	clip-path: polygon(9% 0, 100% 0, 91% 100%, 0 100%);
	background: url('../images/header/btn-play-now-right.png') no-repeat;
	text-indent: -17px;
	margin-left: -23px;
}

.header-btn:lang(fr),
.header-btn:lang(de) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	text-indent: 0;
}

.header-btn--subscribe:lang(fr),
.header-btn--subscribe:lang(de) {
	padding: 4px 15px 0 45px;
}

.header-btn--account:lang(fr),
.header-btn--account:lang(de) {
	padding: 4px 32px 0 42px;
}

.header-btn--play:lang(fr),
.header-btn--play:lang(de) {
	padding: 4px 67px 0 48px;
}

.header-btn--subscribe:lang(fr) {
	font-size: 13px;
	line-height: 18px;
}

.header-btn--account:lang(fr),
.header-btn--play:lang(fr) {
	line-height: 15px;
}

.header-btn--subscribe:lang(de) {
	font-size: 15px;
	line-height: 16px;
}

.header-btn--account:lang(de) {
	line-height: 22px;
}

.header-btn--play:lang(de) {
	line-height: 15px;
}

.header-btn::after {
	content: '';
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 0.2s ease;
}

.header-btn--subscribe::after {
	background: url('../images/header/btn-play-now.png') no-repeat 0 -37px;
}

.header-btn--account::after {
	background: url('../images/header/btn-right.png') no-repeat 0 -37px;
}

.header-btn--play::after {
	background: url('../images/header/btn-play-now-right.png') no-repeat 0 -37px;
}

.header-btn:hover,
.header-btn:focus {
	color: var(--wp--preset--color--gold-button);
}

.header-btn:hover::after,
.header-btn:focus::after {
	opacity: 0.5;
}

.header-btn--account:hover::after,
.header-btn--account:focus::after {
	opacity: 1;
}

/* --- Language Selector --- */

.language-selector {
	display: flex;
	align-items: center;
	gap: 2px;
}

.language-selector__item {
	font: small-caps 700 18px/35px var(--wp--preset--font-family--berling);
	height: 32px;
	padding: 0 11px 0 20px;
	color: var(--wp--preset--color--muted);
	text-shadow: 0 0 3px rgba(0, 0, 0, 0.8);
	position: relative;
}

.language-selector__item::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, transparent 0, transparent 8px, rgba(255, 255, 255, 0.15));
	transform: skewX(45deg);
	z-index: -1;
}

.language-selector__item:hover,
.language-selector__item:focus {
	color: var(--wp--preset--color--text);
}

.language-selector__item.is-active {
	color: var(--wp--preset--color--text);
}

/* --- Responsive Header --- */

@media (max-width: 768px) {
	.site-header__inner {
		flex-wrap: wrap;
		height: auto;
		padding: 10px 15px;
		gap: 10px;
	}

	.site-header__actions {
		flex-wrap: wrap;
		gap: 5px;
	}

	.header-btn {
		font-size: 12px;
		padding: 0 10px;
	}

	.language-selector__item {
		font-size: 14px;
		padding: 0 5px;
	}
}
