/*
Theme Name: SMO SSL Theme
Theme URI: https://www.era-mark.com/
Author: SMO
Author URI: SSL Theme
Description: A WordPress theme based on SMO SSL Theme
Version: 1.1
*/

:root {
	--bg-color: #FFF5EE; /* 米白色背景 */
	--bg-color-sidebar: #FFC0CB; /* 櫻花粉側邊欄 */
	--text-color: #AFC1D6; /* 灰藍色文字 */
	--bs-primary: #98FB98 !important; /* 抹茶綠主色 */
	--bs-primary-hover-bg: #7FC97A !important; /* 深抹茶綠 */
	--bs-secondary: #C9A0DC !important; /* 藤紫色次色 */
	--bs-secondary-hover-bg: #B080C3 !important; /* 深藤紫色 */
	--accent-color: #FFD700 !important; /* 金色點綴 */
	--bs-top-banner: #610f2b !important;
}

.dark-theme{
	--bg-color: #121212;
	--bg-color-sidebar: #181818;
	--text-color: #ffffff;
	--bs-primary: #f78ca0 !important; 
	--bs-primary-hover-bg: #f56b90 !important;
	--bs-secondary: #4d4d4d !important;
	--bs-secondary-hover-bg: #3a3a3a !important;
	--bs-top-banner: #80bfff !important;
}

.btn-primary {
    background-color: var(--bs-primary) !important;
    border-color: var(--bs-primary) !important;
    color: var(--text-light) !important;
}

.btn-primary:hover {
    background-color: var(--bs-primary-hover-bg) !important;
    border-color: var(--bs-primary-hover-bg) !important;
    color: var(--text-light) !important;
}

.btn-secondary {
    background-color: var(--bs-secondary) !important;
    border-color: var(--bs-secondary) !important;
    color: var(--bs-btn-color) !important;
}

.btn-secondary:hover {
    background-color: var(--bs-secondary-hover-bg) !important;
    border-color: var(--bs-secondary-hover-bg) !important;
    color: var(--bs-btn-color) !important;
}

body {
	background-color: var(--bg-color);
	color: var(--text-color);
	transition: background-color 0.3s, color 0.3s;
	margin: 0;
}

a {
	/*background-color: var(--bg-color);*/
	color: var(--text-color);
	transition: background-color 0.3s, color 0.3s;
}

/* 左側選單 */
.sidebar {
	width: 250px;
	background-color: var(--bg-color-sidebar);
	height: calc(100vh - 60px);
	position: fixed;
	top: 60px;
	left: 0;
	transition: width 0.3s ease;
	overflow: hidden;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}

.sidebar.collapsed {
	width: 76px;
}

.sidebar a {
	text-decoration: none;
	/*color: #fff;*/
	display: flex;
	align-items: center;
	padding: 10px 20px;
	transition: all 0.2s ease;
	border: 1px solid #292929;
	margin: 5px;
	border-radius: 8px;
	flex-shrink: 0;
	width: 80%;
	justify-content: flex-start;
}

.sidebar.collapsed a {
	justify-content: center;
	width: 50px;
}

.sidebar a:hover {
	background-color: #292929;
	border-color: #f78ca0;
}

.sidebar a i {
	font-size: 24px;
	flex-shrink: 0;
}

.sidebar a span {
	display: inline-block;
	margin-left: 15px;
	width: 150px;
	text-align: left;
	white-space: nowrap;
}

.sidebar.collapsed a span {
	display: none;
}

/* sidebar-header 專屬樣式 */
.sidebar-header {
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 20px;
}

.sidebar-header a {
	text-decoration: none;
	/*color: #fff;*/
	display: flex;
	align-items: center;
	padding: 10px 20px;
	transition: all 0.2s ease;
	border: 1px solid #292929;
	margin: 5px;
	border-radius: 8px;
	width: 80%;
	justify-content: flex-start;
}

.sidebar.collapsed .sidebar-header a {
	justify-content: center; 
}

.sidebar-header a:hover {
	background-color: #292929;
	border-color: #f78ca0;
}


/* sidebar-footer 專屬樣式 */
.sidebar-footer {
	width: 100%; /* 確保 footer 占據整個 sidebar 寬度 */
	display: flex;
	flex-direction: column; /* 按鈕垂直排列 */
	align-items: center; /* 讓按鈕水平置中 */
	margin-top: auto;
	padding-bottom: 10px;
	border-top: 1px solid #292929;
}

.sidebar-footer a {
	text-decoration: none;
	/*color: #fff;*/
	display: flex;
	align-items: center;
	padding: 10px 20px;
	transition: all 0.2s ease;
	border: 1px solid #292929;
	margin: 5px;
	border-radius: 8px;
	width: 80%; /* 與上方選單一致的寬度 */
	justify-content: flex-start; /* 展開時文字左對齊 */
}

.sidebar.collapsed .sidebar-footer a {
	justify-content: center; /* 縮小時圖示置中 */
}

.sidebar-footer a:hover {
	background-color: #292929;
	border-color: #f78ca0;
}
/* 上方選單 */
.top-navbar {
	width: 100%;
	height: 60px;
	background-color: var(--bg-color-sidebar);
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1001;
	border-bottom: 1px solid #333;
	transition: padding-left 0.3s ease;
}

.top-navbar.expanded {
	padding-left: 80px;
}

.top-navbar .left-menu {
	display: flex;
	align-items: center;
}

.top-navbar .right-menu {
	display: flex;
	align-items: center;
}

.top-navbar a {
	/*color: #fff;*/
	text-decoration: none;
	margin: 0px 5px 0px 5px;
}

.top-navbar a:hover {
	color: #f78ca0;
}

.top-navbar2 {
	width: 100%;
	height: 60px;
	background-color: var(--bg-color-sidebar);
	display: none;
	align-items: center;
	justify-content: space-between;
	padding: 0 20px;
	margin-top: 60px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 1;
	border-bottom: 1px solid #aaa;
	transition: padding-left 0.3s ease;
}
.top-navbar2 span{
	margin:0 auto;
}
.top-navbar2.expanded {
	padding-left: 80px;
}

.top-navbar2 .left-menu {
	display: flex;
	align-items: center;
}

.top-navbar2 .right-menu {
	display: flex;
	align-items: center;
}

.top-navbar2 a {
	/*color: #fff;*/
	text-decoration: none;
	margin: 0px 5px 0px 5px;
}

.top-navbar2 a:hover {
	color: #f78ca0;
}

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  display: none;
  justify-content: space-around;
  border-top: 1px solid #333;
  z-index: 999;
}

.mobile-nav .nav-item {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  color: #fff;
  font-size: 14px;
  text-decoration: none;
}

.mobile-nav .nav-item i {
  display: block;
  font-size: 18px;
  margin-bottom: 2px;
}

.mobile-nav .nav-item:hover {
  background-color: #111;
}

.content {
	margin-left: 250px;
	margin-top: 60px;
	/*padding: 20px;*/
	transition: margin-left 0.3s ease;
	background-color: var(--bg-color);
    /*padding-bottom: 60px;*/
}

.content.expanded {
	margin-left: 60px;
}

.btn.btn-subscribe {
    color: #f78ca0; /* 字體顏色 */
    border: 2px solid #f78ca0; /* 框線顏色 */
    background-color: transparent; /* 背景透明 */
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease; /* 添加過渡效果 */
}

.btn.btn-subscribe:hover {
    color: #fff;
    background-color: #f78ca0; /* 懸停時背景變為 #f78ca0 */
    border-color: #f78ca0; /* 框線保持不變 */
}

.profile-menu > ul > li > a{
    color: #333333;
    border: none;
	width:88%;
    background-color: transparent; /* 背景透明 */
    padding: 5px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: all 0.3s ease; /* 添加過渡效果 */	
}

/*=====頁尾開始======*/
footer {
	/*background-color: #181818;*/
	/*background: linear-gradient(90deg, #4d1d2880, #1f1f1f 37.35%, #1f1f1f 62.65%, #4d1d2880);*/
	background: linear-gradient(90deg, rgba(77, 29, 40, 0.5), rgb(31, 31, 31) 37.35%, rgb(31, 31, 31) 62.65%, rgba(77, 29, 40, 0.5));
	padding: 40px 20px;
}
.footer-logo {
	color:#fff;
	font-size: 24px;
	font-weight: bold;
	margin-bottom: 10px;
}

.footer-logo span {
	color: #f78ca0;
}

.footer-description {
	font-size: 14px;
	color: #ccc;
}

.footer-title {
	color:#fff;
	font-size: 16px;
	font-weight: bold;
	margin-bottom: 10px;
}

.footer-link {
	font-size: 14px;
	/*color: #fff;*/
	text-decoration: none;
}

.footer-link:hover {
	color: #f78ca0;
	text-decoration: underline;
}

.footer-social {
	font-size: 20px;
}

.footer-social a {
	/*color: #fff;*/
	margin-right: 10px;
}

.footer-social a:hover {
	color: #f78ca0;
}

.footer-payment {
	width: 86px;
	flex-direction: column;
    display: flex; /* 使用 Flexbox */
    justify-content: center; /* 水平置中 */
    /* align-items: center; /* 垂直置中 */
    gap: 10px; /* 圖標間的間距 (可根據需求調整) */
}

.footer-payment img {
	width: 50px;
	min-height: 20px;
	/*margin-right: 10px;*/
}

.footer-bottom {
	font-size: 12px;
	color: #ccc;
	/*margin-top: 20px;*/
	text-align: center;
}

.footer-bottom a {
	color: #f78ca0;
	text-decoration: none;
}

.footer-bottom a:hover {
	text-decoration: underline;
}
/*=====頁尾結束======*/

.top-banner{
	background-color: var(--bs-top-banner) !important;
}

/*=====浮動選單開始======*/
/* 背景霧化 */
.blurred-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* 黑色透明背景 */
    backdrop-filter: blur(10px); /* 背景霧化效果 */
    z-index: 999;
    pointer-events: none; /* 禁止點擊背景 */
}

/* 浮動框 */
.floating-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: #1f1f1f;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    width: 60%;
    max-width: 600px;
}

.modal-content {
    color: #fff;
}

.interest-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 10px;
    border-radius: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.interest-item img {
    border-radius: 10px;
}

.interest-item:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* 隱藏樣式 */
.d-none {
    display: none !important;
}
/*=====浮動選單結束======*/

.visa-icon-size {
	color: #1434cb;
	font-size: 50px;
}
.mastercard-icon-size {
	font-size: 50px;
}
.usdt-icon-size {
	color: #26a17b;
	font-size: 50px;
}

.navbar-brand {
    background-color: var(--bg-color-sidebar);
}
.navbar-brand .logo-highlight {
    color: #f78ca0;
}

.navbar-link-icon {
	color: #f78ca0;
}

.navbar-link {
    background-color: var(--bg-color-sidebar);
	font-size: 1rem;
	text-decoration: none;
	color: #fff;
}

.navbar-link:hover {
  background-color: #363434;
  border-color: #f78ca0;
  color: #f78ca0;
}

.profile-menu #profileMenu span{
	margin:0 auto;
}

#lang_label_short{
  display: none;
}

#lang_label, #profile_label{
  display: block;
}

.mobile-nav {
	position: fixed;
	bottom: 0;
	width: 100%;
	background-color: var(--bg-color-sidebar);
	display: none;
	justify-content: space-around;
	padding: 10px 0;
	box-shadow: 0 -1px 5px rgba(0, 0, 0, 0.2);
	z-index: 1000;
}

.mobile-nav a {
	text-align: center;
	font-size: 14px;
	color: #fff;
	background-color: transparent;
}

/* 手機版專用 RWD 調整 */
@media (max-width: 1024px) {
 
  #lang_label, #profile_label{
    display: none;
  }
  
  #lang_label_short, #profile_icon{
    display: block;
  }

  .top-navbar .right-menu .profile-data {
    display: none;
  }
}

@media (max-width: 800px) {
  body{  
    padding-bottom: 60px;
  }
  .content {
	margin-top:60px;  
  }
  
  .mobile-toolbar {
    display: flex;
    justify-content: center;
    background-color: var(--bg-color-sidebar);
    padding: 10px 0;
  }
  .ms-5 {
    margin-left: 10px !important;
  }

  .me-5 {
    margin-right: 0 !important;
  }

  .top-banner{
    margin-top:120px;
  }

  .sidebar {
    display: none; /* 預設隱藏 */
    position: fixed;
    top: 60px;
    left: 0;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 60px);
    z-index: 2000;
    background-color: var(--bg-color-sidebar);
    flex-direction: column;
  }

  .sidebar.active {
    display: flex;
	transform: translateX(0);
  }
  
  .sidebar {
	transform: translateX(-100%);
	transition: transform 0.3s ease;
  }

  .blurred-background {
    top: 60px; /* 也要配合往下 */
    height: calc(100vh - 60px);
  }

  .top-navbar {
    padding: 0 10px;
  }
  
  .top-navbar2 {
	  display:flex;
  }

  .top-navbar .navbar-brand{
  }
  
  .top-navbar .navbar-link {
    display: none;
  }
  
  #lang_label, #profile_label{
    display: none;
  }
  
  #lang_label_short, #profile_icon{
    display: block;
  }
  
  .top-navbar .right-menu .profile-data {
    display: none;
  }

  .content {
    margin-left: 0 !important;
  }

  .footer {
    text-align: center;
  }

  .floating-modal {
    width: 90%;
    padding: 20px;
  }

  .hero-section h1 {
    font-size: 24px;
  }

  .explore-section .row > div.col-md-3 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 10px;
  }

  .profile-menu,
  .dropdown-menu {
    /*width: 100%;*/
  }
  .mobile-nav {
    display: flex;
  }
}
