/*
Theme Name: MasterFX Academy
Theme URI: https://masterfxacademy.com
Description: Professional Forex Education Academy Theme with LifterLMS & WooCommerce Support
Version: 1.0.0
Author: MasterFX Academy
Author URI: https://masterfxacademy.com
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: masterfx-academy
Domain Path: /languages
Requires at least: 5.0
Requires PHP: 7.2
*/

/* ===== CSS Variables ===== */
:root {
  --primary-color: #1a2332;
  --secondary-color: #2a3f5f;
  --accent-color: #d4af37;
  --light-bg: #f5f7fa;
  --dark-text: #0f1419;
  --border-color: #e0e6ed;
  --white: #ffffff;
  --gray-light: #f9fafb;
  --gray-medium: #6b7280;
  --gray-dark: #374151;
}

/* ===== Reset & Base Styles ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--dark-text);
  background-color: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', serif;
  color: var(--primary-color);
  font-weight: 700;
  line-height: 1.2;
}

h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 28px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
h6 { font-size: 16px; }

p {
  margin-bottom: 16px;
  line-height: 1.8;
}

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

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

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

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

/* ===== Header ===== */
.site-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.site-logo img {
  height: 40px;
  width: auto;
}

.main-navigation {
  display: flex;
  gap: 32px;
  align-items: center;
}

.main-navigation a {
  font-weight: 500;
  color: var(--dark-text);
  transition: color 0.3s ease;
}

.main-navigation a:hover {
  color: var(--accent-color);
}

.header-cta {
  display: flex;
  gap: 12px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 14px;
}

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

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

.btn-accent {
  background-color: var(--accent-color);
  color: var(--primary-color);
  border-color: var(--accent-color);
  font-weight: 700;
}

.btn-accent:hover {
  background-color: transparent;
  color: var(--accent-color);
}

.btn-outline {
  background-color: transparent;
  color: var(--white);
  border-color: var(--white);
}

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

.btn-large {
  padding: 16px 40px;
  font-size: 16px;
}

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

.hero-content {
  max-width: 700px;
  margin: 0 auto;
}

.hero h1 {
  color: var(--white);
  font-size: 56px;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Section ===== */
.section {
  padding: 80px 20px;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--gray-medium);
  line-height: 1.8;
}

/* ===== Features Grid ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  margin-bottom: 60px;
}

.feature-box {
  text-align: center;
  padding: 32px;
  background-color: var(--light-bg);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.feature-box:hover {
  background-color: var(--white);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(212, 175, 55, 0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.feature-box h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.feature-box p {
  color: var(--gray-medium);
  font-size: 14px;
}

/* ===== Cards ===== */
.card {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-6px);
}

.card-image {
  height: 200px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 48px;
  overflow: hidden;
}

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

.card-body {
  padding: 24px;
}

.card-title {
  font-size: 18px;
  margin-bottom: 12px;
  color: var(--primary-color);
}

.card-text {
  font-size: 14px;
  color: var(--gray-medium);
  line-height: 1.6;
  margin-bottom: 16px;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  border-top: 1px solid var(--border-color);
}

.card-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--accent-color);
}

.card-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: rgba(212, 175, 55, 0.1);
  color: var(--accent-color);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

/* ===== Grid Layouts ===== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

/* ===== Testimonials ===== */
.testimonial-card {
  background: var(--white);
  padding: 32px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.testimonial-stars {
  color: var(--accent-color);
  font-size: 14px;
  margin-bottom: 16px;
}

.testimonial-quote {
  font-size: 14px;
  color: var(--gray-medium);
  line-height: 1.8;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 700;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.testimonial-title {
  font-size: 12px;
  color: var(--accent-color);
  font-weight: 600;
}

/* ===== Statistics ===== */
.stat-box {
  text-align: center;
  padding: 32px;
}

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: var(--accent-color);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray-medium);
  font-weight: 500;
}

/* ===== Footer ===== */
.site-footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 60px 20px 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h3 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 16px;
}

.footer-link {
  display: block;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  line-height: 2;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: var(--accent-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
}

/* ===== Forms ===== */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  transition: all 0.3s ease;
  margin-bottom: 16px;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
textarea:focus,
select:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
  outline: none;
}

/* ===== LifterLMS Compatibility ===== */
.llms-course-card {
  border-radius: 8px;
  overflow: hidden;
}

.llms-course-card:hover {
  transform: translateY(-4px);
}

.llms-lesson-preview {
  padding: 20px;
  background-color: var(--light-bg);
  border-radius: 6px;
  margin-bottom: 16px;
}

/* ===== WooCommerce Compatibility ===== */
.woocommerce-product {
  border-radius: 8px;
  overflow: hidden;
}

.woocommerce-product:hover {
  transform: translateY(-4px);
}

.product-price {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 18px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }

  .hero h1 {
    font-size: 36px;
  }

  .main-navigation {
    gap: 16px;
    font-size: 14px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

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

  .section {
    padding: 60px 20px;
  }

  .stat-number {
    font-size: 36px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  h1 { font-size: 28px; }
  h2 { font-size: 22px; }
  h3 { font-size: 18px; }

  .hero {
    padding: 60px 20px;
  }

  .hero h1 {
    font-size: 28px;
  }

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

  .main-navigation {
    gap: 12px;
  }

  .section {
    padding: 40px 20px;
  }

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

/* ===== Utilities ===== */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mt-60 { margin-top: 60px; }

.mb-20 { margin-bottom: 20px; }
.mb-40 { margin-bottom: 40px; }
.mb-60 { margin-bottom: 60px; }

.pt-20 { padding-top: 20px; }
.pt-40 { padding-top: 40px; }

.pb-20 { padding-bottom: 20px; }
.pb-40 { padding-bottom: 40px; }

.hidden {
  display: none;
}

.visible {
  display: block;
}
