/* Base Styles */
:root {
  --primary: #6c5ce7;
  --primary-dark: #5649c0;
  --secondary: #00cec9;
  --dark: #1e1e2d;
  --darker: #161620;
  --light: #f8f9fa;
  --gray: #6c757d;
  --dark-gray: #2d3436;
}

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

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

/* Header & Navigation */
header {
  background: linear-gradient(135deg, var(--dark), var(--darker));
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
}

header h1 {
  font-size: 2.2rem;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

header p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.navbar {
  display: flex;
  list-style: none;
  gap: 1.5rem;
  align-items: center;
}

.navbar li a {
  color: var(--light);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar li a:hover {
  color: var(--secondary);
}

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

.navbar li a:hover::after {
  width: 100%;
}

.search-icon {
  width: 22px;
  height: 22px;
  filter: invert(1);
  transition: transform 0.3s ease;
}

.search-icon:hover {
  transform: scale(1.1);
}

/* Main Content */
main {
  max-width: 1400px;
  margin: 2rem auto;
  padding: 0 2rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--light);
  position: relative;
  display: inline-block;
}

h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--primary), var(--secondary));
  border-radius: 3px;
}

/* Script Cards */
.script-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.script-card {
  background: linear-gradient(145deg, var(--dark), #252538);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  position: relative;
  border: 1px solid rgba(108, 92, 231, 0.2);
}

.script-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(108, 92, 231, 0.4);
}

.script-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.script-card:hover img {
  transform: scale(1.05);
}

.script-info {
  padding: 1.5rem;
}

.script-info h2 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--light);
}

.script-info p {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background: var(--dark);
  text-align: center;
  padding: 1.5rem;
  margin-top: 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

footer p {
  color: var(--gray);
  font-size: 0.9rem;
}

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

.script-card {
  animation: fadeIn 0.6s ease forwards;
  opacity: 0;
}

.script-card:nth-child(1) { animation-delay: 0.1s; }
.script-card:nth-child(2) { animation-delay: 0.2s; }
.script-card:nth-child(3) { animation-delay: 0.3s; }
.script-card:nth-child(4) { animation-delay: 0.4s; }
.script-card:nth-child(5) { animation-delay: 0.5s; }
.script-card:nth-child(6) { animation-delay: 0.6s; }

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    text-align: center;
  }
  
  .navbar {
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .script-list {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

/* Button Styles */
button {
  background: linear-gradient(to right, var(--primary), var(--primary-dark));
  color: white;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(108, 92, 231, 0.3);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(108, 92, 231, 0.4);
}

/* Ad Box */
.ad-box {
  background: rgba(30, 30, 45, 0.8);
  border: 1px dashed var(--primary);
  padding: 1.5rem;
  text-align: center;
  color: var(--gray);
  border-radius: 8px;
  margin-bottom: 2rem;
}
/* Script Gallery Page Specific Styles */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.sort-options {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.sort-options select {
  background: var(--dark);
  color: var(--light);
  border: 1px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
}

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

.script-card {
  background: linear-gradient(145deg, var(--dark), #252538);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(108, 92, 231, 0.2);
  text-decoration: none;
  color: inherit;
}

.script-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
  border-color: rgba(108, 92, 231, 0.4);
}

.card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--primary);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.card-content {
  padding: 1.2rem;
}

.card-date {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  color: var(--light);
  line-height: 1.4;
}

.card-desc {
  font-size: 0.85rem;
  color: var(--gray);
  margin-bottom: 1rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--gray);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

.card-footer span {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 5px;
  background: var(--dark);
  color: var(--light);
  text-decoration: none;
  transition: all 0.3s ease;
}

.pagination a:hover, .pagination a.active {
  background: var(--primary);
  color: white;
}

.navbar li a.active {
  color: var(--secondary);
}

.navbar li a.active::after {
  width: 100%;
}
/* Executor Page Specific Styles */
.filter-options {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.filter-btn {
  background: var(--dark);
  color: var(--light);
  border: 1px solid var(--primary);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: rgba(108, 92, 231, 0.2);
}

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.card-author {
  color: var(--secondary);
  font-size: 0.8rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .filter-options {
    margin-top: 1rem;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }
  
  .script-gallery {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 480px) {
  .script-gallery {
    grid-template-columns: 1fr;
  }
}
/* Search Overlay Styles */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  display: none;
  justify-content: center;
  align-items: flex-start;
  padding-top: 100px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.search-overlay.active {
  display: flex;
  opacity: 1;
}

.search-container {
  width: 80%;
  max-width: 600px;
  position: relative;
}

.search-input {
  width: 100%;
  padding: 20px 60px 20px 20px;
  font-size: 1.2rem;
  border: none;
  border-radius: 50px;
  background: #2a2a2a;
  color: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.search-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #aaa;
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
}

.search-close:hover {
  color: white;
}

.search-results {
  margin-top: 20px;
  background: #2a2a2a;
  border-radius: 10px;
  padding: 20px;
  max-height: 60vh;
  overflow-y: auto;
}

.search-result-item {
  padding: 10px;
  border-bottom: 1px solid #333;
  cursor: pointer;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: #3a3a3a;
}

.search-result-item h4 {
  margin-bottom: 5px;
  color: white;
}

.search-result-item p {
  color: #aaa;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .search-overlay {
    padding-top: 60px;
  }
  
  .search-container {
    width: 90%;
  }
  
  .search-input {
    padding: 15px 50px 15px 15px;
    font-size: 1rem;
  }
}
.search-tags {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.search-tags span {
  background: rgba(108, 92, 231, 0.2);
  color: var(--secondary);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
}

.search-result-item {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.search-result-item:hover {
  transform: translateX(5px);
}
/* Script Detail Page Styles */
.script-detail-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.script-header {
  background: linear-gradient(135deg, #2a2a3a, #1e1e2d);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  border: 1px solid rgba(108, 92, 231, 0.3);
}

.script-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  color: white;
}

.script-subtitle {
  color: #00cec9;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.script-description {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.script-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.script-tag {
  background: rgba(108, 92, 231, 0.2);
  color: #6c5ce7;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.script-content {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 2rem;
}

.script-steps {
  background: #1e1e2d;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #333;
}

.script-steps h3 {
  margin-bottom: 1rem;
  color: white;
}

.step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: flex-start;
}

.step-number {
  background: #6c5ce7;
  color: white;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  flex-shrink: 0;
}

.step-content {
  color: #ccc;
  font-size: 0.95rem;
}

.script-code {
  background: #1e1e2d;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #333;
  position: relative;
}

.script-code pre {
  background: #121212;
  padding: 1rem;
  border-radius: 5px;
  overflow-x: auto;
  color: #f8f8f2;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.copy-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: #6c5ce7;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s ease;
}

.copy-btn:hover {
  background: #5649c0;
}

.script-showcase {
  margin-top: 2rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.showcase-card {
  background: #1e1e2d;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #333;
}

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

.showcase-info {
  padding: 1rem;
}

.showcase-info h4 {
  margin-bottom: 0.5rem;
  color: white;
}

.showcase-info p {
  color: #aaa;
  font-size: 0.85rem;
}

.related-scripts {
  margin-top: 3rem;
}

.related-scripts h2 {
  margin-bottom: 1.5rem;
}

.script-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.ad-sidebar {
  background: #2a2a2a;
  padding: 1.5rem;
  border-radius: 10px;
  text-align: center;
  color: #ccc;
  border: 1px dashed #444;
}

.notes {
  background: rgba(0, 206, 201, 0.1);
  padding: 1.5rem;
  border-radius: 10px;
  border-left: 4px solid #00cec9;
}

.notes h3 {
  color: #00cec9;
  margin-bottom: 1rem;
}

.notes ul {
  padding-left: 1.5rem;
}

.notes li {
  margin-bottom: 0.5rem;
  color: #ccc;
}

@media (max-width: 992px) {
  .script-content {
    grid-template-columns: 1fr;
  }
  
  .script-sidebar {
    order: -1;
  }
}

/* Executor Specific Styles */
.executor-features {
  margin-top: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.feature-card {
  background: #1e1e2d;
  padding: 1rem;
  border-radius: 8px;
  border: 1px solid #333;
}

.feature-card h4 {
  color: white;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.feature-card h4 i {
  color: #6c5ce7;
}

.feature-card p {
  color: #aaa;
  font-size: 0.85rem;
}

.download-section {
  margin-top: 2rem;
  text-align: center;
}

.download-btn {
  background: linear-gradient(to right, #6c5ce7, #00cec9);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-top: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(108, 92, 231, 0.3);
}

.download-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(108, 92, 231, 0.4);
}
/* Search Loading States */
.search-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px;
  text-align: center;
}

.search-loading .loading-spinner {
  border: 3px solid rgba(108, 92, 231, 0.2);
  border-radius: 50%;
  border-top: 3px solid var(--primary);
  width: 30px;
  height: 30px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

.search-error {
  padding: 30px;
  text-align: center;
  color: #ff6b6b;
}

.search-error i {
  font-size: 2rem;
  margin-bottom: 15px;
}

.search-no-results {
  padding: 30px;
  text-align: center;
}

.search-no-results i {
  font-size: 2rem;
  color: var(--gray);
  margin-bottom: 15px;
}

.search-no-results h4 {
  margin-bottom: 10px;
}

/* Search Result Items */
.search-result-item {
  display: flex;
  align-items: center;
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s;
}

.search-result-item:hover {
  background: rgba(108, 92, 231, 0.1);
}

.search-result-image {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
}

.search-result-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.search-result-content {
  flex: 1;
}

.search-result-content h5 {
  font-size: 0.95rem;
  margin-bottom: 5px;
  color: white;
}

.search-result-content p {
  font-size: 0.8rem;
  color: var(--gray);
  margin-bottom: 5px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 5px;
}

.search-tags span {
  background: rgba(108, 92, 231, 0.2);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
}

.search-result-category {
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.search-result-category h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary);
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
//* Legal Page Styles */
.legal-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 2rem;
}

.legal-content {
  background: #1e1e2d;
  padding: 2rem;
  border-radius: 10px;
  border: 1px solid #333;
  margin-top: 1.5rem;
}

.legal-content h3 {
  margin: 1.5rem 0 0.8rem;
  color: var(--secondary);
}

.legal-content p, .legal-content li {
  color: #ccc;
  line-height: 1.6;
  margin-bottom: 0.8rem;
}

.legal-content ul {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.last-updated {
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 1.5rem !important;
}

/* Contact Page Styles */
.contact-method {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #333;
}

.contact-method h3 {
  color: var(--secondary);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-method p {
  margin-left: 1.8rem;
}

.response-time {
  font-style: italic;
  color: var(--gray);
}

.closing {
  margin-top: 2rem;
  font-weight: 500;
  color: var(--secondary);
}