﻿/* Mystic Theme Overrides - applies across all pages */

/* Badges */
.badge {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(76, 201, 240, 0.8));
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
  box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
  border: 1px solid rgba(138, 43, 226, 0.3);
}
.badge.bg-secondary {
  background: linear-gradient(135deg, rgba(76, 201, 240, 0.8), rgba(138, 43, 226, 0.6)) !important;
  color: #fff !important;
  text-shadow: 0 0 8px rgba(76, 201, 240, 0.5);
  box-shadow: 0 0 15px rgba(76, 201, 240, 0.3);
}
.badge.bg-success {
  background: linear-gradient(135deg, #2ecc71, #27ae60) !important;
  text-shadow: 0 0 8px rgba(46, 204, 113, 0.5);
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.3);
}
.badge.bg-warning {
  background: linear-gradient(135deg, #f39c12, #e67e22) !important;
  text-shadow: 0 0 8px rgba(243, 156, 18, 0.5);
  box-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
}

/* Cards + Featured */
.card {
  background: rgba(13, 5, 30, 0.6);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(138, 43, 226, 0.3);
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 8px 32px rgba(138, 43, 226, 0.15);
  overflow: hidden;
  position: relative;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(138, 43, 226, 0.1), transparent);
  transition: left 0.5s;
}
.card:hover::before { left: 100%; }
.card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 15px 50px rgba(138, 43, 226, 0.4), 0 0 30px rgba(76, 201, 240, 0.3);
  border-color: rgba(138, 43, 226, 0.6);
}
.featured-project {
  background: linear-gradient(135deg, rgba(13, 5, 30, 0.8), rgba(20, 8, 45, 0.9));
  border: 2px solid rgba(138, 43, 226, 0.5);
  box-shadow: 0 10px 50px rgba(138, 43, 226, 0.3), inset 0 0 50px rgba(138, 43, 226, 0.1);
}
.featured-project:hover {
  box-shadow: 0 15px 60px rgba(138, 43, 226, 0.5), 0 0 40px rgba(76, 201, 240, 0.4), inset 0 0 50px rgba(138, 43, 226, 0.15);
  border-color: rgba(138, 43, 226, 0.8);
}
.card-title { color: #fff; text-shadow: 0 0 20px rgba(138, 43, 226, 0.5); font-weight: 600; }
.card-text { color: rgba(255, 255, 255, 0.8); line-height: 1.6; }

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(76, 201, 240, 0.8));
  border: 1px solid rgba(138, 43, 226, 0.5);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-weight: 500;
  text-shadow: 0 0 10px rgba(138, 43, 226, 0.5);
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}
.btn-primary:hover::before { left: 100%; }
.btn-primary:hover {
  background: linear-gradient(135deg, rgba(138, 43, 226, 1), rgba(76, 201, 240, 1));
  box-shadow: 0 6px 25px rgba(138, 43, 226, 0.5), 0 0 30px rgba(76, 201, 240, 0.4);
  transform: translateY(-2px);
  border-color: rgba(76, 201, 240, 0.6);
}
.btn-secondary {
  background: rgba(50, 50, 70, 0.6);
  border: 1px solid rgba(138, 43, 226, 0.3);
  color: #fff; border-radius: 25px; transition: all 0.3s ease;
}
.btn-secondary:hover {
  background: rgba(70, 70, 90, 0.8);
  border-color: rgba(138, 43, 226, 0.5);
  box-shadow: 0 4px 15px rgba(138, 43, 226, 0.2);
}

/* Images */
.card-img-top {
  transition: all 0.4s ease;
  border-bottom: 2px solid rgba(138, 43, 226, 0.3);
}
.card:hover .card-img-top { transform: scale(1.08); border-bottom-color: rgba(138, 43, 226, 0.6); filter: brightness(1.1) drop-shadow(0 0 20px rgba(138, 43, 226, 0.4)); }

/* Modals */
.modal-content {
  background: linear-gradient(135deg, rgba(13, 5, 30, 0.95), rgba(20, 8, 45, 0.95));
  backdrop-filter: blur(20px);
  border: 2px solid rgba(138, 43, 226, 0.4);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8), 0 0 50px rgba(138, 43, 226, 0.3);
}
.modal-header { border-bottom: 1px solid rgba(138, 43, 226, 0.4); background: linear-gradient(90deg, rgba(138,43,226,0.3), rgba(76,201,240,0.2)); border-radius: 18px 18px 0 0; padding: 1.5rem; }
.modal-title { color: #fff; text-shadow: 0 0 20px rgba(138, 43, 226, 0.6); font-weight: 600; }
.modal-body { padding: 2rem; color: rgba(255,255,255,0.9); }
.modal-footer { border-top: 1px solid rgba(138, 43, 226, 0.4); padding: 1.5rem; }
.btn-close { filter: invert(1) brightness(2); opacity: 0.8; transition: all 0.3s ease; }
.btn-close:hover { opacity: 1; filter: invert(1) brightness(2) drop-shadow(0 0 10px rgba(138, 43, 226, 0.8)); }

/* Tables */
.platform-table {
  background: rgba(13, 5, 30, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(138, 43, 226, 0.2);
  border: 2px solid rgba(138, 43, 226, 0.3);
  margin-top: 2rem;
}
.platform-table thead { background: linear-gradient(135deg, rgba(138,43,226,0.8), rgba(76,201,240,0.7)); box-shadow: 0 4px 15px rgba(138,43,226,0.3); }
.platform-table thead th {
  font-weight: 600; border-bottom: none; color: #fff; padding: 1.2rem; font-size: 1.1rem; text-shadow: 0 0 15px rgba(138, 43, 226, 0.5); text-transform: uppercase; letter-spacing: 1px;
}
.platform-table tbody tr { transition: all 0.3s ease; border-bottom: 1px solid rgba(138, 43, 226, 0.2); position: relative; }
.platform-table tbody tr::before { content: ''; position: absolute; left: 0; top: 0; width: 0; height: 100%; background: linear-gradient(90deg, rgba(138,43,226,0.2), rgba(76,201,240,0.1)); transition: width 0.3s ease; z-index: 0; }
.platform-table tbody tr:hover::before { width: 100%; }
.platform-table tbody tr:last-child { border-bottom: none; }
.platform-table tbody tr:hover { background-color: rgba(138, 43, 226, 0.15); box-shadow: inset 0 0 20px rgba(138, 43, 226, 0.2); }
.platform-table td { padding: 1.2rem; color: rgba(255,255,255,0.9); vertical-align: middle; position: relative; z-index: 1; }
.platform-table td strong { color: #fff; text-shadow: 0 0 10px rgba(138, 43, 226, 0.3); }
.platform-table td .badge { background: linear-gradient(135deg, rgba(138, 43, 226, 0.9), rgba(76, 201, 240, 0.8)); color: white; font-weight: 500; padding: 0.4rem 0.9rem; }

/* Generic Table styling (admin + lists) */
.table { color: var(--light-text); background: var(--card-bg); border-radius: 0.75rem; overflow: hidden; }
.table thead { background: linear-gradient(90deg, rgba(138,43,226,0.8), rgba(76,201,240,0.6)); }
.table thead th { border-color: var(--border-color); color: var(--light-text); }
.table tbody tr { border-color: var(--border-color); transition: background-color 0.2s ease; }
.table tbody tr:hover { background-color: rgba(138,43,226,0.08); }

/* Headings accent */
.h4, h4.h4, h2.h4 { color: #fff; text-shadow: 0 0 20px rgba(138, 43, 226, 0.6); font-weight: 600; margin-bottom: 1.5rem; position: relative; padding-bottom: 0.5rem; }
.h4::after, h4.h4::after, h2.h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 80px; height: 3px; background: linear-gradient(90deg, rgba(138,43,226,0.8), rgba(76,201,240,0.6)); box-shadow: 0 0 10px rgba(138, 43, 226, 0.5); border-radius: 2px; }

/* Alerts */
.alert-info { background: rgba(76, 201, 240, 0.1); border: 1px solid rgba(76, 201, 240, 0.3); color: rgba(255,255,255,0.9); border-radius: 15px; padding: 1.5rem; backdrop-filter: blur(10px); }
.alert-info i { color: #4cc9f0; text-shadow: 0 0 10px rgba(76, 201, 240, 0.5); }

/* Global animations */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px);} to { opacity: 1; transform: translateY(0);} }
.card { animation: fadeInUp 0.6s ease-out; }

/* Grid background helpers referenced in layout */
.grid, .grid-dots, .grid-overlay, .mouse-follower { pointer-events: none; position: fixed; inset: 0; z-index: -1; }
.grid { background-image: linear-gradient(rgba(138,43,226,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(138,43,226,0.06) 1px, transparent 1px); background-size: 60px 60px; opacity: .25; }
.grid-dots { background-image: radial-gradient(rgba(76,201,240,0.08) 1px, transparent 1px); background-size: 30px 30px; opacity: .25; }
.grid-overlay { background: radial-gradient(circle at 50% 20%, rgba(138,43,226,0.15), transparent 40%), radial-gradient(circle at 80% 60%, rgba(76,201,240,0.12), transparent 45%); }
.mouse-follower { width: 100%; height: 100%; }

/* Accordion (FAQ, JoinUs) */
.accordion-item { background: var(--card-bg); border: 1px solid var(--border-color); margin-bottom: 1rem; border-radius: 0.5rem; overflow: hidden; }
.accordion-button { background: var(--darker-bg); color: var(--light-text); box-shadow: none; padding: 1.25rem 1.5rem; }
.accordion-button:not(.collapsed) { color: var(--light-text); background: linear-gradient(90deg, rgba(138,43,226,0.2), rgba(76,201,240,0.1)); box-shadow: none; }
.accordion-button:focus { box-shadow: none; border-color: var(--border-color); }
.accordion-button::after { filter: invert(1) brightness(2); }
.accordion-body { background: var(--card-bg); color: var(--text-muted); padding: 1.5rem; }

/* Blog Content */
.blog-header-image { max-height: 500px; width: 100%; object-fit: cover; border-radius: 1rem; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.blog-content-body { font-size: 1.1rem; line-height: 1.7; color: var(--light-text); }
.blog-content-body img { max-width: 100%; height: auto; border-radius: 0.5rem; margin: 1.5rem 0; }
.blog-content-body h2 { margin-top: 2rem; margin-bottom: 1rem; color: var(--light-text); background: linear-gradient(90deg, rgba(138,43,226,0.2), transparent); padding: 0.5rem 1rem; border-radius: 0.25rem; }
.blog-content-body h3 { margin-top: 1.5rem; margin-bottom: 1rem; color: var(--light-text); }
.blog-content-body h4 { margin-top: 1.25rem; margin-bottom: 1rem; color: var(--light-text); }
.blog-content-body p { margin-bottom: 1.5rem; }
.blog-content-body ul, .blog-content-body ol { margin-bottom: 1.5rem; padding-left: 2rem; }
.blog-content-body li { margin-bottom: 0.5rem; }
.blog-content-body pre { background-color: var(--darker-bg); padding: 1rem; border-radius: 0.5rem; overflow-x: auto; margin: 1.5rem 0; border: 1px solid var(--border-color); color: var(--light-text); }
.blog-content-body code { background-color: var(--darker-bg); padding: 0.2rem 0.4rem; border-radius: 0.25rem; font-family: 'Consolas','Monaco','Courier New',monospace; color: var(--secondary-color); }
.blog-content-body blockquote { border-left: 4px solid var(--primary-color); padding: 1rem 1.5rem; color: var(--text-muted); font-style: italic; margin: 1.5rem 0; background: rgba(138,43,226,0.05); border-radius: 0 0.5rem 0.5rem 0; }

/* Breadcrumbs */
.breadcrumb { background: transparent; }
.breadcrumb-item a { color: var(--primary-color); text-decoration: none; }
.breadcrumb-item.active { color: var(--text-muted); }

/* Blog index cards */
.hover-card { transition: all 0.25s ease-in-out; }
.hover-card:hover { transform: translateY(-6px); box-shadow: 0 12px 24px rgba(0,0,0,0.25) !important; }
.hover-card .card-img-top { transition: all 0.3s ease; border-bottom: 1px solid rgba(138,43,226,0.2); }
.hover-card:hover .card-img-top { transform: scale(1.02); border-bottom-color: rgba(138,43,226,0.4); }

/* Journey timeline */
@media (min-width: 768px) {
  .journey-timeline .row > div { position: relative; }
  .journey-timeline .card { position: relative; z-index: 1; }
  .journey-timeline .row > div:nth-child(odd):not(:empty)::after,
  .journey-timeline .row > div:nth-child(even):not(:empty)::after {
    content: ''; position: absolute; width: 20px; height: 20px; background-color: var(--primary-color); border-radius: 50%; top: 30px; z-index: 2;
  }
  .journey-timeline .row > div:nth-child(odd):not(:empty)::after { right: -10px; }
  .journey-timeline .row > div:nth-child(even):not(:empty)::after { left: -10px; }
}

@media (max-width: 768px) {
  .card:hover { transform: translateY(-5px) scale(1.01); }
  .platform-table thead th { font-size: 0.9rem; padding: 1rem; }
  .platform-table td { padding: 0.8rem; }
}

/* Utilities */
.bg-darker { background-color: var(--darker-bg) !important; }
