* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #8b7500;
  --primary-dark: #6b5800;
  --primary-light: #d4af37;
  --secondary: #2c3e50;
  --accent: #e8d4b8;
  --background: #ffffff;
  --text: #333333;
  --border: #e0e0e0;
  --success: #27ae60;
  --danger: #e74c3c;
}

[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

[dir="ltr"] {
  direction: ltr;
  text-align: left;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background-color: var(--background);
  line-height: 1.6;
}

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

/* Header */
.header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 28px;
  font-weight: bold;
}

.nav {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 2px solid white;
  color: white;
  padding: 8px 16px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.lang-btn.active {
  background: white;
  color: var(--primary);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 80px 20px;
  text-align: center;
}

.hero-content h2 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 20px;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-size: 36px;
  margin-bottom: 40px;
  color: var(--primary);
  text-align: center;
}

/* Photos Grid */
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.photo-card {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.photo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.photo-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}

.photo-card p {
  padding: 15px;
  background: var(--accent);
  font-weight: 500;
  color: var(--primary-dark);
}

/* Price Section */
.price-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.stat-card {
  background: linear-gradient(135deg, var(--accent) 0%, #f5e6d3 100%);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--secondary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.stat-value {
  display: block;
  font-size: 28px;
  font-weight: bold;
  color: var(--primary);
}

/* Chart */
.chart-container {
  background: white;
  padding: 30px;
  border-radius: 10px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

#priceChart {
  max-height: 400px;
}

/* Price Table */
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.price-table th {
  background: var(--primary);
  color: white;
  padding: 15px;
  text-align: center;
  font-weight: 600;
}

.price-table td {
  padding: 15px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.price-table tr:hover {
  background: var(--accent);
}

.price-table .positive {
  color: var(--success);
  font-weight: bold;
}

.price-table .negative {
  color: var(--danger);
  font-weight: bold;
}

/* News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.news-card {
  background: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.news-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.news-content {
  padding: 20px;
}

.news-category {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 10px;
}

.news-card h3 {
  margin: 10px 0;
  font-size: 18px;
  color: var(--primary);
}

.news-card p {
  color: #666;
  margin-bottom: 15px;
  font-size: 14px;
}

.news-date {
  display: block;
  font-size: 12px;
  color: #999;
}

/* Footer */
.footer {
  background: var(--secondary);
  color: white;
  padding: 30px 0;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-content h2 {
    font-size: 32px;
  }

  .hero-content p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .photos-grid {
    grid-template-columns: 1fr;
  }

  .price-stats {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr;
  }
}
