.header {position: fixed; top: 0; left: 0; width: 100%; padding: 20px 0; z-index: 1000; background-color: var(--header-bg); transition: all 0.3s ease;}.header.scrolled {background-color: var(--header-bg); box-shadow: 0 2px 10px var(--shadow-color);}.header-container {max-width: 1400px; margin: 0 auto; padding: 0 20px; width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; column-gap: 20px;}.header-left {display: flex; align-items: center;}.header-left .logo {margin-right: 20px;}.header-right {display: flex; align-items: center; gap: 30px; position: relative; justify-self: end;}.header-center {display: flex; justify-content: center;}.header-ad {display: flex; align-items: center; justify-content: center;}.header-ad img {max-width: 728px; width: 100%; height: auto; display: block;}.logo {margin: 0 auto;}.logo img {height: 60px; width: auto;}[data-theme="dark"] .logo img {filter: brightness(0) invert(1);}.menu-button {width: 30px; height: 24px; position: relative; cursor: pointer; z-index: 1001;}.menu-button span {display: block; width: 100%; height: 2px; background-color: var(--text-primary); position: absolute; transition: all 0.3s ease;}.menu-button span:first-child {top: 0;}.menu-button span:nth-child(2) {top: 50%; transform: translateY(-50%);}.menu-button span:last-child {bottom: 0;}.menu-button.active span:first-child {transform: rotate(45deg); top: 50%;}.menu-button.active span:nth-child(2) {opacity: 0;}.menu-button.active span:last-child {transform: rotate(-45deg); bottom: 50%;}.search-button {margin-left: 0px; cursor: pointer;}.search-button i {font-size: 18px; color: var(--text-primary);}.social-icons {display: flex;}.social-icons a {margin-right: 15px; font-size: 20px; transition: color 0.3s ease; color: var(--text-primary);}.social-icons a:hover {color: var(--text-muted);}.header-search {position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background-color: rgba(0, 0, 0, 0.9); z-index: 2000; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease;}.header-search.active {display: flex; opacity: 1;}.header-search-container {position: relative; width: 100%; max-width: 600px; padding: 0 20px;}.header-search .search-form {display: flex; width: 100%; background: #fff; border-radius: 0; overflow: hidden; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);}.header-search .search-field {flex: 1; border: none; outline: none; padding: 20px 25px; font-size: 18px; color: #333; background: transparent; border-radius: 0;}.header-search .search-field::placeholder {color: #999;}.header-search .search-submit {width: 60px; height: 62px; border: none; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.3s ease; border-radius: 0;}.header-search .search-submit:hover {background: #333;}.header-search .search-submit i {font-size: 18px;}.header-search-close {position: absolute; top: -80px; right: 20px; width: 40px; height: 40px; border: 2px solid #fff; background: transparent; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s ease;}.header-search-close:hover {background: #fff; color: #000;}.header-search-close i {font-size: 16px;}.popup-menu {position: fixed; top: 0; left: 0; transform: translateX(-100%); width: 400px; height: 100vh; background-color: var(--header-bg); padding: 100px 40px; box-shadow: 5px 0 15px var(--shadow-color); transition: transform 0.3s ease; z-index: 1000; overflow-y: auto;}.popup-menu.active {transform: translateX(0);}.popup-nav ul {margin-bottom: 40px;}.popup-nav ul li {margin-bottom: 20px; position: relative;}.popup-nav ul li a {font-size: 18px; font-weight: 500; transition: color 0.3s ease; color: var(--text-primary);}.popup-nav ul li a:hover {color: var(--text-muted);}.popup-nav .menu-item-has-children > a {padding-right: 36px; display: inline-block;}.popup-nav .submenu-toggle {position: absolute; right: 0; top: 0; width: 32px; height: 32px; background: none; border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;}.popup-nav .submenu-toggle i {font-size: 12px; color: var(--text-primary); transition: transform 0.2s ease;}.popup-nav li.open > .submenu-toggle i {transform: rotate(180deg);}.popup-nav .sub-menu {display: none; margin-top: 10px; padding-left: 14px; border-left: 1px solid var(--border-color);}.popup-nav li.open > .sub-menu {display: block;}.popup-search {display: flex; gap: 10px; margin-bottom: 30px; padding: 0; border: 1px solid var(--border-color); border-radius: 0; background: var(--bg-secondary); overflow: hidden;}.popup-search .search-form {display: flex; width: 100%; align-items: stretch; margin: 0;}.popup-search .search-field {flex: 1; border: none; background: transparent; outline: none; padding: 12px 15px; font-size: 14px; color: var(--text-primary); margin: 0; height: auto; min-height: 44px; border-radius: 0;}.popup-search .search-field::placeholder {color: var(--text-muted);}.popup-search .search-submit {width: 44px; height: 44px; border-radius: 0; border: none; background: var(--card-bg); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s ease; margin: 0; flex-shrink: 0;}.popup-search .search-submit:hover {background: var(--text-primary); border-color: var(--text-primary);}.popup-search .search-submit i {color: var(--text-primary); font-size: 14px; transition: color .2s ease;}.popup-search .search-submit:hover i {color: var(--bg-primary);}.popup-social {display: flex; gap: 14px; justify-content: center; margin-top: 10px;}.popup-social a {width: 38px; height: 38px; border: 1px solid var(--border-color); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--text-primary); background: var(--card-bg); transition: all .2s ease;}.popup-social a:hover {background: var(--text-primary); border-color: var(--text-primary); color: var(--bg-primary); transform: translateY(-2px); box-shadow: 0 6px 20px var(--shadow-color);}.dark-mode-toggle {background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%); border: 0; border-radius: 50px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); margin-left: 20px; margin-right: 0px; position: relative; overflow: hidden;}.dark-mode-toggle::before {content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%); opacity: 0; transition: opacity 0.3s ease; border-radius: 50px;}.dark-mode-toggle:hover {transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);}.dark-mode-toggle:hover::before {opacity: 1;}.dark-mode-toggle:active {transform: translateY(0); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);}.dark-mode-toggle i {color: #fff; font-size: 16px; z-index: 1; position: relative; transition: all 0.3s ease;}.dark-mode-toggle.active {background: linear-gradient(135deg, #f8f8f8 0%, #e8e8e8 100%); box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);}.dark-mode-toggle.active::before {background: linear-gradient(135deg, #2c2c2c 0%, #1a1a1a 100%);}.dark-mode-toggle.active i {color: #333;}.dark-mode-toggle.active:hover {box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);}@media (max-width: 768px) {.dark-mode-toggle {width: 36px; height: 36px; margin-left: 15px; margin-right: 0px;}.dark-mode-toggle i {font-size: 14px;}}@media (max-width: 768px) {.header {padding: 15px 0;}.header-container {padding: 0 15px; column-gap: 10px; grid-template-columns: auto 1fr auto;}.social-icons, .search-button {display: none;}.header-center {display: flex; grid-column: 2 / 3; justify-content: center; margin-top: 0;}.header-ad img {max-width: 180px; max-height: 40px; width: auto; height: auto; object-fit: contain;}.header-right {gap: 15px;}.logo img {height: 45px;}.menu-button {width: 25px; height: 20px;}.search-button {display: block !important;}.dark-mode-toggle {display: block !important; width: 35px; height: 35px; font-size: 14px;}.header-search-container {padding: 0 15px;}.header-search .search-field {padding: 15px 20px; font-size: 16px;}.header-search .search-submit {width: 50px; height: 52px;}.header-search-close {top: -60px; right: 15px; width: 35px; height: 35px;}.header-search-controls {top: -50px; left: 15px;}}@media (max-width: 400px) {.popup-menu {width: 100vw; padding: 100px 20px;}}@media (max-width: 480px) {.header {padding: 10px 0;}.header-container {padding: 0 10px;}.logo img {height: 40px;}.menu-button {width: 22px; height: 18px;}}
