/* 
Theme Name: Binary Options Theme
Author: Grok
Version: 9.0
Description: Modern WordPress theme for binary options brokers listing with dynamic background.
*/

@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Inter:wght@400&display=swap');

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000000;
  color: #E5E7EB;
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  background: #1B263B;
  padding: 15px 0;
  text-align: center;
}

.logo {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  color: #00F5A0;
  text-decoration: none;
  display: inline-block;
  animation: spring 2s ease-out forwards;
}

@keyframes spring {
  0% { transform: scale(0); }
  40% { transform: scale(1.5); }
  60% { transform: scale(0.8); }
  75% { transform: scale(1.2); }
  85% { transform: scale(0.9); }
  95% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.ticker {
  display: block;
  width: 400px;
  margin: 10px auto 0;
  overflow: hidden;
  font-size: 14px;
  color: #FF4040;
  white-space: nowrap;
}

.ticker span {
  display: inline-block;
  animation: marquee 6s linear infinite;
}

@keyframes marquee {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* Brokers Section */
.brokers-section {
  position: relative;
  padding: 60px 0;
}

#dynamic-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.5;
}

.brokers-section h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 40px;
  text-align: center;
  margin-bottom: 40px;
  color: #00F5A0;
}

.brokers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.broker-card {
  background: #1B263B;
  border: 1px solid #00D4FF;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  width: 300px;
  height: 500px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease-out forwards;
  animation-delay: calc(0.1s * var(--index));
  transition: transform 0.3s, background 0.3s, box-shadow 0.3s;
  position: relative;
  z-index: 1;
}

.broker-card:hover {
  transform: translateY(-10px);
  background: #2A3B5A;
  box-shadow: 0 0 25px rgba(0, 183, 235, 0.7);
}

.broker-card:nth-child(1) { --index: 1; }
.broker-card:nth-child(2) { --index: 2; }
.broker-card:nth-child(3) { --index: 3; }
.broker-card:nth-child(4) { --index: 4; }
.broker-card:nth-child(5) { --index: 5; }
.broker-card:nth-child(6) { --index: 6; }

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.broker-card h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 20px;
  height: 40px;
  line-height: 40px;
  margin-bottom: 10px;
  color: #00F5A0;
}

.broker-card img {
  width: 280px;
  max-width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 5px;
  margin: 0 auto 10px;
  display: block;
  background: #1B263B;
}

.broker-card p {
  font-size: 14px;
  height: 60px;
  margin-bottom: 10px;
  overflow: hidden;
}

.broker-card ul {
  list-style: none;
  height: 100px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.broker-card ul li {
  font-size: 13px;
  margin-bottom: 5px;
}

.broker-card .cta-button {
  width: 260px;
  height: 40px;
  line-height: 40px;
  background: #00B7EB;
  color: #0A1428;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: box-shadow 0.3s;
  margin: 0 auto;
  display: block;
}

.broker-card .cta-button:hover {
  box-shadow: 0 0 10px #00B7EB;
}

/* Page Content */
.page-content {
  padding: 60px 0;
}

.page-content h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 36px;
  margin-bottom: 20px;
  color: #00F5A0;
}

/* Footer */
.site-footer {
  background: #1B263B;
  padding: 40px 0;
}

.footer-nav {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.footer-nav h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 18px;
  color: #00F5A0;
  margin-bottom: 10px;
}

.footer-nav ul {
  list-style: none;
}

.footer-nav ul li {
  margin-bottom: 8px;
}

.footer-nav ul li a {
  color: #E5E7EB;
  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;
}

/* Responsive */
@media (max-width: 768px) {
  .brokers-section h1 {
    font-size: 28px;
  }

  .broker-card {
    width: 100%;
    margin: 0 auto;
  }

  .broker-card img {
    margin: 0 auto;
  }

  .broker-card .cta-button {
    margin: 0 auto;
  }

  .ticker {
    width: 100%;
    max-width: 400px;
  }

  .footer-nav {
    display: none;
  }

  .footer-nav .accordion {
    display: block;
  }

  .footer-nav .accordion details {
    margin-bottom: 10px;
  }

  .footer-nav .accordion summary {
    font-family: 'Orbitron', sans-serif;
    font-size: 16px;
    color: #00F5A0;
    cursor: pointer;
    padding: 10px;
    background: #0A1428;
    border-radius: 5px;
  }

  .footer-nav .accordion ul {
    padding: 10px;
    background: #0A1428;
    border-radius: 0 0 5px 5px;
  }
}

@media (hover: none) {
  .broker-card:active {
    transform: translateY(-10px);
    background: #2A3B5A;
    box-shadow: 0 0 25px rgba(0, 183, 235, 0.7);
  }
}