/**
 * Sinema Indonesia Theme - Main Styles
 *
 * @package SinemaTheme
 * @since 1.0.0
 */

/* ============================================
   PAGE LOADER
   ============================================ */

.page-loader {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: var(--dark-bg);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	opacity: 1;
	transition: opacity 0.3s ease;
}

.page-loader.hidden {
	opacity: 0;
	pointer-events: none;
}

.loader-spinner {
	width: 50px;
	height: 50px;
	border: 3px solid rgba(0, 217, 255, 0.2);
	border-top-color: var(--primary);
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
}

@keyframes spin {
	to { transform: rotate(360deg); }
}

/* ============================================
   SITE HEADER
   ============================================ */

.site-header {
	position: sticky;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background: var(--dark-card);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	z-index: 1000;
	box-shadow: var(--card-shadow);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	gap: var(--spacing-md);
}

/* Logo */
.site-logo a {
	display: block;
}

.logo-img {
	height: 50px;
	width: auto;
}

/* Primary Navigation */
.primary-nav {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.nav-menu {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: var(--spacing-md);
}

.nav-menu li {
	position: relative;
}

.nav-menu a {
	display: block;
	padding: var(--spacing-xs) var(--spacing-sm);
	color: var(--text-light);
	font-weight: 500;
	transition: var(--transition-fast);
	border-radius: 8px;
}

.nav-menu a:hover,
.nav-menu li.current-menu-item > a {
	color: var(--primary);
	background: rgba(0, 217, 255, 0.1);
	text-shadow: var(--neon-glow);
}

/* User Profile Dropdown */
.user-profile-dropdown {
	position: relative;
}

.profile-trigger {
	display: flex;
	align-items: center;
	gap: 8px;
	background: transparent;
	border: 2px solid var(--border-color);
	border-radius: 50px;
	padding: 5px 12px 5px 5px;
	cursor: pointer;
	transition: var(--transition-fast);
}

.profile-trigger:hover {
	border-color: var(--primary);
	box-shadow: 0 0 15px rgba(0, 217, 255, 0.3);
}

.user-avatar-img,
.user-avatar-initials {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.user-avatar-initials {
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--primary);
	color: var(--text-dark);
	font-weight: 700;
	font-size: 14px;
	text-transform: uppercase;
}

/* Dropdown Icon / Chevron */
.profile-trigger svg {
	color: var(--text-light);
	transition: var(--transition-fast);
}

.profile-trigger:hover svg {
	color: var(--primary);
}

/* Dropdown Menu */
.profile-dropdown-menu {
	position: absolute;
	top: calc(100% + 10px);
	right: 0;
	background: var(--dark-card);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	min-width: 200px;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: var(--transition-fast);
	box-shadow: var(--card-shadow);
	overflow: hidden;
}

.user-profile-dropdown:hover .profile-dropdown-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.dropdown-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 16px;
	color: var(--text-light);
	transition: var(--transition-fast);
	border-bottom: 1px solid var(--border-color);
}

.dropdown-item:last-child {
	border-bottom: none;
}

.dropdown-item:hover {
	background: rgba(0, 217, 255, 0.1);
	color: var(--primary);
}

.dropdown-item.logout:hover {
	background: rgba(255, 0, 110, 0.1);
	color: #ff006e;
}

.dropdown-item svg {
	flex-shrink: 0;
}

/* Auth Links (Not Logged In) */
.header-auth-links {
	display: flex;
	gap: var(--spacing-sm);
}

.btn-login,
.btn-register {
	padding: 8px 20px;
	border-radius: 8px;
	font-weight: 600;
	transition: var(--transition-fast);
}

.btn-login {
	color: var(--text-light);
	border: 2px solid var(--border-color);
}

.btn-login:hover {
	border-color: var(--primary);
	color: var(--primary);
}

.btn-register {
	background: linear-gradient(135deg, var(--primary), #00a1cc);
	color: var(--text-dark);
	border: none;
}

.btn-register:hover {
	box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
	transform: translateY(-2px);
}

/* ============================================
   SITE MAIN
   ============================================ */

.site-main {
	min-height: calc(100vh - var(--header-height) - 300px);
	padding: 0px;
}

.content-wrapper {
    margin-top:17px;
	border-radius: 20px;
	padding: 10px;

}



.entry-title {
	margin: 0;
	color: var(--text-light);
}

.entry-content {
	line-height: 1.8;
}

/* Template: Full Width */
.template-fullwidth .fullwidth-content {
	max-width: 100%;
	padding: 0;
}

/* Template: Clean */
.template-clean {
	padding: 0;
	min-height: 100vh;
}

body.template-clean {
	background-attachment: fixed;
}

.sinema-auth-wrapper {
    display:flex;
    align-items:center;
}

/* ============================================
   SITE FOOTER
   ============================================ */

.site-footer {
	background: var(--dark-card);
	border-top: 1px solid var(--border-color);
	padding: 20px;
	margin-top: var(--spacing-lg);
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: var(--spacing-lg);
	margin-bottom: var(--spacing-md);
}

.footer-section h4.footer-title {
	margin-bottom: var(--spacing-sm);
	color: var(--primary);
	font-size: 1.1rem;
}

.footer-logo img {
	height: 100px;
	margin-bottom: var(--spacing-sm);
}

.footer-description {
	color: var(--text-muted);
	line-height: 1.6;
}

/* Footer Menu */
.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li {
	margin-bottom: var(--spacing-xs);
}

.footer-menu a {
	color: var(--text-muted);
	transition: var(--transition-fast);
}

.footer-menu a:hover {
	color: var(--primary);
	padding-left: 5px;
}

/* Social Links */
.social-links-footer {
	display: flex;
	gap: var(--spacing-sm);
	    justify-content: flex-end;
}

.social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 2px solid var(--border-color);
	color: var(--text-light);
	transition: var(--transition-fast);
}

.social-link:hover {
	border-color: var(--primary);
	background: rgba(0, 217, 255, 0.1);
	color: var(--primary);
	transform: translateY(-3px);
	box-shadow: 0 5px 15px rgba(0, 217, 255, 0.3);
}

/* Footer Bottom */
.footer-bottom {
	padding-top: var(--spacing-md);
	border-top: 1px solid var(--border-color);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: var(--spacing-sm);
}

.copyright,
.credits {
	margin: 0;
	color: var(--text-muted);
	font-size: 0.9rem;
}

.credits a {
	color: var(--primary);
}

/* ============================================
   PAGE TRANSITIONS
   ============================================ */

.page-transition-fade {
	animation: fadeIn var(--transition-slow);
}

@keyframes fadeIn {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ============================================
   RESPONSIVE HEADER MODIFICATIONS
   ============================================ */

/* Hide desktop elements on mobile screens */
@media (max-width: 992px) {
    .site-header .primary-nav {
        display: none;
    }
    
    .logo-img {
        height: 40px;
    }

    .header-inner {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    /* Hide desktop auth links on mobile */
    .header-auth-links {
        display: none; 
    }
    
    .site-header .container {
        padding: 0 15px;
    }
}

/* Header Groups */
.header-group-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-group-right {
    display: flex;
    align-items: center;
    gap: 15px; 
    justify-content: flex-end;
}

/* ============================================
   COIN DISPLAY
   ============================================ */

.coin-display {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    background: var(--dark-lighter);
    border-radius: 20px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.coin-display:hover {
    box-shadow: var(--neon-glow);
}

.coin-display svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
}


/* ============================================
   STICKY BOTTOM MOBILE BAR
   ============================================ */

.mobile-bottom-nav {
	display: none; /* Default: Hidden */
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--dark-card);
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: space-around;
    align-items: center;
    height: 60px;
}

@media (max-width: 992px) {
    .mobile-bottom-nav {
        display: flex; /* Show on mobile/tablet */
    }
    
    /* Tambahkan padding ke main content agar tidak tertutup nav bawah */
    .site-main {
        padding-bottom: 60px !important;
    }
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.7rem;
    text-decoration: none;
    transition: color var(--transition-fast);
    padding: 5px 0;
    width: 25%;
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-item svg {
    width: 24px;
    height: 24px;
    margin-bottom: 2px;
    stroke: currentColor;
    fill: none;
}


/* ============================================
   MOBILE AUTH LINKS (Guest Users - Top Header)
   ============================================ */

.mobile-auth-links {
    display: none;
}

@media (max-width: 992px) {
    .mobile-auth-links {
        display: flex;
        gap: 10px;
        justify-content: flex-end;
    }
    
    .mobile-auth-links .bottom-nav-item {
        padding: 8px 30px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.85rem;
        transition: var(--transition-fast);
        text-decoration: none;
        white-space: nowrap;
    }
    
    .mobile-auth-links .bottom-nav-item:first-child {
        color: var(--text-light);
        border: 2px solid var(--border-color);
        background: transparent;
    }
    
    .mobile-auth-links .bottom-nav-item:first-child:hover {
        border-color: var(--primary);
        color: var(--primary);
    }
    
    .mobile-auth-links .bottom-nav-item.primary {
        background: linear-gradient(135deg, var(--primary), #00a1cc);
        color: var(--text-dark);
        border: none;
    }
    
    .mobile-auth-links .bottom-nav-item.primary:hover {
        box-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
        transform: translateY(-2px);
    }
}


/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.site-main {
		padding: 0px;
	}
	
	.content-wrapper {
	    margin-top:17px;
		padding: 10px;
	}
	
	.footer-content {
		grid-template-columns: 1fr;
		gap: var(--spacing-md);
	}
	
	.footer-bottom {
		flex-direction: column;
		text-align: center;
	}
	
	.social-links {
		justify-content: center;
	}
}

@media (max-width: 576px) {
	.logo-img {
		height: 40px;
	}
	
	h1 { font-size: 1.75rem; }
	h2 { font-size: 1.5rem; }
}