/*
Theme Name: TopFiveHub Raffle Theme
Theme URI: https://topfivehub.com
Author: TopFiveHub Team
Author URI: https://topfivehub.com
Description: A modern WordPress theme designed for raffle and prize draw websites with countdown timers, package selection, and regulatory compliance.
Version: 3.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: topfivehub
Tags: raffle, prize-draw, lottery, ecommerce, custom-post-types

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.
*/

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

:root {
  --primary-color: #2563eb;
  --secondary-color: #1e40af;
  --accent-color: #f59e0b;
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
  --success-color: #10b981;
  --error-color: #ef4444;
  --popular-badge: #dc2626;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* Header */
.site-header {
  background: var(--bg-white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.site-logo a {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.main-navigation a {
  color: var(--text-dark);
  font-weight: 500;
  font-size: 0.95rem;
}

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

.header-auth {
  display: flex;
  gap: 1rem;
}

.btn {
  padding: 0.625rem 1.5rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  font-size: 0.95rem;
}

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

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

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

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

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

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

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 1rem;
  opacity: 0.95;
}

.prize-amount {
  font-size: 4.5rem;
  font-weight: 900;
  margin: 1rem 0;
  text-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.hero-description {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Countdown Timer */
.countdown-wrapper {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem auto;
  max-width: 600px;
}

.countdown-label {
  font-size: 1rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.countdown-item {
  text-align: center;
}

.countdown-number {
  font-size: 3rem;
  font-weight: 700;
  display: block;
  line-height: 1;
}

.countdown-text {
  font-size: 0.875rem;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 0.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

/* Packages Section */
.packages-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
}

.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.package-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.package-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.package-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--popular-badge);
  color: white;
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.package-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.package-tickets {
  font-size: 3rem;
  font-weight: 900;
  color: var(--primary-color);
  margin: 1rem 0;
}

.package-tickets-label {
  font-size: 0.875rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.package-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 1.5rem 0;
}

.package-features {
  list-style: none;
  margin: 1.5rem 0;
  text-align: left;
}

.package-features li {
  padding: 0.5rem 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

.package-features li:before {
  content: "✓ ";
  color: var(--success-color);
  font-weight: 700;
  margin-right: 0.5rem;
}

/* How It Works Section */
.how-it-works-section {
  padding: 5rem 0;
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
}

.step-item {
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto 1.5rem;
}

.step-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.step-description {
  color: var(--text-light);
  line-height: 1.8;
}

/* FAQ Section */
.faq-section {
  padding: 5rem 0;
  background: var(--bg-light);
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.5rem;
  background: white;
  border: none;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--bg-light);
}

.faq-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.8;
}

/* Footer */
.site-footer {
  background: var(--text-dark);
  color: white;
  padding: 4rem 0 2rem;
}

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

.footer-column h3 {
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

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

.footer-column ul li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
}

.footer-column a:hover {
  color: white;
}

.footer-description {
  color: rgba(255,255,255,0.7);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* Regulatory Details */
.regulatory-details {
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}

.regulatory-details h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

.regulatory-details p {
  color: rgba(255,255,255,0.8);
  line-height: 1.8;
  font-size: 0.95rem;
}

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

/* Modal */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.7);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: white;
  border-radius: 12px;
  max-width: 450px;
  width: 100%;
  padding: 2.5rem;
  position: relative;
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-light);
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: var(--text-dark);
}

.modal-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid var(--border-color);
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.form-checkbox input {
  width: auto;
}

.form-checkbox label {
  font-size: 0.875rem;
  color: var(--text-light);
}

.modal-footer {
  margin-top: 2rem;
  text-align: center;
}

.modal-footer p {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--text-light);
}

.modal-footer a {
  color: var(--primary-color);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-navigation {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .main-navigation.active {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 1rem;
  }

  .main-navigation.active ul {
    flex-direction: column;
    gap: 0;
  }

  .main-navigation.active li {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .prize-amount {
    font-size: 3rem;
  }

  .countdown-timer {
    gap: 1rem;
  }

  .countdown-number {
    font-size: 2rem;
  }

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

  .packages-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 2rem;
  }

  .prize-amount {
    font-size: 2.5rem;
  }

  .modal-content {
    padding: 2rem 1.5rem;
  }
}
