@import url('./assets/fonts/vazir-font.css');
@import url('./assets/fonts/all.min.css');
@import url('./assets/fonts/flags-emoji-fonts.css');

:root {
  --background-color: #f0f0f0;
  --page-background: #fff;
  --text-color: #222;
  --header-bg: #fff;
  --address-bg: #fafafa;
  --section-title-color: #333;
  --icon-color: #666;
  --btn-bg: #FFD700;
  --btn-color: #000;
  --btn-hover-bg: #FFB800;
  --contact-bg: #9b59b6;
  --contact-hover-bg: #8e44ad;
  --social-bg: #833AB4;
  --social-hover-bg: #E1306C;
  --footer-bg: #222;
  --footer-color: #fff;
  --box-shadow-color: rgba(0,0,0,0.1);
  --box-shadow-hover: rgba(0,0,0,0.15);
  --nav-icon-text-color: #333;
  --nav-icon-hover-bg: #f0f0f0;
  --accent-color: #9b59b6;
}

.dark-mode {
  --background-color: #121212;
  --page-background: #1e1e1e;
  --text-color: #e0e0e0;
  --header-bg: #2d2d2d;
  --address-bg: #2d2d2d;
  --section-title-color: #f0f0f0;
  --icon-color: #b0b0b0;
  --btn-bg: #2c7da0;
  --btn-color: #ffffff;
  --btn-hover-bg: #3a9fc5;
  --contact-bg: #9b59b6;
  --contact-hover-bg: #8e44ad;
  --social-bg: #833AB4;
  --social-hover-bg: #E1306C;
  --footer-bg: #2d2d2d;
  --footer-color: #e0e0e0;
  --box-shadow-color: rgba(0,0,0,0.3);
  --box-shadow-hover: rgba(0,0,0,0.4);
  --nav-icon-text-color: #e0e0e0;
  --nav-icon-hover-bg: #2d2d2d;
  --accent-color: #9b59b6;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'vazir', sans-serif;
  background: var(--background-color);
  color: var(--text-color);
  line-height: 1.7;
  font-size: calc(14px + 0.3vw);
  display: flex;
  justify-content: center;
  min-height: 100vh;
  overflow: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

.flag-emoji {
  font-family: "Twemoji Country Flags", serif;
}

.page-container {
  width: 100%;
  max-width: 800px;
  background: var(--page-background);
  height: 100vh;
  position: relative;
  box-shadow: 0 0 20px var(--box-shadow-color);
  display: flex;
  flex-direction: column;
  transition: background-color 0.5s ease, box-shadow 0.5s ease;
}

header {
  background: var(--header-bg);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 5px var(--box-shadow-color);
  z-index: 1000;
  flex-shrink: 0;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.brand-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.brand-container img {
  height: 32px;
  width: 32px;
  margin-left: 10px;
  border-radius: 50%;
  border: 1px solid black;
  object-fit: cover;
  background-color: white;
}

.brand-container h1 {
  font-size: 1.3rem;
  margin: 0;
  color: var(--text-color);
  transition: color 0.3s ease;
}

.theme-switch-wrapper {
  display: none;
  align-items: center;
  order: 1;
}

.theme-switch-label {
  margin-left: 10px;
  font-size: 0.9rem;
}

.theme-switch {
  display: inline-block;
  height: 24px;
  position: relative;
  width: 44px;
}

.theme-switch input {
  display: none;
}

.slider {
  background-color: #ccc;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: .4s;
}

.slider:before {
  background-color: #fff;
  bottom: 4px;
  content: "";
  height: 16px;
  left: 4px;
  position: absolute;
  transition: .4s;
  width: 16px;
}

input:checked + .slider {
  background-color: #9b59b6;
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 34px;
}

.slider.round:before {
  border-radius: 50%;
}

.content-scroll {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background-color: transparent;
  transition: background-color 0.3s ease;
  
  scrollbar-width: thin;
  scrollbar-color: rgba(155, 89, 182, 0.5) transparent;
}

.content-scroll::-webkit-scrollbar {
  width: 6px;
}

.content-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.content-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(155, 89, 182, 0.5);
  border-radius: 10px;
}

.content-scroll::-webkit-scrollbar-thumb:hover {
  background-color: rgba(155, 89, 182, 0.8);
}

.dark-mode .content-scroll {
  scrollbar-color: rgba(155, 89, 182, 0.6) transparent;
}

.dark-mode .content-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(155, 89, 182, 0.6);
}

.banner {
  position: relative;
  width: 100%;
  height: 150px;
  overflow: visible;
}

.logo-container {
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.banner-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  border: 1px solid var(--text-color);
  box-shadow: 0 2px 10px var(--box-shadow-color);
  background: white;
}

.banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero {
  text-align: center;
  padding: 60px 15px 30px;
  margin-top: 0;
}

.hero img {
  display: none;
}

.hero h2 {
  margin: clamp(10px, 2vw, 20px) 0 clamp(5px, 1vw, 10px);
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
}

.brands {
  font-size: clamp(0.85rem, 2.5vw, 1.1rem);
  margin: clamp(8px, 1.5vw, 15px) 0;
  line-height: 1.6;
}

.gallery {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px 0;
  margin: 0 auto;
  width: 100%;
}

.gallery img {
  max-width: 90%;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
}

.address {
  text-align: center;
  padding: clamp(15px, 3vw, 25px);
  background: var(--address-bg);
  border-radius: clamp(8px, 1.5vw, 15px);
  margin: clamp(15px, 3vw, 25px) auto;
  font-size: clamp(0.85rem, 2.5vw, 1rem);
  max-width: 90%;
  box-shadow: 0 3px 10px var(--box-shadow-color);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.section-title {
  text-align: center;
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  margin: clamp(20px, 4vw, 30px) 0 clamp(10px, 2vw, 20px);
  color: var(--section-title-color);
  font-weight: 700;
  transition: color 0.3s ease;
}

.section-title i {
  margin-left: 8px;
  color: var(--icon-color);
  transition: color 0.3s ease;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 15px;
  margin: 15px auto;
  width: 90%;
}

.btn {
  background: var(--btn-bg);
  color: var(--btn-color);
  padding: clamp(10px, 2vw, 16px) clamp(15px, 3vw, 25px);
  border: none;
  border-radius: clamp(6px, 1.2vw, 10px);
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
  text-decoration: none;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn i {
  margin-left: clamp(6px, 1.2vw, 10px);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.btn:hover {
  background: var(--btn-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--box-shadow-hover);
}

.contact {
  text-align: center;
  padding: clamp(10px, 2vw, 20px);
}

.contact a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--contact-bg);
  color: #fff;
  padding: clamp(10px, 2vw, 16px) clamp(15px, 3vw, 25px);
  border-radius: clamp(6px, 1.2vw, 10px);
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.contact a:hover {
  background: var(--contact-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.contact i, .social i {
  margin-left: clamp(6px, 1.2vw, 10px);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.social {
  text-align: center;
  margin: clamp(15px, 3vw, 25px) 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--social-bg);
  color: #fff;
  padding: clamp(10px, 2vw, 16px) clamp(15px, 3vw, 25px);
  border-radius: clamp(6px, 1.2vw, 10px);
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  font-size: clamp(0.9rem, 2.5vw, 1.1rem);
}

.social a:hover {
  background: var(--social-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.nav-app-icons {
  display: flex;
  justify-content: space-around;
  margin: 20px 0;
  flex-wrap: wrap;
}

.app-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--nav-icon-text-color);
  padding: 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.app-icon:hover {
  background-color: var(--nav-icon-hover-bg);
  transform: translateY(-3px);
}

.app-icon i {
  font-size: 2rem;
  margin-bottom: 8px;
}

.app-icon .fab.fa-google {
  color: #4285F4;
}

.app-icon .fab.fa-waze {
  color: #33CCFF;
}

.app-icon .icon-neshan {
  color: #E74C3C;
  font-size: 2rem;
}

.app-icon .icon-balad {
  color: #2ECC71;
  font-size: 2rem;
}

.app-icon .fa.fa-map-marked-alt {
  color: #9C27B0;
}

#more-maps-link {
  display: none;
}

.map-feature-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 1.5rem;
  margin: 20px 0;
}

.map-feature-icons i {
  color: var(--nav-icon-text-color);
  transition: color 0.3s ease;
}

.map-feature-icons i:hover {
  color: var(--accent-color);
  cursor: pointer;
}

footer {
  text-align: center;
  padding: 15px;
  background: var(--footer-bg);
  color: var(--footer-color);
  font-size: 0.9rem;
  margin-top: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

html {
  transition: background-color 0.5s ease;
}

html.dark-mode {
  background-color: var(--background-color);
}