/* Custom Styles for Islenoria - Free Social Online Casino */

:root {
  --primary-green: #0f5c4a;
  --secondary-green: #1a8269;
  --accent-green: #2dd4bf;
  --accent-gold: #fbbf24;
  --dark-bg: #0a2118;
  --darker-bg: #051410;
  --light-text: #e8f5f1;
  --border-green: #1e6b57;
  --shadow-glow: rgba(45, 212, 191, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: var(--dark-bg);
  color: var(--light-text);
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Animated Background Pattern */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 50%, rgba(45, 212, 191, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(45, 212, 191, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

/* Enhanced Header with Text Logo */
.navbar {
  background: linear-gradient(135deg, var(--darker-bg) 0%, rgba(15, 92, 74, 0.95) 100%) !important;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent-green), var(--accent-gold), var(--accent-green)) 1;
  padding: 0.75rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
}

.navbar-brand .navbar-item {
  color: var(--accent-green) !important;
  font-weight: 800;
  font-size: 1.75rem;
  letter-spacing: 2px;
  text-shadow: 0 0 20px var(--shadow-glow), 0 2px 4px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
}

.navbar-brand .navbar-item::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  transition: width 0.3s ease;
}

.navbar-brand .navbar-item:hover::after {
  width: 100%;
}

.navbar-brand .navbar-item i {
  color: var(--accent-gold);
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 8px var(--accent-gold));
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

.navbar-item,
.navbar-link {
  color: var(--light-text) !important;
  transition: all 0.3s ease;
  font-weight: 500;
  position: relative;
}

.navbar-item::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent-green);
  transition: width 0.3s ease;
}

.navbar-item:hover::before {
  width: 80%;
}

.navbar-item:hover,
.navbar-link:hover {
  background-color: rgba(45, 212, 191, 0.1) !important;
  color: var(--accent-green) !important;
  transform: translateY(-2px);
}

.navbar-burger span {
  background-color: var(--accent-green) !important;
}

/* Enhanced Hero Section with Decorative Elements */
.hero {
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--primary-green) 50%, var(--darker-bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Decorative Floating Shapes */
.hero::after {
  content: "♠ ♥ ♦ ♣";
  position: absolute;
  font-size: 8rem;
  color: rgba(45, 212, 191, 0.05);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  letter-spacing: 3rem;
  animation: float 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-30px);
  }
}

.hero-body {
  position: relative;
  z-index: 2;
  padding: 6rem 1.5rem;
}

.hero .title {
  color: var(--light-text);
  text-shadow: 0 0 40px var(--shadow-glow), 0 4px 8px rgba(0, 0, 0, 0.8);
  animation: fadeInUp 1s ease;
  position: relative;
}

.hero .title::after {
  content: "";
  display: block;
  width: 150px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
  margin: 1rem auto;
  border-radius: 2px;
}

.hero .subtitle {
  color: var(--light-text);
  animation: fadeInUp 1s ease 0.2s both;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Enhanced Buttons with Glow Effects */
.button.is-primary {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--secondary-green) 100%);
  border: 2px solid var(--accent-green);
  color: var(--darker-bg);
  font-weight: 700;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(45, 212, 191, 0.3);
}

.button.is-primary::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.button.is-primary:hover::before {
  width: 300px;
  height: 300px;
}

.button.is-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.5);
  border-color: var(--accent-gold);
}

.button.is-outlined {
  border: 2px solid var(--accent-green);
  color: var(--accent-green);
  background: transparent;
  font-weight: 600;
  transition: all 0.3s ease;
}

.button.is-outlined:hover {
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--secondary-green) 100%);
  color: var(--darker-bg);
  border-color: var(--accent-gold);
  box-shadow: 0 6px 25px rgba(45, 212, 191, 0.4);
}

/* Enhanced Cards with Decorative Corners */
.card {
  background: linear-gradient(135deg, var(--primary-green) 0%, rgba(15, 92, 74, 0.8) 100%);
  border: 2px solid var(--border-green);
  border-radius: 16px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
  position: relative;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.card::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--accent-green), var(--accent-gold), var(--accent-green));
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 40px var(--shadow-glow);
  border-color: var(--accent-green);
}

/* Decorative Corner Elements */
.card::after {
  content: "◆";
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 1.5rem;
  color: var(--accent-gold);
  opacity: 0.3;
  transition: all 0.3s ease;
}

.card:hover::after {
  opacity: 1;
  transform: rotate(45deg);
}

.card-header {
  background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-green) 100%);
  border-bottom: 2px solid var(--accent-green);
}

.card-header-title {
  color: var(--light-text);
  font-weight: 600;
}

.card-content {
  color: var(--light-text);
  padding: 1.5rem;
}

.card-footer {
  border-top: 2px solid var(--border-green);
  background: rgba(26, 130, 105, 0.2);
}

.card-footer-item {
  font-weight: 600;
  transition: all 0.3s ease;
}

.card-footer-item:hover {
  background: rgba(45, 212, 191, 0.2);
  transform: scale(1.05);
}

/* Sections with Decorative Separators */
.section {
  background-color: var(--dark-bg);
  position: relative;
  padding: 4rem 1.5rem;
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
}

.section.alternate {
  background-color: var(--darker-bg);
}

.section .title {
  position: relative;
  display: inline-block;
}

.section .title::before,
.section .title::after {
  content: "◆";
  position: absolute;
  color: var(--accent-gold);
  font-size: 1rem;
  top: 50%;
  transform: translateY(-50%);
}

.section .title::before {
  left: -30px;
}

.section .title::after {
  right: -30px;
}

/* Enhanced Box Elements */
.box {
  background: linear-gradient(135deg, rgba(15, 92, 74, 0.9) 0%, rgba(26, 130, 105, 0.6) 100%);
  border: 2px solid var(--border-green);
  color: var(--light-text);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.box::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(45, 212, 191, 0.1), transparent);
  transition: left 0.5s ease;
}

.box:hover::before {
  left: 100%;
}

.box:hover {
  border-color: var(--accent-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(45, 212, 191, 0.2);
}

/* Footer Enhancement */
.footer {
  background: linear-gradient(180deg, var(--darker-bg) 0%, #000000 100%);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--accent-green), var(--accent-gold), var(--accent-green)) 1;
  color: var(--light-text);
  padding: 4rem 1.5rem 2rem;
  position: relative;
}

.footer::before {
  content: "♠ ♥ ♦ ♣";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: rgba(45, 212, 191, 0.1);
  letter-spacing: 1rem;
}

.footer a {
  color: var(--accent-green);
  transition: all 0.3s ease;
  position: relative;
}

.footer a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: width 0.3s ease;
}

.footer a:hover::after {
  width: 100%;
}

.footer a:hover {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Game Cards Enhancement */
.game-card {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
}

.game-card img {
  transition: transform 0.5s ease;
  filter: brightness(0.9);
}

.game-card:hover img {
  transform: scale(1.15);
  filter: brightness(1.1);
}

.game-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(5, 20, 16, 0.98) 0%, transparent 100%);
  padding: 1.5rem;
  transform: translateY(70%);
  transition: transform 0.4s ease;
}

.game-card:hover .game-overlay {
  transform: translateY(0);
}

/* Modal Enhancement */
.modal-background {
  background-color: rgba(5, 20, 16, 0.95);
  backdrop-filter: blur(8px);
}

.modal-content {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(45, 212, 191, 0.3);
}

.modal-close {
  background-color: var(--accent-green);
  transition: all 0.3s ease;
}

.modal-close:hover {
  background-color: var(--accent-gold);
  transform: rotate(90deg) scale(1.2);
}

/* Forms */
.input,
.textarea,
.select select {
  background-color: rgba(15, 92, 74, 0.5);
  border: 2px solid var(--border-green);
  color: var(--light-text);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.input:focus,
.textarea:focus,
.select select:focus {
  border-color: var(--accent-green);
  box-shadow: 0 0 0 0.2em rgba(45, 212, 191, 0.25);
  background-color: rgba(15, 92, 74, 0.7);
}

.input::placeholder,
.textarea::placeholder {
  color: rgba(232, 245, 241, 0.5);
}

.label {
  color: var(--light-text);
  font-weight: 600;
}

/* Improved Cookie Consent Banner */
#cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, var(--darker-bg) 0%, var(--primary-green) 100%);
  border-top: 3px solid var(--accent-green);
  padding: 1.5rem;
  z-index: 9999;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  pointer-events: none;
}

#cookie-consent.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

#cookie-consent p {
  margin-bottom: 1rem;
  color: var(--light-text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#cookie-consent .buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

#cookie-consent .button {
  min-width: 120px;
}

/* FAQ Accordion */
.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  background: linear-gradient(135deg, var(--secondary-green) 0%, var(--primary-green) 100%);
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  border: 2px solid var(--border-green);
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}

.faq-question:hover {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  border-color: var(--accent-green);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.2);
}

.faq-question.active {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  background: linear-gradient(135deg, var(--accent-green) 0%, var(--secondary-green) 100%);
  color: var(--darker-bg);
}

.faq-answer {
  background: linear-gradient(135deg, rgba(15, 92, 74, 0.8) 0%, rgba(26, 130, 105, 0.6) 100%);
  padding: 0 1.5rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  border: 2px solid var(--border-green);
  border-top: none;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;
}

.faq-answer.active {
  max-height: 600px;
  padding: 1.5rem;
  border-color: var(--accent-green);
}

/* Blog Cards */
.blog-card .card-image img {
  height: 220px;
  object-fit: cover;
}

.blog-date {
  color: var(--accent-gold);
  font-size: 0.9rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Event Cards */
.event-card {
  border-left: 5px solid var(--accent-gold);
  position: relative;
}

.event-card::before {
  content: "★";
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2rem;
  color: var(--accent-gold);
  opacity: 0.2;
}

/* Team Cards */
.team-card {
  text-align: center;
}

.team-card .image {
  width: 150px;
  height: 150px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--accent-green);
  box-shadow: 0 0 20px var(--shadow-glow);
  transition: all 0.3s ease;
}

.team-card:hover .image {
  border-color: var(--accent-gold);
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(251, 191, 36, 0.5);
}

/* Contact Info */
.contact-info {
  background: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
  border-left: 5px solid var(--accent-green);
  padding: 2rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.contact-info:hover {
  transform: translateX(10px);
  box-shadow: 0 8px 30px rgba(45, 212, 191, 0.3);
}

.contact-info a {
  color: var(--accent-green);
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.contact-info a:hover {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(251, 191, 36, 0.5);
}

/* Notification Enhancement */
.notification {
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Tags */
.tag {
  border-radius: 20px;
  font-weight: 600;
  padding: 0.5em 1em;
}

/* Responsive */
@media screen and (max-width: 768px) {
  .hero .title {
    font-size: 2rem;
  }

  .hero .subtitle {
    font-size: 1rem;
  }

  .section .title::before,
  .section .title::after {
    display: none;
  }

  #cookie-consent .buttons {
    flex-direction: column;
  }

  #cookie-consent .button {
    width: 100%;
  }

  .navbar-brand .navbar-item {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 1024px) {
  .navbar-brand .navbar-item {
    font-size: 1.6rem;
  }
}

/* Utility Classes */
.has-text-accent {
  color: var(--accent-green) !important;
}

.has-text-gold {
  color: var(--accent-gold) !important;
}

.has-background-dark-custom {
  background-color: var(--darker-bg) !important;
}

.border-accent {
  border: 2px solid var(--accent-green);
}

/* Lazy Loading */
img[data-src] {
  transition: opacity 0.5s ease;
}

img.loaded {
  opacity: 1;
}

/* Age Restriction Notice */
.age-notice {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.1) 0%, rgba(251, 191, 36, 0.1) 100%);
  border: 2px solid var(--accent-green);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  margin: 2rem 0;
  font-weight: 700;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.age-notice i {
  color: var(--accent-gold);
  filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.5));
}

/* Loading Animation */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.shimmer {
  animation: shimmer 2s infinite;
  background: linear-gradient(to right, transparent 0%, rgba(45, 212, 191, 0.1) 50%, transparent 100%);
  background-size: 1000px 100%;
}
