/*
Theme Name: Rey
Description: A modern WordPress theme for binary options brokers with a dark blue design and animated trading-themed background.
*/
@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Exo+2:wght@700&display=swap');

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

body {
  background: #0A1428;
  color: #E2E8F0;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Canvas for Background Animation */
#tradingCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

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

/* Header */
.site-header {
  background: #0F172A;
  padding: 15px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.logo {
  font-family: 'Exo 2', sans-serif;
  font-size: 36px;
  color: #00D4FF;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
  transition: color 0.3s;
}

.logo:hover {
  color: #E2E8F0;
}

.logo span {
  display: inline-block;
  opacity: 0;
}

.logo .binary {
  animation: slideInLeft 0.8s ease-out 0.2s forwards;
}

.logo .options {
  animation: slideInRight 0.8s ease-out 0.2s forwards;
}

.logo .dash, .logo .top {
  animation: springIn 0.6s ease-out 1s forwards;
}

@keyframes slideInLeft {
  0% { transform: translateX(-100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  0% { transform: translateX(100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes springIn {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.3); opacity: 1; }
  80% { transform: scale(0.9); }
  100% { transform: scale(1); opacity: 1; }
}

.ticker {
  display: block;
  width: 100%;
  max-width: 600px;
  margin: 10px auto 0;
  overflow: hidden;
  font-size: 14px;
  color: #FF6B6B;
  white-space: nowrap;
  text-align: center;
}

.ticker span {
  display: inline-block;
  animation: tickerSlide 15s linear infinite;
}

@keyframes tickerSlide {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Brokers Section */
.brokers-section {
  position: relative;
  padding: 40px 0;
  background: rgba(10, 20, 40, 0.85);
  overflow: hidden;
  z-index: 0;
}

.brokers-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(0, 212, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
}

/* Other Sections */
.articles, .page-content {
  position: relative;
  padding: 40px 0;
  background: rgba(10, 20, 40, 0.85);
  z-index: 0;
}

/* Divider */
.divider {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, #00D4FF, #E2E8F0, transparent);
}

/* Decorative Divider */
.decorative-divider {
  width: 100%;
  height: 4px;
  background: linear-gradient(to right, transparent, #00D4FF, #E2E8F0, transparent);
  margin: 20px 0;
  position: relative;
}

.decorative-divider::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  width: 100%;
  height: 20px;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 10" preserveAspectRatio="none"><path d="M0 5 Q 25 0, 50 5 T 100 5" fill="none" stroke="%2300D4FF" stroke-width="2"/></svg>') repeat-x;
}

/* Page Header */
.page-header {
  padding: 20px 0;
  text-align: center;
}

.broker-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 42px;
  color: #00D4FF;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  animation: fadeIn 0.8s ease-out;
}

/* Section Styles */
.section-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
  color: #E2E8F0;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

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

.broker-card {
  border-radius: 16px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 2px solid #00D4FF;
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: scale(0.9);
  animation: fadeIn 0.6s ease-out forwards;
  animation-delay: calc(0.1s * var(--index));
}

.broker-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.broker-card h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 24px;
  margin-bottom: 20px;
  color: #E2E8F0;
}

.broker-card img {
  max-width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 8px;
  margin-bottom: 20px;
}

.broker-card ul {
  list-style: none;
  margin-bottom: 20px;
  text-align: left;
}

.broker-card ul li {
  font-size: 14px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
}

.broker-card ul li .label {
  color: #00D4FF;
  font-weight: 600;
}

.broker-card ul li .value {
  color: #E2E8F0;
  text-align: right;
}

.broker-card .cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: #00D4FF;
  color: #FFFFFF;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.broker-card .cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: #FF6B6B;
  transition: left 0.3s;
  z-index: -1;
}

.broker-card .cta-button:hover::before {
  left: 0;
}

.broker-card .cta-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255, 107, 107, 0.5);
}

/* Articles Section */
.articles {
  padding: 60px 0;
}

.articles h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 24px;
  color: #E2E8F0;
  margin-bottom: 30px;
  text-align: center;
}

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

.article-card {
  background: rgba(30, 40, 60, 0.9);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s;
}

.article-card:hover {
  transform: translateY(-8px);
}

.article-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #E2E8F0;
  margin-bottom: 10px;
}

.article-card a {
  color: #00D4FF;
  text-decoration: none;
  font-weight: 600;
}

.article-card a:hover {
  color: #E2E8F0;
}

/* Page Content */
.page-content {
  padding: 40px 0;
  background-color: #0b141ae0;
}

.page-content h1,
.page-content h2 {
  font-family: 'Exo 2', sans-serif;
  font-size: 36px;
  color: #E2E8F0;
  margin-bottom: 20px;
  text-align: center;
}

.page-content p {
  font-size: 16px;
  color: #E2E8F0;
}

/* Broker Hero */
.broker-hero {
  position: relative;
  width: 100%;
  height: 800px;
  padding: 40px 0;
  background-size: cover;
  background-position: center;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
}

.broker-hero::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: linear-gradient(45deg, #00D4FF, #66E6D6, #00D4FF) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  animation: neonGlow 3s linear infinite;
}

@keyframes neonGlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 400% 50%; }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
  border-radius: 16px;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 10px;
}

.advantages {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 800px;
  width: 100%;
  margin: 5px auto;
  padding: 15px;
  background: rgba(30, 40, 60, 0.8);
  border-radius: 8px;
}

.advantage-card {
  display: flex;
  align-items: center;
  gap: 15px;
  transition: transform 0.3s;
  opacity: 0;
}

.advantage-card:hover {
  transform: scale(1.05);
}

.advantage-card i {
  color: #00D4FF;
  font-size: 32px;
  transition: transform 0.3s;
}

.advantage-card:hover i {
  transform: rotate(15deg);
}

.advantage-text {
  flex: 1;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.advantage-text--large {
  font-family: 'Exo 2', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #E2E8F0;
}

.advantage-text--medium {
  font-family: 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #00D4FF;
}

.advantage-text--small {
  font-family: 'Exo 2', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #66E6D6;
}

.offset-left {
  margin-left: 20px;
}

.offset-right {
  margin-left: 80px;
}

.advantage-left {
  animation: slideInLeft 0.8s ease-out 0.2s forwards, bounce 0.5s ease-in-out 1s;
}

.advantage-right {
  animation: slideInRight 0.8s ease-out 0.4s forwards, bounce 0.5s ease-in-out 1.2s;
}

.advantage-top {
  animation: slideInTop 0.8s ease-out 0.6s forwards, bounce 0.5s ease-in-out 1.4s;
}

@keyframes slideInLeft {
  0% { transform: translateX(-100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInRight {
  0% { transform: translateX(100px); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

@keyframes slideInTop {
  0% { transform: translateY(-100px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

@keyframes bounce {
  0% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0); }
}

/* Broker Features Section */
.broker-features-section {
  max-width: 800px;
  margin: 15px auto;
}

.broker-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(250px, 1fr));
  gap: 8px;
}

.broker-features li {
  font-size: 14px;
  display: flex;
  align-items: center;
  padding: 8px;
  background: rgba(30, 40, 60, 0.9);
  border-radius: 8px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.broker-features li:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0, 212, 255, 0.3);
}

.broker-features li i {
  color: #00D4FF;
  font-size: 18px;
  margin-right: 8px;
}

.broker-features li .label {
  color: #00D4FF;
  font-weight: 600;
  margin-right: 8px;
}

.broker-features li .value {
  color: #E2E8F0;
}

/* CTA Button for Broker Hero */
.broker-hero .cta-button {
  display: inline-block;
  padding: 20px 50px;
  background: #1B4D3E;
  color: #FFFFFF;
  border-radius: 12px;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  font-size: 20px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.3s;
  animation: pulse 2s infinite;
}

.broker-hero .cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #1B4D3E, #38A169);
  transition: left 0.3s;
  z-index: -1;
}

.broker-hero .cta-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 20%;
  height: 100%;
  background: rgba(255, 255, 255, 0.5);
  transform: skewX(-20deg);
  transition: left 0.4s ease-out;
  z-index: -1;
}

.broker-hero .cta-button:hover::before {
  left: 0;
}

.broker-hero .cta-button:hover::after {
  left: 100%;
}

.broker-hero .cta-button:hover {
  box-shadow: 0 0 20px rgba(56, 161, 105, 0.7);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.03); }
  100% { transform: scale(1); }
}

/* CTA Container */
.cta-container {
  text-align: center;
  margin: 40px 0 15px;
}

/* Footer */
.site-footer {
  background: #0F172A;
  padding: 40px 0;
  color: #E2E8F0;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-nav h3 {
  font-family: 'Exo 2', sans-serif;
  font-size: 20px;
  color: #E2E8F0;
  margin-bottom: 15px;
}

.footer-nav ul {
  list-style: none;
}

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

.footer-nav ul li a {
  color: #E2E8F0;
  text-decoration: none;
  font-size: 14px;
}

.footer-nav ul li a:hover {
  color: #00D4FF;
}

.footer-nav .accordion {
  display: none;
}

.site-footer p {
  font-size: 14px;
  text-align: center;
  color: #E2E8F0;
}

/* Responsive */
@media (max-width: 768px) {
  .section-title {
    font-size: 20px;
  }

  .broker-card {
    width: 100%;
  }

  .broker-content h1,
  .broker-content h2 {
    font-size: 24px;
  }

  .articles h2 {
    font-size: 20px;
  }

  .ticker {
    max-width: 400px;
  }

  .logo {
    font-size: 28px;
  }

  .broker-card img {
    height: 200px;
  }

  .footer-nav {
    display: none;
  }

  .footer-nav .accordion {
    display: block;
  }

  .footer-nav .accordion details {
    margin-bottom: 10px;
  }

  .footer-nav .accordion summary {
    font-family: 'Exo 2', sans-serif;
    font-size: 16px;
    color: #00D4FF;
    cursor: pointer;
    padding: 10px;
    background: #0A1428;
    border-radius: 6px;
  }

  .footer-nav .accordion ul {
    padding: 10px;
    background: #0A1428;
    border-radius: 0 0 6px 6px;
  }

  .broker-hero {
    padding: 20px 0;
    height: 900px;
  }

  .broker-title {
    font-size: 32px;
  }

  .advantage-card {
    flex-direction: row;
    text-align: left;
  }

  .advantage-text--large {
    font-size: 24px;
  }

  .advantage-text--medium {
    font-size: 20px;
  }

  .advantage-text--small {
    font-size: 18px;
  }

  .offset-left {
    margin-left: 15px;
  }

  .offset-right {
    margin-left: 60px;
  }

  .advantage-card i {
    font-size: 24px;
  }

  .broker-features {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .broker-features li {
    font-size: 12px;
    padding: 8px;
  }

  .broker-features li i {
    font-size: 16px;
    margin-right: 8px;
  }

  .broker-hero .cta-button {
    padding: 16px 40px;
    font-size: 18px;
  }

  .page-content h1,
  .page-content h2 {
    font-size: 28px;
  }
}

/* SEO Optimized Image */
.seo-optimized-image {
  margin: 1.5em 0;
  max-width: 100%;
  position: relative;
}

.seo-image__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform 0.3s ease;
}

.seo-image__img:hover {
  transform: scale(1.01);
}

.seo-image__caption {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5em;
  line-height: 1.4;
}

/* Mobile Optimization */
@media (max-width: 768px) {
  .seo-optimized-image {
    margin-left: -10px;
    margin-right: -10px;
    width: calc(100% + 20px);
  }
  
  .seo-image__img {
    border-radius: 0;
  }
}

/* Schema.org Highlight for Testing */
.seo-optimized-image[itemscope] {
  outline: 1px dashed rgba(0,150,255,0.3);
}