/*
Theme Name: UnixGold
Theme URI: https://unixgold.ir
Author: UnixGold Team
Author URI: https://unixgold.ir
Description: Premium Persian RTL fintech WordPress theme for UnixGold - online gold investment and trading platform. Built with Elementor compatibility, dark mode, and SEO optimization.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: unixgold
Tags: fintech, gold, investment, rtl, persian, dark-mode, elementor, seo
*/

:root {
  --color-navy: #0a1628;
  --color-navy-light: #142845;
  --color-navy-lighter: #1e3a5f;
  --color-gold: #c9a227;
  --color-gold-light: #e6c34a;
  --color-gold-dark: #a8861c;
  --color-white: #ffffff;
  --color-gray-50: #f9fafb;
  --color-gray-100: #f3f4f6;
  --color-gray-200: #e5e7eb;
  --color-gray-300: #d1d5db;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-600: #4b5563;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-gray-900: #111827;
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-accent: #c9a227;

  --font-fa: 'Vazir', 'IRANSans', 'Tahoma', sans-serif;
  --font-en: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-gold: 0 4px 20px rgba(201, 162, 39, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --container-max: 1200px;
  --header-height: 72px;
}

[data-theme="dark"] {
  --color-navy: #050d1a;
  --color-navy-light: #0a1628;
  --color-navy-lighter: #142845;
  --color-white: #0f1a2e;
  --color-gray-50: #1a2540;
  --color-gray-100: #1e293b;
  --color-gray-200: #334155;
  --color-gray-300: #475569;
  --color-gray-400: #64748b;
  --color-gray-500: #94a3b8;
  --color-gray-600: #cbd5e1;
  --color-gray-700: #e2e8f0;
  --color-gray-800: #f1f5f9;
  --color-gray-900: #f8fafc;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-fa);
  background-color: var(--color-gray-50);
  color: var(--color-gray-800);
  line-height: 1.6;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

[data-theme="dark"] body {
  background-color: var(--color-navy);
  color: var(--color-gray-600);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--color-gold-light);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-navy);
}

[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: var(--color-white);
}

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

.section {
  padding: 80px 0;
}

.section-sm {
  padding: 48px 0;
}

.text-center { text-align: center; }
.text-gold { color: var(--color-gold); }
.text-navy { color: var(--color-navy); }
.text-white { color: var(--color-white); }

.bg-navy { background-color: var(--color-navy); }
.bg-gray { background-color: var(--color-gray-50); }
.bg-white { background-color: var(--color-white); }

[data-theme="dark"] .bg-white {
  background-color: var(--color-navy-light);
}

[data-theme="dark"] .bg-gray {
  background-color: var(--color-navy);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-size: 1rem;
  font-weight: 600;
  font-family: var(--font-fa);
  cursor: pointer;
  border: none;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: var(--color-navy);
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201, 162, 39, 0.4);
  color: var(--color-navy);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

[data-theme="dark"] .btn-secondary {
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn-secondary:hover {
  background-color: var(--color-navy);
  color: var(--color-white);
}

[data-theme="dark"] .btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-navy);
}

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

.btn-gold-outline:hover {
  background-color: var(--color-gold);
  color: var(--color-navy);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.125rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

/* Cards */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--color-gray-100);
}

[data-theme="dark"] .card {
  background-color: var(--color-navy-light);
  border-color: var(--color-gray-200);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-gold {
  border-top: 4px solid var(--color-gold);
}

/* Section headers */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 56px;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--color-gray-500);
}

[data-theme="dark"] .section-header p {
  color: var(--color-gray-400);
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: rgba(201, 162, 39, 0.1);
  color: var(--color-gold);
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 16px;
}

/* Grid */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 968px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .section-header h2 { font-size: 1.75rem; }
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--color-success);
  animation: pulse 2s infinite;
}

/* Utilities */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 8px; }
.gap-2 { gap: 16px; }
.gap-3 { gap: 24px; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }

.rounded { border-radius: var(--radius-md); }
.rounded-full { border-radius: var(--radius-full); }
