/* Modern Styles inspired by TradingView */
:root {
  --primary-color: #2962FF;
  --secondary-color: #131722;
  --accent-color: #F9A825;
  --background-color: #FFFFFF;
  --card-background: #F8F9FD;
  --text-color: #131722;
  --text-light: #787B86;
  --border-color: #E0E3EB;
  --success-color: #089981;
  --danger-color: #F23645;
  --max-width: 1200px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --border-radius: 4px;
}

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

body {
  font-family: 'Cairo', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: var(--background-color);
  text-align: right;
}

a {
  text-decoration: none;
  color: var(--text-color);
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-color);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
}

.container {
  max-width: var(--max-width);
  margin: auto;
  padding: 0 20px;
}

/* Header */
header {
  background-color: var(--background-color);
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo h1 {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

nav ul {
  display: flex;
  gap: 24px;
}

nav ul li a {
  font-weight: 500;
  padding: 8px 0;
  position: relative;
}

nav ul li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  right: 0;
  background-color: var(--primary-color);
  transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
  width: 100%;
}

/* Price Chart Widget */
.price-chart {
  width: 100%;
  background-color: var(--background-color);
  border-bottom: 1px solid var(--border-color);
  padding: 10px 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, var(--card-background), #FFFFFF);
  padding: 60px 0;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 16px;
  color: var(--secondary-color);
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-light);
  max-width: 800px;
  margin: 0 auto 32px;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary-color);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: #1E4DD8;
  color: white;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: white;
}

/* Card Styles */
.card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

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

.card-content {
  padding: 20px;
}

.card-content h3 {
  margin-bottom: 10px;
  color: var(--text-color);
}

.card-content p {
  color: var(--text-light);
  margin-bottom: 15px;
}

/* Grid Layout */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

/* Section Styles */
section {
  padding: 60px 0;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-color);
  font-size: 2rem;
}

.section-light {
  background-color: var(--background-color);
}

.section-dark {
  background-color: var(--card-background);
}

/* Price Card */
.price-card {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--box-shadow);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.price-info h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.price-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-color);
}

.price-change {
  font-size: 1rem;
  font-weight: 500;
}

.price-change.positive {
  color: var(--success-color);
}

.price-change.negative {
  color: var(--danger-color);
}

/* Product Page Styles */
.product-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 20px;
}

.product-header {
  margin-bottom: 40px;
}

.product-header h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.breadcrumbs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.breadcrumbs a {
  color: var(--text-light);
}

.breadcrumbs a:hover {
  color: var(--primary-color);
}

.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.product-gallery {
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  overflow: hidden;
  padding: 20px;
  text-align: center;
}

.product-gallery img {
  max-width: 100%;
  max-height: 400px;
  object-fit: contain;
}

.product-info {
  display: flex;
  flex-direction: column;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-color);
  margin: 20px 0;
}

.product-actions {
  margin: 20px 0;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  background-color: #25D366;
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.whatsapp-button i {
  margin-left: 10px;
  font-size: 1.2rem;
}

.whatsapp-button:hover {
  background-color: #1aa54e;
  color: white;
}

.product-note {
  margin-top: 15px;
  color: var(--text-light);
  font-size: 0.9rem;
}

/* Tabs */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--border-color);
  margin: 40px 0 0;
}

.tab-btn {
  padding: 12px 20px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-weight: 500;
  color: var(--text-light);
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-btn:hover {
  color: var(--primary-color);
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.tab-content {
  display: none;
  padding: 30px 0;
}

.tab-content.active {
  display: block;
}

.tab-content h2 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  text-align: right;
}

.tab-content h3 {
  font-size: 1.2rem;
  margin: 20px 0 10px;
  color: var(--text-color);
}

.tab-content p {
  margin-bottom: 15px;
  color: var(--text-color);
}

/* Specifications Table */
.specifications table {
  width: 100%;
  border-collapse: collapse;
}

.specifications table th,
.specifications table td {
  padding: 12px;
  text-align: right;
  border-bottom: 1px solid var(--border-color);
}

.specifications table th {
  width: 40%;
  font-weight: 500;
  color: var(--text-light);
}

/* Features Section */
.features {
  text-align: center;
}

.feature {
  padding: 20px;
}

.feature i {
  font-size: 2.5rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.feature h3 {
  margin-bottom: 10px;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 40px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content h3 {
  margin-bottom: 20px;
  color: white;
  font-size: 1.2rem;
}

.footer-nav ul li {
  margin-bottom: 10px;
}

.footer-nav ul li a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s ease;
}

.footer-nav ul li a:hover {
  color: white;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 15px 0;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  nav ul {
    gap: 15px;
  }
  
  .product-layout {
    grid-template-columns: 1fr;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .tabs {
    flex-wrap: wrap;
  }
  
  .tab-btn {
    padding: 10px 15px;
  }
}

@media (max-width: 480px) {
  section h2 {
    font-size: 1.6rem;
  }
  
  .card-content {
    padding: 15px;
  }
  
  .product-header h1 {
    font-size: 1.6rem;
  }
  
  .product-price {
    font-size: 1.6rem;
  }
}

/* Price Stats */
.price-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
  padding: 15px;
  background-color: var(--card-background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.price-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.price-stat-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-light);
}

.stat-value {
  font-weight: 600;
  font-size: 1.1rem;
}

.stat-change {
  font-size: 0.9rem;
  font-weight: 500;
  padding: 2px 6px;
  border-radius: 4px;
}

.stat-change.positive {
  color: var(--success-color);
  background-color: rgba(8, 153, 129, 0.1);
}

.stat-change.negative {
  color: var(--danger-color);
  background-color: rgba(242, 54, 69, 0.1);
} 