/* 
* Ragnodin - Ragnarok Online Server
* Main Stylesheet - Inspirado no tema AlfheiM
*/

/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", "Arial", sans-serif;
}

:root {
  --primary-color: #6a3de8;
  --primary-light: #8a5cf7;
  --primary-dark: #4a1db0;
  --secondary-color: #ff3e78;
  --accent-color: #00d9ff;
  --dark-color: #1a1a2e;
  --darker-color: #121225;
  --darkest-color: #0c0c1d;
  --light-color: #f4f4f4;
  --text-color: #e1e1e6;
  --text-muted: #a0a0a6;
  --success-color: #00c896;
  --danger-color: #ff3e78;
  --header-bg: #0a0a18;
  --header-height: 70px;
}

body {
  color: var(--text-color);
  background-color: var(--darkest-color);
  background-image: url("../images/background.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(12, 12, 29, 0.95), rgba(12, 12, 29, 0.85));
  z-index: -1;
}

/* Utility Classes */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.section-title {
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
  color: var(--text-color);
  text-shadow: 0 0 10px rgba(106, 61, 232, 0.5);
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.btn {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  font-size: 0.9rem;
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  z-index: -1;
}

.btn:hover::before {
  left: 0;
}

.btn-primary {
  background: #6a3de8;
  color: white;
  box-shadow: 0 4px 15px rgba(106, 61, 232, 0.3);
}

.btn-secondary {
  background: #ff3e78;
  color: white;
  box-shadow: 0 4px 15px rgba(255, 62, 120, 0.3);
}

.btn-accent {
  background: linear-gradient(to right, var(--accent-color), #00b8d4);
  color: var(--dark-color);
  box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.flex {
  display: flex;
}

.grid {
  display: grid;
}

.card {
  background-color: rgba(26, 26, 46, 0.7);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(106, 61, 232, 0.1);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(106, 61, 232, 0.2);
  border-color: rgba(106, 61, 232, 0.3);
}

/* Header */
header {
  background-color: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 60px;
  filter: drop-shadow(0 0 10px rgba(106, 61, 232, 0.5));
}

/* Navigation */
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  margin-left: 30px;
}

.main-nav {
  display: flex;
  list-style: none;
}

.main-nav li {
  position: relative;
  margin: 0 5px;
}

.main-nav a {
  color: var(--text-color);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
  letter-spacing: 1px;
  padding: 10px 15px;
  display: block;
  font-size: 0.9rem;
  transition: color 0.3s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--primary-light);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15px;
  right: 15px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* User Account */
.user-account {
  position: relative;
}

.account-button {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: rgba(106, 61, 232, 0.2);
  border-radius: 5px;
  padding: 8px 15px;
  color: var(--text-color);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s;
}

.account-button:hover {
  background-color: rgba(106, 61, 232, 0.3);
}

.account-button i {
  color: var(--primary-light);
}

.account-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--header-bg);
  border-radius: 5px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(106, 61, 232, 0.2);
  min-width: 200px;
  z-index: 101;
  margin-top: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
}

.account-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.account-dropdown::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 20px;
  width: 12px;
  height: 12px;
  background-color: var(--header-bg);
  transform: rotate(45deg);
  border-top: 1px solid rgba(106, 61, 232, 0.2);
  border-left: 1px solid rgba(106, 61, 232, 0.2);
}

.account-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  color: var(--text-color);
  text-decoration: none;
  transition: all 0.3s;
  border-bottom: 1px solid rgba(106, 61, 232, 0.1);
}

.account-dropdown a:last-child {
  border-bottom: none;
}

.account-dropdown a:hover {
  background-color: rgba(106, 61, 232, 0.1);
  color: var(--primary-light);
}

.account-dropdown a i {
  color: var(--primary-light);
  width: 20px;
  text-align: center;
}

/* Auth Buttons */
.auth-buttons {
  display: flex;
  gap: 10px;
}

.auth-buttons .btn {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* Server Status */
.server-status {
  display: flex;
  align-items: center;
  gap: 15px;
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 5px;
  padding: 8px 15px;
}

.status-indicator {
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.8rem;
  text-transform: uppercase;
}

.status-indicator.online {
  background-color: var(--success-color);
  box-shadow: 0 0 5px rgba(0, 200, 150, 0.5);
}

.status-indicator.offline {
  background-color: var(--danger-color);
  box-shadow: 0 0 5px rgba(255, 62, 120, 0.5);
}

.players-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
}

.players-count i {
  color: var(--primary-light);
}

/* Mobile Menu */
.mobile-menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--primary-light);
  padding: 10px;
  border-radius: 5px;
  background-color: rgba(106, 61, 232, 0.1);
  transition: all 0.3s;
}

.mobile-menu-toggle:hover {
  background-color: rgba(106, 61, 232, 0.2);
}

/* Mobile Auth */
.mobile-auth {
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 20px;
  border-top: 1px solid rgba(106, 61, 232, 0.2);
  margin-top: 20px;
}

.mobile-auth .btn {
  width: 100%;
  margin-bottom: 10px;
}

.mobile-account-links {
  display: none;
  flex-direction: column;
  width: 100%;
  padding: 20px;
  border-top: 1px solid rgba(106, 61, 232, 0.2);
  margin-top: 20px;
}

.mobile-account-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  margin-bottom: 5px;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 5px;
  background-color: rgba(106, 61, 232, 0.1);
  transition: all 0.3s;
}

.mobile-account-links a:hover {
  background-color: rgba(106, 61, 232, 0.2);
  color: var(--primary-light);
}

.mobile-account-links a i {
  color: var(--primary-light);
  width: 20px;
  text-align: center;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  padding: 50px 20px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(106, 61, 232, 0.1) 0%, rgba(12, 12, 29, 0.1) 70%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  animation: fadeIn 1.5s ease-out;
  position: relative;
}

.hero-content::before,
.hero-content::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(106, 61, 232, 0.05);
  z-index: -1;
}

.hero-content::before {
  top: -100px;
  left: -100px;
  animation: pulse 4s infinite alternate;
}

.hero-content::after {
  bottom: -100px;
  right: -100px;
  animation: pulse 4s 2s infinite alternate;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.5);
    opacity: 0.1;
  }
}

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

.hero h1 {
  font-size: 4.5rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  line-height: 1.2;
  text-shadow: 0 0 20px rgba(106, 61, 232, 0.7);
  background: linear-gradient(to right, #6a3de8, #00d9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.hero p {
  font-size: 1.3rem;
  margin-bottom: 30px;
  line-height: 1.6;
  color: var(--text-color);
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-buttons .btn {
  min-width: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-buttons .btn i {
  font-size: 1.1rem;
}

/* Stats Section */
.stats-section {
  padding: 80px 0;
  background-color: rgba(12, 12, 29, 0.8);
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../images/pattern.png");
  opacity: 0.05;
  z-index: -1;
}

.stats {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-box {
  background: rgba(26, 26, 46, 0.7);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  flex: 1;
  transition: all 0.3s;
  border: 1px solid rgba(106, 61, 232, 0.2);
  max-width: 280px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  margin-bottom: 20px;
}

.stat-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.stat-box:hover {
  transform: translateY(-10px);
  border-color: var(--primary-color);
  box-shadow: 0 15px 40px rgba(106, 61, 232, 0.3);
}

.stat-box.download {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.7));
  cursor: pointer;
}

.stat-box.online {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.7));
}

.stat-box.accounts {
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(26, 26, 46, 0.7));
}

.stat-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--primary-light);
  text-shadow: 0 0 10px rgba(106, 61, 232, 0.5);
}

.stat-title {
  font-size: 1.3rem;
  margin-bottom: 15px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-color);
}

.stat-value {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 15px;
  background: linear-gradient(to right, var(--primary-light), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.stat-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* About Section */
.about-section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at top right, rgba(106, 61, 232, 0.1), transparent 70%);
  z-index: -1;
}

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

.about-text h2 {
  font-size: 2.8rem;
  margin-bottom: 30px;
  text-transform: uppercase;
  background: linear-gradient(to right, var(--primary-light), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.about-text p {
  margin-bottom: 25px;
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--text-color);
}

.about-image {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  transform: perspective(1000px) rotateY(-5deg);
  transition: all 0.5s;
}

.about-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom right, rgba(106, 61, 232, 0.3), rgba(0, 217, 255, 0.3));
  z-index: 1;
  opacity: 0.6;
  transition: opacity 0.5s;
}

.about-image:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.about-image:hover::before {
  opacity: 0.3;
}

.about-image img {
  width: 100%;
  height: auto;
  transition: transform 0.5s;
  display: block;
}

.about-image:hover img {
  transform: scale(1.05);
}

/* Download Section */
.download-section {
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.download-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(106, 61, 232, 0.2), transparent 70%);
  z-index: -1;
}

.download-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.download-title {
  font-size: 3rem;
  margin-bottom: 25px;
  text-transform: uppercase;
  background: linear-gradient(to right, var(--primary-light), var(--accent-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.download-desc {
  margin-bottom: 40px;
  line-height: 1.8;
  font-size: 1.2rem;
  color: var(--text-color);
}

.download-buttons {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.download-buttons .btn {
  display: flex;
  align-items: center;
  padding: 15px 30px;
  min-width: 250px;
  margin-bottom: 15px;
}

.download-buttons .btn i {
  margin-right: 10px;
  font-size: 1.3rem;
}

/* Footer */
.site-footer {
  background-color: rgba(12, 12, 29, 0.95);
  color: var(--text-color);
  border-top: 1px solid rgba(106, 61, 232, 0.2);
  margin-top: auto;
}

.footer-top {
  padding: 60px 0;
}

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

.footer-widget {
  margin-bottom: 30px;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  height: 160px;
  filter: drop-shadow(0 0 10px rgba(106, 61, 232, 0.7));
}

.footer-desc {
  margin-bottom: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(106, 61, 232, 0.1);
  border-radius: 50%;
  color: var(--text-color);
  transition: all 0.3s;
  border: 1px solid rgba(106, 61, 232, 0.2);
}

.social-links a:hover {
  background-color: var(--primary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(106, 61, 232, 0.3);
}

.widget-title {
  color: var(--text-color);
  font-size: 1.25rem;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  text-shadow: 0 0 10px rgba(106, 61, 232, 0.5);
}

.widget-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 3px;
  background: linear-gradient(to right, var(--primary-color), var(--accent-color));
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
  border-bottom: 1px solid rgba(106, 61, 232, 0.1);
  padding-bottom: 5px;
}

.footer-links a {
  color: var(--text-muted);
  transition: all 0.3s;
  display: inline-block;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-light);
  transform: translateX(5px);
}

.footer-bottom {
  background-color: rgba(12, 12, 29, 0.98);
  padding: 20px 0;
  font-size: 0.9rem;
  border-top: 1px solid rgba(106, 61, 232, 0.1);
}

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

.footer-menu ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin-left: 20px;
}

.footer-menu a {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.footer-menu a:hover {
  color: var(--primary-light);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(106, 61, 232, 0.3);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s;
  z-index: 99;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(106, 61, 232, 0.5);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .footer-widgets {
    grid-template-columns: repeat(2, 1fr);
  }

  .server-status {
    display: none;
  }
}

@media (max-width: 992px) {
  .hero h1 {
    font-size: 3.5rem;
  }

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

  .about-image {
    order: -1;
    max-width: 600px;
    margin: 0 auto 40px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
  }

  .stats {
    flex-wrap: wrap;
  }

  .stat-box {
    min-width: 250px;
    margin-bottom: 20px;
  }

  .main-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background-color: var(--header-bg);
    flex-direction: column;
    padding: 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    z-index: 100;
  }

  .main-nav.active {
    display: flex;
  }

  .main-nav li {
    margin: 0;
    width: 100%;
    border-bottom: 1px solid rgba(106, 61, 232, 0.1);
  }

  .main-nav a {
    padding: 15px 20px;
    width: 100%;
    text-align: center;
  }

  .main-nav a.active::after {
    display: none;
  }

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

  .auth-buttons {
    display: none;
  }

  .mobile-auth {
    display: flex;
  }

  .mobile-account-links {
    display: flex;
  }

  .user-account {
    display: none;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.8rem;
  }

  .section-title {
    font-size: 2.2rem;
  }

  .download-buttons {
    flex-direction: column;
    align-items: center;
  }

  .download-buttons .btn {
    width: 100%;
    margin-bottom: 15px;
  }
}

@media (max-width: 576px) {
  .hero h1 {
    font-size: 2.2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .btn {
    padding: 8px 15px;
    font-size: 0.8rem;
  }

  .download-title {
    font-size: 2.2rem;
  }

  .footer-bottom .container {
    flex-direction: column;
    gap: 15px;
  }

  .footer-menu ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-menu li {
    margin: 5px 10px;
  }

  .logo img {
    height: 30px;
  }

  .header-container {
    padding: 0 10px;
  }
}
