/*
* portugalapostasofertas.com - Stylesheet
* Theme: Ocean Depths
* Version: 2.0
*/

/* 1. CSS RESET & VARIABLES */
/* ========================================= */
:root {
  --primary: #0A192F;
  --secondary: #64FFDA;
  --accent: #FFD93D;
  --dark: #020C1B;
  --light: #CCD6F6;
  --bg: #112240;
  --font-heading: 'Raleway', sans-serif;
  --font-body: 'Nunito', sans-serif;
  --radius-moderate: 8px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.2);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--primary);
  color: var(--light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--light);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; color: var(--secondary); }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.25rem; }

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

a:hover, a:focus {
  color: var(--accent);
  outline: 2px solid transparent;
}

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

ul {
  list-style: none;
}

/* 2. UTILITIES & ACCESSIBILITY */
/* ========================================= */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent);
  color: var(--dark);
  padding: 8px;
  z-index: 9999;
  transition: top 0.3s;
  font-weight: bold;
}

.skip-link:focus {
  top: 0;
}

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

.section-title {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background-color: var(--accent);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}

/* Focus States */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: var(--radius-moderate);
}

/* 3. HEADER & NAVIGATION */
/* ========================================= */
.site-header {
  background-color: rgba(10, 25, 47, 0.85);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

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

.logo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--secondary);
}

.nav-menu {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  font-size: 1rem;
  font-weight: 600;
  color: var(--light);
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--secondary);
  transition: width 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  position: relative;
  width: 30px;
  height: 30px;
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--light);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: background-color 0.3s ease;
}

.hamburger::before, .hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background-color: var(--light);
  transition: transform 0.3s ease, top 0.3s ease;
  left: 0;
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-toggle[aria-expanded='true'] .hamburger {
  background-color: transparent;
}

.nav-toggle[aria-expanded='true'] .hamburger::before {
  transform: rotate(45deg);
  top: 0;
}

.nav-toggle[aria-expanded='true'] .hamburger::after {
  transform: rotate(-45deg);
  top: 0;
}

/* 4. HERO SECTION */
/* ========================================= */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  padding: 4rem 0;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(10, 25, 47, 0.95) 0%, rgba(10, 25, 47, 0.7) 50%, rgba(10, 25, 47, 0.1) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero.hero-with-featured .hero-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-text h1 {
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 4rem);
}

.hero-text p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1rem 0 2rem;
}

.featured-single {
  display: flex;
  justify-content: center;
}

.featured-card {
  background: var(--dark);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-moderate);
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 350px;
  text-align: center;
}

.featured-card__header {
  border-bottom: 1px solid var(--primary);
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.featured-card__logo {
  height: 40px;
  margin: 0 auto 0.5rem;
  object-fit: contain;
}

.featured-card__header h3 {
  color: var(--accent);
  font-size: 1.1rem;
}

.featured-card__body .featured-card__bonus {
  font-size: 1.4rem;
  font-weight: bold;
  color: #fff;
  margin-bottom: 0.5rem;
}

.featured-card__body .featured-card__info {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 1.5rem;
}

/* 5. BUTTONS */
/* ========================================= */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-moderate);
  border: 2px solid transparent;
  font-weight: 700;
  font-family: var(--font-heading);
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

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

.btn--primary:hover {
  background-color: var(--accent);
  color: var(--dark);
  transform: translateY(-2px);
}

.btn--secondary {
  background-color: var(--accent);
  color: var(--dark);
}

.btn--secondary:hover {
  background-color: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn--outline {
  background-color: transparent;
  border-color: var(--secondary);
  color: var(--secondary);
}

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

.btn--full {
  width: 100%;
}

/* 6. PARTNER CARDS SECTION */
/* ========================================= */
.partner-section {
  padding: 4rem 0;
  background-color: var(--bg);
}

.card-stack {
  display: grid;
  gap: 1.5rem;
}

.partner-card {
  background-color: var(--primary);
  border: 1px solid #233554;
  border-radius: var(--radius-moderate);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.2);
  border-color: var(--secondary);
}

.partner-card__rank {
  font-size: 2rem;
  font-weight: bold;
  color: var(--secondary);
  align-self: flex-start;
}

.partner-card__logo-container {
  flex-basis: 150px;
  flex-shrink: 0;
  text-align: center;
}

.partner-card__logo {
  max-height: 50px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(100%) contrast(120%) brightness(150%);
  transition: filter 0.3s ease;
}

.partner-card:hover .partner-card__logo {
  filter: none;
}

.partner-card__info {
  flex-grow: 1;
}

.partner-card__bonus {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

.partner-card__rating {
  font-size: 0.9rem;
  color: var(--light);
  opacity: 0.8;
}

.partner-card__cta-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.badge {
  font-size: 0.8rem;
  font-weight: bold;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  text-transform: uppercase;
  color: var(--dark);
}

.badge--hot { background-color: #ff4d4d; color: #fff; }
.badge--new { background-color: #4da6ff; color: #fff; }
.badge--value { background-color: var(--accent); }
.badge--exclusive { background-color: var(--secondary); }
.badge--popular { background-color: #f7b731; }

/* CARD STACK EFFECT */
@media (min-width: 992px) {
  .card-stack {
    padding-top: 3rem;
  }
  .partner-card {
    position: relative;
  }
  .partner-card:nth-child(1) { z-index: 5; }
  .partner-card:nth-child(2) { z-index: 4; }
  .partner-card:nth-child(3) { z-index: 3; }
  .partner-card:nth-child(4) { z-index: 2; }
  .partner-card:nth-child(5) { z-index: 1; margin-bottom: 0; }
}

/* 7. TESTIMONIAL SLIDER */
/* ========================================= */
.testimonial-slider {
  padding: 4rem 0;
  background-color: var(--primary);
}

.carousel {
  position: relative;
  overflow: hidden;
}

.carousel-slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
  display: none;
}

.carousel-slide.active {
  display: block;
}

.testimonial-card {
  background-color: var(--bg);
  padding: 2rem;
  border-radius: var(--radius-moderate);
  border-left: 5px solid var(--accent);
  text-align: center;
  margin: 0 1rem;
}

.testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 3px solid var(--secondary);
  margin: 0 auto 1rem;
  object-fit: cover;
}

.testimonial-text {
  font-style: italic;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.testimonial-author {
  font-weight: bold;
  color: var(--secondary);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(100, 255, 218, 0.2);
  border: none;
  color: #fff;
  font-size: 1.5rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  transition: background-color 0.3s ease;
}

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

.carousel-btn--prev { left: -10px; }
.carousel-btn--next { right: -10px; }

/* 8. FORMS (Review, Newsletter, Contact) */
/* ========================================= */
.review-form-section, .newsletter-section, .contact-form-section {
  padding: 4rem 0;
}

.newsletter-section {
  background-color: var(--bg);
  text-align: center;
}

.form-styled {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.form-styled label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-styled input,
.form-styled textarea {
  background-color: var(--primary);
  border: 1px solid #233554;
  border-radius: var(--radius-moderate);
  padding: 0.75rem;
  color: var(--light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-styled input:focus,
.form-styled textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 2px rgba(100, 255, 218, 0.3);
}

.form-inline {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.form-inline input {
  flex-grow: 1;
  max-width: 350px;
}

/* 9. RESPONSIBLE GAMING SECTION */
/* ========================================= */
.responsible-play {
  padding: 4rem 0;
  background-color: var(--dark);
  text-align: center;
}

.responsible-play .container {
  position: relative;
}

.age-badge {
  position: absolute;
  top: -2rem;
  right: 1rem;
  width: 60px;
  height: 60px;
  background-color: var(--accent);
  color: var(--dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  box-shadow: var(--shadow-md);
}

.responsible-play h2 {
  color: var(--accent);
}

.responsible-play p {
  max-width: 800px;
  margin: 0.5rem auto;
}

/* 10. FOOTER */
/* ========================================= */
.site-footer {
  background-color: var(--dark);
  padding: 3rem 0 1rem;
  font-size: 0.9rem;
}

.footer-logos {
  text-align: center;
  margin-bottom: 2rem;
  border-bottom: 1px solid #233554;
  padding-bottom: 2rem;
}

.footer-logos h3 {
  margin-bottom: 1.5rem;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2rem;
}

.logo-grid a img {
  max-height: 40px;
  filter: grayscale(100%) brightness(200%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-grid a:hover img {
  filter: none;
  opacity: 1;
}

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

.footer-column h4 {
  color: var(--secondary);
  margin-bottom: 1rem;
}

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

.footer-column a {
  color: var(--light);
}

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

.footer-bottom {
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid #233554;
  color: #8892b0;
}

.footer-bottom .disclaimer {
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
}

/* 11. MODALS (Success, Contact) */
/* ========================================= */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.modal[hidden] {
    display: none;
}

.modal__content {
  background-color: var(--bg);
  padding: 2rem;
  border-radius: var(--radius-moderate);
  text-align: center;
  width: 90%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: var(--light);
  font-size: 1.5rem;
  cursor: pointer;
}

.success-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: var(--secondary);
  color: var(--dark);
  font-size: 2.5rem;
  line-height: 60px;
  margin: 0 auto 1rem;
}

.modal__content h2 {
  color: var(--light);
}

.modal__content p {
  margin-bottom: 1.5rem;
}

/* 12. COOKIE BANNER */
/* ========================================= */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark);
  padding: 1rem;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
  z-index: 1500;
  transition: transform 0.3s ease-in-out;
}

.cookie-banner.hidden {
  transform: translateY(100%);
}

.cookie-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
}

/* 13. INNER PAGES STYLES (About, FAQ, Contact, etc.) */
/* ========================================= */
.page-header {
  background-color: var(--bg);
  padding: 4rem 0;
  text-align: center;
}

.content-section {
  padding: 4rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.content-grid.reverse {
    grid-template-columns: 1fr 1fr;
}
@media (max-width: 992px) {
    .content-grid.reverse {
        grid-template-columns: 1fr;
    }
    .content-grid .content-image {
        grid-row: 1;
    }
}

.content-image img {
  border-radius: var(--radius-moderate);
  box-shadow: var(--shadow-lg);
}

.text-content h3 {
  color: var(--secondary);
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.text-content ul {
    list-style-type: disc;
    padding-left: 20px;
}
.text-content ul li {
    margin-bottom: 0.5rem;
}

.text-center-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.support-contact {
    background: var(--bg);
    padding: 1.5rem;
    border-radius: var(--radius-moderate);
    margin-top: 1.5rem;
    border-left: 4px solid var(--accent);
}
.support-contact strong {
    color: var(--secondary);
}

/* FAQ Accordion */
.accordion details {
  background-color: var(--bg);
  border: 1px solid #233554;
  border-radius: var(--radius-moderate);
  margin-bottom: 1rem;
}

.accordion summary {
  padding: 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  list-style: none; /* For Firefox */
  position: relative;
  color: var(--light);
}

.accordion summary::-webkit-details-marker { display: none; } /* For Chrome/Safari */

.accordion summary::after {
  content: '+';
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  color: var(--secondary);
  transition: transform 0.3s ease;
}

.accordion details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.accordion-content {
  padding: 0 1rem 1rem;
  border-top: 1px solid #233554;
}

/* 14. RESPONSIVE DESIGN */
/* ========================================= */
@media (max-width: 992px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }

  .hero.hero-with-featured .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text p { margin: 1rem auto 2rem; }
  .featured-single { margin-top: 2rem; }

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

@media (max-width: 991px) {
  .nav-toggle {
    display: block;
    z-index: 1001;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    display: none;
    right: -100%;
    width: 70%;
    height: 100vh;
    background-color: var(--bg);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transition: right 0.4s ease-in-out;
    box-shadow: -5px 0 15px rgba(0,0,0,0.3);
  }

  .nav-menu.active {
    right: 0;
    display: flex;
  }

  .nav-link {
    font-size: 1.2rem;
  }

  .partner-card {
    flex-direction: column;
    text-align: center;
  }

  .partner-card__rank {
    align-self: center;
  }

  .partner-card__logo-container { flex-basis: auto; }

  .form-inline {
    flex-direction: column;
  }
  .form-inline input { max-width: 100%; }

  .cookie-content { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
  .hero {
    text-align: center;
  }
  .hero-text h1 {
    font-size: 2rem;
  }
  .hero-text p {
    font-size: 1rem;
  }
  .carousel-btn { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
}