@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Lora:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  /* Colors */
  --bg-primary: #14351C;
  --bg-secondary: #1D4726;
  --bg-section: #255A31;
  --bg-card: #2F6A3A;
  --bg-card-hover: #397A43;
  
  --accent-irish-green: #4CAF50;
  --accent-emerald: #66BB6A;
  --accent-clover: #81C784;
  --accent-celtic-gold: #D4AF37;
  --accent-warm-gold: #E6C15A;
  
  --text-primary: #F8F7F2;
  --text-secondary: #D7D4C8;
  --text-muted: #AFAE9E;

  /* Typography */
  --font-heading: 'Cinzel', serif;
  --font-body: 'Lora', serif;

  /* Spacing */
  --spacing-desktop: 100px;
  --spacing-tablet: 70px;
  --spacing-mobile: 50px;
  
  /* Container */
  --max-width: 1400px;
  
  /* Wallpapers */
  --bg-irish-countryside: url('https://images.unsplash.com/photo-1590089415225-401ed6f9db8e?q=80&w=2000&auto=format&fit=crop#irish-stone-castle-ruins.jpg');
  --bg-rolling-hills: url('https://images.unsplash.com/photo-1549429402-992a0614eb58?q=80&w=2000&auto=format&fit=crop#rolling-green-irish-hills.jpg');
  --bg-clover-meadow: url('https://images.unsplash.com/photo-1589133866297-511ce20a67d0?q=80&w=2000&auto=format&fit=crop#clover-meadow-celtic.jpg');
  --bg-celtic-monument: url('https://images.unsplash.com/photo-1564507004663-b6af6ce78c58?q=80&w=2000&auto=format&fit=crop#celtic-monument-landscape.jpg');
}

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

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  /* Wallpaper-first design */
  background-image: linear-gradient(rgba(20, 53, 28, 0.85), rgba(20, 53, 28, 0.95)), var(--bg-rolling-hills);
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

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

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

ul {
  list-style: none;
}

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

/* Layout Utilities */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.text-center { text-align: center; }
.gold-text { color: var(--accent-celtic-gold); }
.emerald-text { color: var(--accent-emerald); }

/* Components */
.btn {
  display: inline-block;
  padding: 15px 35px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: 8px;
  border: 1px solid var(--accent-celtic-gold);
  background: linear-gradient(135deg, var(--accent-irish-green), var(--bg-secondary));
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  position: relative;
  overflow: hidden;
}

.btn:hover {
  background: linear-gradient(135deg, var(--accent-emerald), var(--bg-card-hover));
  transform: translateY(-3px);
  color: var(--text-primary);
  box-shadow: 0 6px 20px rgba(102, 187, 106, 0.4);
  border-color: var(--accent-warm-gold);
}

/* Celtic Divider */
.celtic-divider {
  width: 100%;
  height: 20px;
  background-image: radial-gradient(circle, var(--accent-celtic-gold) 2px, transparent 2px), radial-gradient(circle, var(--accent-celtic-gold) 2px, transparent 2px);
  background-size: 40px 20px;
  background-position: 0 0, 20px 10px;
  opacity: 0.5;
  margin: 40px 0;
}

.celtic-divider.short {
  width: 200px;
  margin: 20px auto;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(20, 53, 28, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 20px 0;
  transition: background 0.3s ease;
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-celtic-gold);
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-nav ul {
  display: flex;
  gap: 30px;
}

.main-nav a {
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Hero Section */
.hero {
  height: 100vh;
  min-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background-image: linear-gradient(rgba(20, 53, 28, 0.6), rgba(20, 53, 28, 0.9)), var(--bg-irish-countryside);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding-top: 80px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 40px;
  background: rgba(29, 71, 38, 0.5);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 12px;
  animation: fadeIn 1.5s ease-out;
}

.hero h1 {
  font-size: 4.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.8);
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.legal-disclaimer-hero {
  display: inline-block;
  border: 1px solid var(--accent-emerald);
  padding: 10px 20px;
  border-radius: 4px;
  background: rgba(0,0,0,0.4);
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* Section Styling */
.section {
  padding: var(--spacing-desktop) 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 3rem;
  color: var(--accent-celtic-gold);
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Game Section */
.game-section {
  background: linear-gradient(to bottom, transparent, var(--bg-section), transparent);
}

.game-wrapper {
  width: 85%;
  margin: 0 auto;
  background: var(--bg-card);
  padding: 20px;
  border-radius: 16px;
  border: 2px solid var(--accent-celtic-gold);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5), inset 0 0 20px rgba(102, 187, 106, 0.2);
  position: relative;
}

.game-wrapper::before {
  content: '';
  position: absolute;
  top: -10px; left: -10px; right: -10px; bottom: -10px;
  border: 1px solid var(--accent-emerald);
  border-radius: 20px;
  pointer-events: none;
}

.game-container {
  width: 100%;
  height: 700px;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
}

.game-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.feature-card {
  background: rgba(47, 106, 58, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-emerald);
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
  background: rgba(57, 122, 67, 0.8);
  border-color: var(--accent-celtic-gold);
}

.feature-img {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 2px solid var(--accent-celtic-gold);
  object-fit: cover;
}

.feature-card h3 {
  font-size: 1.5rem;
  color: var(--accent-warm-gold);
}

/* Statistics Section */
.stats-section {
  background-image: linear-gradient(rgba(20, 53, 28, 0.85), rgba(20, 53, 28, 0.85)), var(--bg-celtic-monument);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  border-top: 1px solid var(--accent-celtic-gold);
  border-bottom: 1px solid var(--accent-celtic-gold);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item h4 {
  font-size: 3rem;
  color: var(--accent-celtic-gold);
  margin-bottom: 10px;
}

.stat-item p {
  font-size: 1.1rem;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, var(--bg-secondary), var(--bg-card));
  text-align: center;
  padding: 80px 20px;
  border-radius: 16px;
  border: 1px solid var(--accent-emerald);
  margin: var(--spacing-desktop) auto;
  max-width: var(--max-width);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: var(--bg-clover-meadow);
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  z-index: 0;
}

.cta-content {
  position: relative;
  z-index: 1;
}

.cta-banner h2 {
  font-size: 2.5rem;
  color: var(--accent-celtic-gold);
  margin-bottom: 20px;
}

/* Page Headers (Inner Pages) */
.page-header {
  padding: 180px 0 80px;
  text-align: center;
  background-image: linear-gradient(rgba(20, 53, 28, 0.7), rgba(20, 53, 28, 0.9)), var(--bg-clover-meadow);
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid var(--accent-celtic-gold);
}

.page-header h1 {
  font-size: 3.5rem;
  color: var(--accent-celtic-gold);
}

/* Content Pages */
.content-page {
  padding: var(--spacing-desktop) 0;
}

.content-box {
  background: rgba(37, 90, 49, 0.8);
  backdrop-filter: blur(10px);
  padding: 60px;
  border-radius: 12px;
  border: 1px solid rgba(102, 187, 106, 0.3);
  max-width: 900px;
  margin: 0 auto;
}

.content-box h2 {
  color: var(--accent-warm-gold);
  margin-top: 30px;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding-bottom: 10px;
}

.content-box p {
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.content-box ul {
  margin-bottom: 20px;
  padding-left: 20px;
  list-style: square;
  color: var(--text-secondary);
}

/* Contact Form */
.contact-form {
  display: grid;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 8px;
  color: var(--accent-celtic-gold);
  font-weight: 600;
}

.form-group input,
.form-group textarea {
  padding: 15px;
  background: rgba(20, 53, 28, 0.6);
  border: 1px solid var(--accent-emerald);
  border-radius: 8px;
  color: var(--text-primary);
  font-family: var(--font-body);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-celtic-gold);
  background: rgba(20, 53, 28, 0.8);
}

/* Footer */
.site-footer {
  background: #0B1C0F;
  border-top: 2px solid var(--accent-celtic-gold);
  padding: 60px 0 20px;
  margin-top: 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  color: var(--text-muted);
  margin-top: 15px;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 60px;
}

.footer-links h4 {
  color: var(--accent-warm-gold);
  margin-bottom: 20px;
}

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

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-emerald);
}

.footer-legal-notice {
  background: #112815;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid var(--bg-card);
  text-align: center;
}

.footer-legal-notice h4 {
  color: var(--accent-celtic-gold);
  margin-bottom: 10px;
}

.footer-legal-notice p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.fade-in {
  animation: fadeIn 1s ease-out forwards;
}

/* Responsive */
@media (max-width: 1200px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .game-wrapper { width: 95%; }
}

@media (max-width: 992px) {
  .hero h1 { font-size: 3.5rem; }
  .section { padding: var(--spacing-tablet) 0; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-links { flex-direction: column; gap: 30px; }
  .main-nav { display: none; /* In a real app, add a hamburger menu */ }
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.5rem; }
  .hero-content { padding: 20px; }
  .game-wrapper { width: 100%; border-radius: 0; padding: 10px; border-left: none; border-right: none;}
  .game-container { height: 500px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .section { padding: var(--spacing-mobile) 0; }
  .content-box { padding: 30px 20px; }
}