/* 
 * X Tools - CSS Styles
 * Colors: Primary #1d162c, Secondary #5e17eb
 */

/* Base Styles */
:root {
  --primary-color: #1d162c;
  --secondary-color: #5e17eb;
  --text-color: #ffffff;
  --text-muted: #a0a0a0;
  --bg-card: rgba(30, 22, 44, 0.6);
  --border-color: rgba(94, 23, 235, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--primary-color);
  color: var(--text-color);
  line-height: 1.6;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden {
  display: none !important;
}

/* Header */
.header {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  padding: 1rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-color);
  text-decoration: none;
}

.main-nav {
  display: none;
}

.nav-link, .mobile-nav-link {
  color: var(--text-color);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover, .mobile-nav-link:hover {
  color: rgba(255, 255, 255, 0.8);
}

.mobile-menu-button {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu-button svg {
  width: 24px;
  height: 24px;
}

.close {
  display: none;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem;
  background-color: var(--primary-color);
}

.mobile-nav-link {
  padding: 0.5rem 0;
  margin: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 1rem;
}

.mobile-nav-link:last-child {
  border-bottom: none;
}

/* Main Content */
.main-content {
  padding: 2rem 0;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 3rem 0;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, white, var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border-radius: 0.25rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-outline {
  border: 1px solid var(--secondary-color);
  color: white;
  background-color: transparent;
}

.btn-outline:hover {
  background-color: rgba(94, 23, 235, 0.1);
}

.btn-vip {
  background: linear-gradient(to right, var(--secondary-color), #9a4aff);
  color: white;
}

.btn-vip:hover {
  opacity: 0.9;
}

.btn-block {
  display: block;
  width: 100%;
}

/* Card Component */
.card {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  background-opacity: 0.2;
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  overflow: hidden;
}

/* Discord Section */
.discord-card {
  margin: 2rem 0;
}

.discord-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.discord-text {
  max-width: 100%;
  margin-bottom: 1.5rem;
}

.discord-text h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.discord-text p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.discord-logo svg {
  width: 80px;
  height: 80px;
  opacity: 0.9;
}

/* Features Section */
.features {
  padding: 2rem 0;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  background-opacity: 0.2;
  padding: 1.5rem;
  border-radius: 0.5rem;
  transition: transform 0.2s, background-opacity 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
  transform: translateY(-5px);
  background-opacity: 0.3;
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-muted);
}

/* Plans Section */
.plans {
  padding: 2rem 0;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.plan-card {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  background-opacity: 0.2;
  border-radius: 0.5rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-popular {
  border: 2px solid var(--secondary-color);
}

.plan-vip {
  background: linear-gradient(to bottom, rgba(29, 22, 44, 0.6), rgba(94, 23, 235, 0.3));
}

.popular-badge {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--secondary-color);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-bottom-left-radius: 0.25rem;
}

.plan-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.plan-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.plan-header p {
  color: var(--text-muted);
}

.plan-price {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 1rem;
}

.plan-features {
  list-style: none;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-features li {
  margin-bottom: 0.75rem;
  padding-left: 2rem;
  position: relative;
}

.feature-included::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2322c55e'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.feature-excluded {
  color: var(--text-muted);
}

.feature-excluded::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.25rem;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23ef4444'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M6 18L18 6M6 6l12 12'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* Footer */
.footer {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-info {
  text-align: center;
  margin-bottom: 1.5rem;
}

.footer-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.footer-subtitle {
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.footer-copyright {
  text-align: center;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
}

/* Form Styles */
.form-container {
  max-width: 400px;
  margin: 0 auto;
}

.form-title {
  font-size: 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.form-input {
  width: 100%;
  padding: 0.75rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  color: var(--text-color);
  transition: border-color 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form-select {
  width: 100%;
  padding: 0.75rem;
  background-color: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.25rem;
  color: var(--text-color);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='white'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2.5rem;
}

.form-select:focus {
  outline: none;
  border-color: var(--secondary-color);
}

.form-error {
  background-color: rgba(239, 68, 68, 0.2);
  border: 1px solid rgba(239, 68, 68, 0.5);
  color: #fecaca;
  padding: 0.75rem;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
}

.form-success {
  background-color: rgba(34, 197, 94, 0.2);
  border: 1px solid rgba(34, 197, 94, 0.5);
  color: #bbf7d0;
  padding: 0.75rem;
  border-radius: 0.25rem;
  margin-bottom: 1.5rem;
}

.form-footer {
  text-align: center;
  margin-top: 1.5rem;
}

.form-footer a {
  color: var(--secondary-color);
  text-decoration: none;
}

.form-footer a:hover {
  text-decoration: underline;
}

/* Loading Spinner */
.spinner {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 3px solid var(--secondary-color);
  width: 24px;
  height: 24px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-right: 0.5rem;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Dashboard Styles */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.dashboard-title {
  font-size: 1.75rem;
}

.user-badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-free {
  background-color: #6b7280;
}

.badge-premium {
  background-color: #3b82f6;
}

.badge-vip {
  background-color: #9333ea;
}

.badge-designer {
  background-color: #22c55e;
}

.badge-admin {
  background-color: #ef4444;
}

.dashboard-sidebar {
  margin-bottom: 2rem;
}

.category-list {
  list-style: none;
}

.category-item {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-radius: 0.25rem;
  cursor: pointer;
  transition: background-color 0.2s;
}

.category-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.category-item.active {
  background-color: var(--secondary-color);
  color: white;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.tool-card {
  background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
  background-opacity: 0.2;
  padding: 1.5rem;
  border-radius: 0.5rem;
  transition: transform 0.2s, background-opacity 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tool-card:hover {
  transform: translateY(-5px);
  background-opacity: 0.3;
}

.tool-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 0.5rem;
}

.tool-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.tool-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1rem;
}

.tool-author {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Admin Styles */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-title {
  font-size: 1.75rem;
}

.table-container {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.75rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-table th {
  background-color: rgba(0, 0, 0, 0.2);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.admin-table tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.action-link {
  color: var(--secondary-color);
  text-decoration: none;
  margin-right: 1rem;
  cursor: pointer;
}

.action-link:hover {
  text-decoration: underline;
}

.delete-link {
  color: #ef4444;
  text-decoration: none;
  cursor: pointer;
}

.delete-link:hover {
  text-decoration: underline;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background-color: var(--primary-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  width: 100%;
  max-width: 400px;
}

.modal-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.modal-body {
  margin-bottom: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
}

.btn-danger {
  background-color: #ef4444;
  color: white;
}

.btn-danger:hover {
  opacity: 0.9;
}

.btn-cancel {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.btn-cancel:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Error Page */
.error-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: 2rem;
}

.error-code {
  font-size: 5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: linear-gradient(to right, white, var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.error-title {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}

.error-message {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.error-actions {
  display: flex;
  gap: 1rem;
}

/* Media Queries */
@media (min-width: 768px) {
  .main-nav {
    display: flex;
  }

  .mobile-menu-button {
    display: none;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: row;
  }

  .discord-content {
    flex-direction: row;
    justify-content: space-between;
  }

  .discord-text {
    max-width: 60%;
    margin-bottom: 0;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
  }

  .footer-info {
    text-align: left;
    margin-bottom: 0;
  }

  .footer-links {
    flex-direction: row;
  }

  .dashboard-container {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 2rem;
  }

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Discord Login Button */
.btn-discord {
  background-color: #5865F2;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  width: 100%;
  font-weight: 600;
  transition: background-color 0.2s;
}

.btn-discord:hover {
  background-color: #4752c4;
}

.discord-icon {
  width: 24px;
  height: 24px;
}

.discord-login-container {
  text-align: center;
  margin-bottom: 20px;
}

.discord-login-text {
  margin-bottom: 15px;
  font-size: 1rem;
}

.discord-login-requirements {
  margin-bottom: 20px;
  font-size: 0.875rem;
  color: #666;
}

/* Role Badges */
.role-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-right: 8px;
  margin-bottom: 8px;
}

.role-badge.admin {
  background-color: #ED4245;
  color: white;
}

.role-badge.vip {
  background-color: #ffd700;
  color: #222;
}

.role-badge.premium {
  background-color: #5865F2;
  color: white;
}

.role-badge.designer {
  background-color: #EB459E;
  color: white;
}

.role-badge.free {
  background-color: #57F287;
  color: #222;
}

/* Tools Display Sections */
.categories-section, .tools-section, .tool-details-section, .access-error-section {
  margin-bottom: 40px;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.category-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.category-icon {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.tools-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.tool-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tool-card h3 {
  margin-top: 0;
}

.tool-card p {
  flex-grow: 1;
  margin-bottom: 15px;
}

.back-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 20px;
  cursor: pointer;
  color: #5865F2;
  font-weight: 500;
}

.back-button:hover {
  text-decoration: underline;
}

.tool-details-section h1 {
  margin-bottom: 20px;
}

.tool-details-section p {
  margin-bottom: 30px;
  line-height: 1.6;
}

.tool-details-section h2 {
  font-size: 1.25rem;
  margin-top: 30px;
  margin-bottom: 10px;
}

.code-block {
  background-color: #f6f8fa;
  border-radius: 6px;
  padding: 15px;
  font-family: monospace;
  overflow-x: auto;
  margin-bottom: 20px;
}

.access-error-section {
  text-align: center;
  padding: 40px 20px;
}

.access-error-section h2 {
  color: #ED4245;
  margin-bottom: 20px;
}

.access-error-section p {
  margin-bottom: 30px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Admin Panel Styles */
.admin-section {
  margin-bottom: 40px;
}

.admin-section h2 {
  margin-bottom: 20px;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}

.admin-table th, .admin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.admin-table th {
  background-color: #f8f9fa;
  font-weight: 600;
}

.admin-form {
  background-color: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 600px;
  margin: 0 auto;
}

.admin-form h3 {
  margin-top: 0;
  margin-bottom: 20px;
}

/* User Dashboard Styles */
.user-profile {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
}

.user-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}

.user-info h2 {
  margin-top: 0;
  margin-bottom: 5px;
}

.user-info p {
  margin: 5px 0;
  color: #666;
}

.membership-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.membership-card h3 {
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.membership-info {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.membership-label {
  font-weight: 500;
  color: #666;
}

.membership-value {
  font-weight: 600;
} 