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

:root {
  --primary-color: #e50914;
  --secondary-color: #141414;
  --text-color: #ffffff;
  --bg-color: #000000;
  --card-bg: #1a1a1a;
  --hover-color: #b20710;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  overflow-x: hidden;
}

body.dark-theme {
  --bg-color: #000000;
  --card-bg: #1a1a1a;
  --text-color: #ffffff;
}

body.light-theme {
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --text-color: #000000;
  --secondary-color: #333333;
}

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

/* Header */
header {
  background-color: rgba(20, 20, 20, 0.95);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(10px);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--primary-color);
}

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

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

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

/* Styling for separate Sign-up and Sign-in buttons */
.btn-signup,
.btn-signin {
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.3s;
}

.btn-signup {
  background-color: transparent;
  color: var(--text-color);
  border: 2px solid var(--primary-color);
}

.btn-signup:hover {
  background-color: var(--primary-color);
  color: white;
}

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

.btn-signin:hover {
  background-color: var(--hover-color);
}

.btn-login {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

.btn-login:hover {
  background-color: var(--hover-color);
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text-color);
  margin: 3px 0;
  transition: 0.3s;
}

/* Hero Section */
.hero {
  padding: 120px 20px 80px;
  text-align: center;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.1) 0%, rgba(0, 0, 0, 0.9) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-image {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid var(--primary-color);
  margin-bottom: 2rem;
  box-shadow: 0 10px 40px rgba(229, 9, 20, 0.3);
}

.hero h1 {
  font-size: 4rem;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.7);
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  font-size: 2rem;
}

.social-links a {
  color: var(--text-color);
  transition: color 0.3s, transform 0.3s;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: scale(1.2);
}

/* About Section */
.about {
  padding: 80px 20px;
  background-color: var(--secondary-color);
}

.about h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  flex-wrap: wrap;
}

.about-content img {
  width: 400px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.about-text {
  flex: 1;
  min-width: 300px;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.8;
}

/* Featured Section */
.featured {
  padding: 80px 20px;
  background: linear-gradient(135deg, rgba(229, 9, 20, 0.05) 0%, var(--bg-color) 100%);
}

.featured h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.featured-card {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.featured-card img {
  width: 100%;
  height: auto;
}

.featured-info {
  padding: 2rem;
  text-align: center;
}

.featured-info h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.featured-show {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.featured-highlight {
  cursor: pointer;
  border: 3px solid var(--primary-color);
  box-shadow: 0 0 30px rgba(229, 9, 20, 0.5);
  transition: all 0.3s;
}

.featured-highlight:hover {
  transform: scale(1.02);
  box-shadow: 0 0 50px rgba(229, 9, 20, 0.8);
}

.featured-description {
  font-size: 1rem;
  color: #ccc;
  margin-top: 0.5rem;
}

/* Works Section */
.works {
  padding: 80px 20px;
  background-color: var(--secondary-color);
}

.works h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.work-card {
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(229, 9, 20, 0.4);
}

.work-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.work-card h3 {
  padding: 1rem;
  font-size: 1.3rem;
}

.work-type {
  padding: 0 1rem 1rem;
  color: #999;
}

/* Gallery Section */
.gallery {
  padding: 80px 20px;
  background-color: var(--bg-color);
}

.gallery h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.3s;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Chat Section */
.chat-section {
  padding: 80px 20px;
  background-color: var(--secondary-color);
}

.chat-section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

.chat-container {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.chat-messages {
  height: 400px;
  overflow-y: auto;
  padding: 1.5rem;
  border-bottom: 1px solid #333;
}

.chat-message {
  margin-bottom: 1rem;
  padding: 0.8rem;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.chat-message.verified {
  background-color: rgba(229, 9, 20, 0.1);
  border-left: 3px solid var(--primary-color);
}

.message-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.verified-badge {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.message-time {
  font-size: 0.8rem;
  color: #999;
  margin-left: auto;
}

.chat-input-container {
  display: flex;
  padding: 1rem;
}

#chatInput {
  flex: 1;
  padding: 0.8rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #444;
  border-radius: 5px;
  color: var(--text-color);
  font-size: 1rem;
}

#sendMessage {
  margin-left: 1rem;
  padding: 0.8rem 2rem;
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s;
}

#sendMessage:hover {
  background-color: var(--hover-color);
}

/* Footer */
footer {
  background-color: #0a0a0a;
  padding: 3rem 20px;
  text-align: center;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-credits {
  margin-bottom: 2rem;
}

.footer-credits a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  display: block;
  margin: 0.5rem 0;
}

.footer-legal {
  margin-top: 2rem;
}

.hbo-logo {
  width: 120px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
}

.copyright-text {
  font-size: 0.9rem;
  color: #999;
  margin: 1rem 0;
  line-height: 1.6;
}

.copyright {
  font-size: 0.9rem;
  color: #666;
  margin-top: 1rem;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: var(--card-bg);
  margin: 5% auto;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 10px 50px rgba(0, 0, 0, 0.7);
}

.admin-panel {
  max-width: 900px;
}

.close,
.close-settings,
.close-admin {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
}

.close:hover,
.close-settings:hover,
.close-admin:hover {
  color: var(--primary-color);
}

#loginForm input,
#registerForm input,
.settings-content input,
.settings-content select {
  width: 100%;
  padding: 0.8rem;
  margin: 0.5rem 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #444;
  border-radius: 5px;
  color: var(--text-color);
  font-size: 1rem;
}

#loginBtn,
#registerBtn,
#saveSettings {
  width: 100%;
  padding: 0.8rem;
  margin-top: 1rem;
  background-color: var(--primary-color);
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

#loginBtn:hover,
#registerBtn:hover,
#saveSettings:hover {
  background-color: var(--hover-color);
}

.switch-form {
  text-align: center;
  margin-top: 1rem;
  color: #999;
}

.switch-form span {
  color: var(--primary-color);
  cursor: pointer;
  font-weight: bold;
}

/* Settings */
.setting-item {
  margin-bottom: 1.5rem;
}

.setting-item label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* User Menu */
.user-menu {
  position: fixed;
  top: 70px;
  right: 20px;
  background-color: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 1500;
  min-width: 200px;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #444;
}

#userAvatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

#verifiedBadge {
  color: var(--primary-color);
  font-size: 1.2rem;
}

.user-menu button {
  width: 100%;
  padding: 0.6rem;
  margin: 0.3rem 0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #444;
  border-radius: 5px;
  color: var(--text-color);
  cursor: pointer;
  transition: background-color 0.3s;
}

.user-menu button:hover {
  background-color: var(--primary-color);
}

/* Admin Panel */
.admin-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  border-bottom: 2px solid #444;
}

.tab-btn {
  padding: 0.8rem 1.5rem;
  background-color: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}

.tab-btn.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
}

.tab-content {
  display: none;
  max-height: 500px;
  overflow-y: auto;
}

.tab-content.active {
  display: block;
}

.user-item,
.log-item,
.banned-item {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.user-actions button,
.banned-actions button {
  padding: 0.4rem 1rem;
  margin-left: 0.5rem;
  background-color: var(--primary-color);
  border: none;
  border-radius: 3px;
  color: white;
  cursor: pointer;
  font-size: 0.9rem;
}

.user-actions button.ban {
  background-color: #dc3545;
}

.user-actions button.verify {
  background-color: #28a745;
}

/* Notable Character Section */
.notable-character {
  padding: 80px 20px;
  background-color: var(--secondary-color);
}

.notable-character h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary-color);
}

/* Adding styles for user profile header in top right */
.user-profile-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  cursor: pointer;
}

#headerUserAvatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
}

#headerUsername {
  font-weight: 600;
  color: var(--text-color);
}

.verified-badge-header {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: bold;
}

.settings-btn-header {
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: color 0.3s, transform 0.3s;
}

.settings-btn-header:hover {
  color: var(--primary-color);
  transform: rotate(90deg);
}

/* Redirect modal styles */
.redirect-modal {
  text-align: center;
  max-width: 600px;
}

.redirect-modal h2 {
  color: var(--primary-color);
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.redirect-url {
  background-color: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 5px;
  word-break: break-all;
  margin: 1rem 0;
  font-family: monospace;
  color: #4a9eff;
}

.redirect-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-yes,
.btn-no {
  padding: 0.8rem 2.5rem;
  border: none;
  border-radius: 5px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s;
  font-weight: 600;
}

.btn-yes {
  background-color: #28a745;
  color: white;
}

.btn-yes:hover {
  background-color: #218838;
  transform: scale(1.05);
}

.btn-no {
  background-color: #dc3545;
  color: white;
}

.btn-no:hover {
  background-color: #c82333;
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 100%;
    height: calc(100vh - 70px);
    background-color: rgba(20, 20, 20, 0.98);
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 2rem;
    transition: right 0.3s;
  }

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

  /* Responsive user profile header */
  .user-profile-header {
    margin-top: 1rem;
  }

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

  .hero-image {
    width: 200px;
    height: 200px;
  }

  .about-content {
    flex-direction: column;
  }

  .about-content img {
    width: 100%;
  }

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

  .modal-content {
    width: 95%;
    margin: 10% auto;
  }

  .user-menu {
    right: 10px;
    left: 10px;
  }
}

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

  .hero-subtitle {
    font-size: 1.2rem;
  }

  .about h2,
  .works h2,
  .featured h2,
  .gallery h2,
  .chat-section h2 {
    font-size: 2rem;
  }
}
