/* Base styles */
* {
  box-sizing: border-box;
}

html {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: white;
  color: #333;
  line-height: 1.6;
  height: 100%;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
header {
  background: white;
  color: #333;
  padding: 0.5rem 0;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 15px;
}

header nav a {
  color: #333;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  transition: all 0.3s ease;
  font-weight: 500;
  background: white;
  border: 1px solid #ddd;
}

header nav a:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

header nav a[aria-current="page"] {
  background: #f0f0f0;
  font-weight: 700;
}

/* Home page title - no button styling, just clickable text */
header nav a[href="/index.html"] {
  font-size: 1.8rem;
  font-weight: 400;
  margin-bottom: 8px;
  background: none;
  border: none;
  padding: 0;
  color: #333;
  text-decoration: none;
  font-family: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

header nav a[href="/index.html"]:hover {
  background: none;
  transform: none;
  text-decoration: none;
  color: #666;
}

/* Navigation tabs - clean, simple design */
.nav-tabs {
  display: flex;
  gap: 0;
  background: white;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #ddd;
  justify-content: center;
  align-items: center;
}

.nav-tabs a {
  padding: 15px 25px;
  border-right: 1px solid #ddd;
  background: white;
  color: #333;
  text-decoration: none;
  transition: all 0.3s ease;
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 0;
}

.nav-tabs a:last-child {
  border-right: none;
}

.nav-tabs a:hover {
  background: #e0e0e0 !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 6px 16px rgba(0,0,0,0.2) !important;
  color: #111 !important;
  border-color: #ccc !important;
}

.nav-tabs a[aria-current="page"] {
  background: #f0f0f0;
  font-weight: 600;
}

/* Main content */
main {
  min-height: calc(100vh - 200px);
  padding: 60px 20px 40px 20px;
}

h1 {
  color: #2c3e50;
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
  font-weight: 300;
}

h2 {
  color: #34495e;
  margin-top: 40px;
  margin-bottom: 20px;
  font-size: 1.8rem;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
}

/* About page sections */
.about-section {
  background: white;
  padding: 30px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.about-section ul {
  padding-right: 20px;
}

.about-section li {
  margin-bottom: 8px;
}

/* Hero section */
.hero-section {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 40px;
  border-radius: 15px;
  text-align: center;
  margin: 40px 0;
}

.hero-section h2 {
  color: white;
  border: none;
  margin-top: 0;
}

/* Footer */
footer {
  background: white;
  color: #333;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

/* Burger menu styles */
.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 5px;
}

.burger-line {
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: 0.3s;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border-top: 1px solid #ddd;
}

.mobile-nav.active {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 15px 20px;
  border-bottom: 1px solid #eee;
  text-align: center;
  font-size: 1.1rem;
}

.mobile-nav a:last-child {
  border-bottom: none;
}

/* Responsive design */
@media (max-width: 768px) {
  header nav {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
  }
  
  .nav-tabs {
    display: none;
  }
  
  .burger-menu {
    display: flex;
  }
  
  header nav a[href="/index.html"] {
    font-size: 1.5rem;
    margin-bottom: 0;
  }
  
  h1 {
    font-size: 2rem;
  }
  
  main {
    padding: 20px 10px;
  }
  
  .about-section {
    padding: 20px;
  }
  
  .hero-section {
    padding: 20px;
  }
}

/* Loading and error states */
.loading {
  text-align: center;
  padding: 40px;
  color: #666;
  font-size: 1.1rem;
}

.error {
  text-align: center;
  padding: 20px;
  color: #d32f2f;
  background: #ffebee;
  border-radius: 8px;
  margin: 20px 0;
  border: 1px solid #ffcdd2;
}

/* Gallery specific styles */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0;
  justify-content: center;
}

.tabs button {
  padding: 10px 20px;
  border: 2px solid #ddd;
  border-radius: 25px;
  cursor: pointer;
  background: white;
  transition: all 0.3s ease;
  font-weight: 500;
}

.tabs button:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.tabs button.active {
  background: #3498db;
  color: white;
  border-color: #3498db;
  transform: translateY(-2px);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.grid img, .grid video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.grid img:hover, .grid video:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Video specific styles */
.video-item {
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  transition: all 0.3s ease;
}

.video-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.video-info {
  padding: 20px;
}

.video-title {
  font-weight: bold;
  margin-bottom: 8px;
  color: #2c3e50;
  font-size: 1.1rem;
}

.video-meta {
  font-size: 0.9rem;
  color: #7f8c8d;
}

/* RTL specific adjustments */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .grid {
  direction: rtl;
}

[dir="rtl"] .tabs {
  direction: rtl;
}
