/*
Theme Name: Quizrundan
Theme URI: https://quizrundan.se
Author: Antigravity
Author URI: https://quizrundan.se
Description: En rolig och interaktiv tipspromenad i mobilen. Modern och responsiv design för Quizrundan-webbplatsen.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: quizrundan
*/

:root {
  --primary-blue: #00aeef;
  --primary-green: #2ecc71;
  --primary-purple: #6c5ce7;
  --dark-navy: #1e3799;
  --bg-light: #f8faff;
  --glass-bg: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.3);
  --text-main: #2d3436;
  --text-muted: #636e72;
  --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
}

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

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-light);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Glassmorphism utility */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--dark-navy);
}

.logo a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: inherit;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--primary-blue);
}

.mobile-menu-toggle {
  display: none !important;
  /* Hide on desktop by default */
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  transition: all 0.3s;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  position: relative;
  align-items: center;
  justify-content: center;
}

/* Normal Hamburger Icons - 3 Horizontal Lines */
.mobile-menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--dark-navy);
  border-radius: 3px;
  transition: all 0.3s;
  position: relative;
}

.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--dark-navy);
  border-radius: 3px;
  transition: all 0.3s;
  position: absolute;
  left: 0;
}

.mobile-menu-toggle span::before {
  top: -8px;
}

.mobile-menu-toggle span::after {
  top: 8px;
}

/* Active State Transformation to X */
.mobile-menu-toggle.active span {
  background: transparent;
}

.mobile-menu-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}

.mobile-menu-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

.mobile-menu-toggle i {
  display: none;
}

/* Buttons (Duolingo Style) */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.2s;
  position: relative;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 5px 0 #0093ca;
}

.btn-green {
  background: var(--primary-green);
  color: white;
  box-shadow: 0 5px 0 #27ae60;
}

.btn-blue {
  background: var(--primary-blue);
  color: white;
  box-shadow: 0 5px 0 #0093ca;
}

.btn-purple {
  background: var(--primary-purple);
  color: white;
  box-shadow: 0 5px 0 #5b4cc4;
}

.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
}

.small-btn {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
  border-radius: 12px;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 20%, rgba(0, 174, 239, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(46, 204, 113, 0.05) 0%, transparent 50%);
  z-index: -1;
}

.hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  font-weight: 800;
  color: var(--dark-navy);
  margin-bottom: 1.5rem;
}

.hero-text h1 span {
  color: var(--primary-blue);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.hero-actions {
  display: flex;
  gap: 1.5rem;
}

/* Phone Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.phone-mockup {
  width: 300px;
  height: auto;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 50px 100px rgba(0, 0, 0, 0.2);
  transform: rotateY(-10deg) rotateX(5deg);
  transition: transform 0.5s;
  background: transparent;
  border: none;
  padding: 0;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: transparent;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 0;
}

.app-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 40px;
}

.app-logo-float {
  width: 80px;
  margin-bottom: 40px;
  animation: float 3s ease-in-out infinite;
}

.mock-content {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
  padding: 0 20px;
}

.mock-btn {
  height: 45px;
  border-radius: 12px;
  width: 100%;
}

.mock-btn.green {
  background: var(--primary-green);
  border-bottom: 4px solid #27ae60;
}

.mock-btn.blue {
  background: var(--primary-blue);
  border-bottom: 4px solid #0093ca;
}

.mock-btn.purple {
  background: var(--primary-purple);
  border-bottom: 4px solid #5b4cc4;
}

/* Features */
.features {
  padding: 100px 0;
  background: #f8fbff;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 4rem;
  color: var(--dark-navy);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 4rem 3rem;
  border-radius: 30px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  background: white;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card .icon {
  font-size: 3.5rem;
  margin-bottom: 2rem;
  display: block;
}

.blue-icon {
  color: #2196F3;
}

.green-icon {
  color: #4CAF50;
}

.red-icon {
  color: #f44336;
}

.purple-icon {
  color: #9c27b0;
}

.feature-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 1.2rem;
  color: #444;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #777;
}

/* Leaderboard Section */
.leaderboard {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.leaderboard-content {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.leaderboard-text .badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.2rem;
  background: #fff9e6;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  color: #f1c40f;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.leaderboard-text h2 {
  font-size: 3.5rem;
  line-height: 1.2;
  font-weight: 800;
  color: #4a4a4a;
  margin-bottom: 1rem;
}

.leaderboard-text h2 span {
  display: block;
  color: var(--primary-blue);
}

.leaderboard-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 90%;
}

.leaderboard-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.mini-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.card-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.card-icon.green {
  background: #e8f8f0;
  color: #2ecc71;
  border: 2px solid #e8f8f0;
}

.card-icon.yellow {
  background: #fff9e6;
  color: #f1c40f;
  border: 2px solid #fff9e6;
}

.card-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.2rem;
}

.card-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.3;
}

/* Leaderboard UI Mockup */
.leaderboard-visual {
  display: flex;
  justify-content: center;
  padding: 2rem;
}

.leaderboard-ui {
  width: 100%;
  max-width: 400px;
  background: white;
  padding: 2.5rem 2rem;
  border-radius: 30px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.08);
  transform: rotate(4deg);
}

.ui-header {
  text-align: center;
  margin-bottom: 2rem;
}

.ui-header .ui-crown {
  font-size: 2.5rem;
  margin-bottom: 0.2rem;
}

.ui-header h3 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary-blue);
  margin-bottom: 0.2rem;
}

.ui-header span {
  font-size: 0.7rem;
  font-weight: 700;
  color: #bdc3c7;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 0;
  margin-bottom: 2rem;
}

.podium-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
}

.podium-item .avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-bottom: 15px;
  position: relative;
  z-index: 10;
}

.podium-item .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fff;
  border: 3px solid transparent;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.podium-item.first .avatar {
  width: 70px;
  height: 70px;
}

.podium-item.first .avatar img {
  border-color: #f1c40f;
}

.podium-item .name {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: #4a4a4a;
  color: white;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.65rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.podium-item.first .name {
  background: #f1c40f;
}

.podium-item .bar {
  width: 100%;
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: white;
  font-size: 2rem;
  position: relative;
}

.podium-item.first .bar {
  height: 140px;
  background: #f1c40f;
  font-size: 2.5rem;
  box-shadow: 0 -10px 20px rgba(241, 196, 15, 0.1);
  z-index: 2;
}

.podium-item.second .bar {
  height: 90px;
  background: #e9ecef;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.podium-item.third .bar {
  height: 70px;
  background: #e9ecef;
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ui-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.list-item {
  display: flex;
  align-items: center;
  background: #f8faff;
  padding: 0.8rem 1.2rem;
  border-radius: 12px;
  gap: 1.2rem;
}

.list-item .rank {
  font-weight: 800;
  color: #bdc3c7;
  font-size: 1rem;
  width: 20px;
}

.list-item img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #eee;
}

.list-item .user-name {
  flex-grow: 1;
  font-weight: 700;
  font-size: 0.95rem;
  color: #4a4a4a;
}

.list-item .score {
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--primary-blue);
}

/* About */
.about {
  padding: 100px 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: center;
}

.about-image {
  display: flex;
  justify-content: center;
}

.logo-wrapper {
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-wrapper img {
  width: 150px;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--dark-navy);
}

.about-text p {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* Footer */
footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
}

.footer-logo img {
  height: 30px;
}

.footer-links {
  display: flex;
  gap: 2rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 600;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--primary-blue);
}

/* Animations */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-20px);
  }
}

.floating {
  animation: float 4s ease-in-out infinite;
}

/* Contact Section */
.contact {
  padding: 100px 0;
  background: white;
}

.contact-content {
  display: flex;
  justify-content: center;
}

.contact-card {
  width: 100%;
  max-width: 800px;
  padding: 4rem;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
  text-align: center;
}

.contact-intro {
  margin-bottom: 3rem;
  color: var(--text-muted);
  font-size: 1.15rem;
}

/* WPForms Resets & Styling to match premium theme */
.wpforms-container {
  margin: 0 auto !important;
}

.wpforms-form {
  display: grid;
  gap: 1.5rem;
}

.wpforms-field {
  padding: 0 !important;
  margin: 0 !important;
  text-align: left;
}

.wpforms-field-label {
  display: block;
  font-weight: 700 !important;
  margin-bottom: 8px !important;
  color: var(--dark-navy) !important;
  font-size: 0.9rem !important;
}

.wpforms-field input,
.wpforms-field textarea {
  width: 100% !important;
  padding: 12px 16px !important;
  border-radius: 12px !important;
  border: 2px solid #edf2f7 !important;
  background: #f8fafc !important;
  transition: all 0.2s !important;
  font-family: inherit !important;
  font-size: 1rem !important;
}

.wpforms-field input:focus,
.wpforms-field textarea:focus {
  border-color: var(--primary-blue) !important;
  background: white !important;
  outline: none;
  box-shadow: 0 0 0 4px rgba(0, 174, 239, 0.1) !important;
}

.wpforms-submit-container {
  margin-top: 1rem !important;
}

.wpforms-submit {
  background: var(--primary-blue) !important;
  color: white !important;
  padding: 1rem 2.5rem !important;
  border-radius: 16px !important;
  border: none !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  box-shadow: 0 5px 0 #0093ca !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  width: auto !important;
  display: inline-block !important;
}

.wpforms-submit:active {
  transform: translateY(4px) !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1) !important;
}

/* Responsive */
@media (max-width: 968px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-text p {
    margin: 0 auto 2.5rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  /* Leaderboard Mobile Optimization */
  .leaderboard-content {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .leaderboard-text h2 {
    font-size: 2.5rem;
  }

  .leaderboard-text p {
    margin-left: auto;
    margin-right: auto;
  }

  .leaderboard-cards {
    grid-template-columns: 1fr;
    max-width: 350px;
    margin: 0 auto;
  }

  .leaderboard-ui {
    transform: rotate(0) scale(0.95);
    margin: 0 auto;
  }

  .leaderboard-visual {
    padding: 1rem 0;
  }

  /* Mobile Navigation Styles */
  .mobile-menu-toggle {
    display: flex !important;
    /* Force show on mobile */
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 1.5rem;
    width: 100%;
    text-align: center;
  }

  /* Contact Section Mobile */
  .contact-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .leaderboard-text h2 {
    font-size: 2rem;
  }

  .leaderboard-ui {
    padding: 1.5rem 1rem;
  }

  .podium {
    gap: 2px;
  }
}