/* ============ BLOG PAGE STYLES ============ */

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 60px;
  background: rgba(10, 10, 26, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(124, 92, 252, 0.1);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 45px;
  height: 45px;
  background: var(--gradient-1);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.logo-text {
  font-size: 24px;
  font-weight: 700;
  color: white;
}

.logo-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: var(--gradient-1);
  border-radius: 12px;
  animation: logoPulse 2s ease-in-out infinite;
}

.brand-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--text-primary);
}

.brand-name span {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 35px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-1);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.btn-login {
  padding: 10px 25px;
  border: 2px solid rgba(124, 92, 252, 0.3);
  border-radius: 50px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-login:hover {
  border-color: var(--primary);
  background: rgba(124, 92, 252, 0.1);
}

.btn-register {
  padding: 12px 28px;
  background: var(--gradient-1);
  border-radius: 50px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(124, 92, 252, 0.4);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 24px;
  cursor: pointer;
}

/* ============ HERO ============ */
.blog-hero {
  position: relative;
  padding: 160px 60px 80px;
  background: var(--dark-bg);
  text-align: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-orb-1 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(124, 92, 252, 0.1), transparent);
  top: -100px;
  right: -100px;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-orb-2 {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.06), transparent);
  bottom: -50px;
  left: -50px;
  border-radius: 50%;
  filter: blur(80px);
}

.hero-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124, 92, 252, 0.15);
  border: 1px solid rgba(124, 92, 252, 0.3);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 25px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 20px;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 30px;
}

/* Search Bar */
.blog-search {
  max-width: 550px;
  margin: 0 auto;
  display: flex;
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.blog-search:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 30px rgba(124, 92, 252, 0.15);
}

.blog-search input {
  flex: 1;
  padding: 16px 22px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  outline: none;
}

.blog-search input::placeholder {
  color: var(--text-muted);
}

.blog-search button {
  padding: 16px 24px;
  background: var(--gradient-1);
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.blog-search button:hover {
  opacity: 0.9;
}

/* ============ BLOG CONTAINER ============ */
.blog-container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 40px 60px 80px;
}

/* Category Tabs */
.category-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.cat-tab {
  padding: 10px 22px;
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.15);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.cat-tab:hover {
  border-color: var(--primary);
  color: var(--text-primary);
  background: rgba(124, 92, 252, 0.05);
}

.cat-tab.active {
  background: var(--gradient-1);
  border-color: transparent;
  color: white;
}

/* Admin Controls */
.admin-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  padding: 15px 20px;
  background: rgba(124, 92, 252, 0.08);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 14px;
}

.admin-btn {
  padding: 10px 22px;
  background: var(--gradient-1);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.admin-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 92, 252, 0.3);
}

.admin-badge {
  font-size: 13px;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

/* ============ BLOG GRID ============ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

/* Blog Card */
.blog-card {
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.12);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.4s ease;
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: 0 20px 40px rgba(124, 92, 252, 0.15);
}

/* Card Thumbnail */
.card-thumbnail {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: rgba(124, 92, 252, 0.08);
}

.card-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .card-thumbnail img {
  transform: scale(1.05);
}

/* Video Play Icon */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-icon {
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--primary);
  transition: all 0.3s ease;
}

.blog-card:hover .play-icon {
  transform: scale(1.1);
  background: var(--primary);
  color: white;
}

/* Photo Grid Icon */
.photo-grid-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 5px 10px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  font-size: 12px;
  color: white;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* Card Category Badge */
.card-category {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 5px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cat-articles {
  background: rgba(124, 92, 252, 0.2);
  color: #7C5CFC;
}

.cat-videos {
  background: rgba(255, 61, 113, 0.2);
  color: #FF3D71;
}

.cat-photos {
  background: rgba(0, 214, 143, 0.2);
  color: #00D68F;
}

.cat-news {
  background: rgba(255, 215, 0, 0.2);
  color: #FFD700;
}

/* Card Body */
.card-body {
  padding: 22px;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  cursor: pointer;
}

.card-title:hover {
  color: var(--primary);
}

.card-excerpt {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 15px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 15px;
}

.tag {
  padding: 3px 10px;
  background: rgba(124, 92, 252, 0.08);
  border-radius: 6px;
  font-size: 11px;
  color: var(--text-muted);
}

/* Card Actions */
.card-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid rgba(124, 92, 252, 0.08);
}

.card-btn {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  border: none;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.read-btn {
  background: rgba(124, 92, 252, 0.1);
  color: var(--primary);
  flex: 1;
  justify-content: center;
}

.read-btn:hover {
  background: rgba(124, 92, 252, 0.2);
}

.edit-btn {
  background: rgba(255, 215, 0, 0.1);
  color: var(--accent);
}

.edit-btn:hover {
  background: rgba(255, 215, 0, 0.2);
}

.delete-btn {
  background: rgba(255, 61, 113, 0.1);
  color: var(--danger);
}

.delete-btn:hover {
  background: rgba(255, 61, 113, 0.2);
}

/* ============ LOAD MORE ============ */
.load-more-wrapper {
  text-align: center;
  margin-top: 50px;
}

.load-more-btn {
  padding: 14px 35px;
  background: transparent;
  border: 2px solid rgba(124, 92, 252, 0.3);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.load-more-btn:hover {
  background: rgba(124, 92, 252, 0.1);
  border-color: var(--primary);
}

/* ============ MODALS ============ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  padding: 20px;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--dark-card);
  border: 1px solid rgba(124, 92, 252, 0.2);
  border-radius: 20px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.show .modal-card {
  transform: scale(1);
}

.post-modal-card {
  width: 100%;
  max-width: 700px;
  padding: 35px;
}

.delete-modal-card {
  width: 100%;
  max-width: 420px;
  padding: 35px;
  text-align: center;
}

.view-modal-card {
  width: 100%;
  max-width: 800px;
  padding: 30px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.modal-header h2 {
  font-size: 22px;
  font-weight: 700;
}

.modal-close {
  width: 35px;
  height: 35px;
  background: rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(255, 61, 113, 0.15);
  color: var(--danger);
}

.delete-icon {
  width: 70px;
  height: 70px;
  background: rgba(255, 61, 113, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: var(--danger);
  margin: 0 auto 20px;
}

/* Post Form */
.post-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Post Type Selector */
.post-type-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.type-option input {
  display: none;
}

.type-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 18px 10px;
  background: rgba(26, 26, 62, 0.5);
  border: 2px solid rgba(124, 92, 252, 0.15);
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
}

.type-card i {
  font-size: 22px;
}

.type-option input:checked+.type-card {
  border-color: var(--primary);
  background: rgba(124, 92, 252, 0.1);
  color: var(--primary);
}

.type-card:hover {
  border-color: rgba(124, 92, 252, 0.4);
}

.form-input,
.form-select,
.form-textarea {
  padding: 13px 16px;
  background: rgba(26, 26, 62, 0.5);
  border: 2px solid rgba(124, 92, 252, 0.15);
  border-radius: 12px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: all 0.3s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(124, 92, 252, 0.1);
}

.form-select {
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.form-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding-top: 10px;
}

.btn-cancel {
  padding: 12px 24px;
  background: transparent;
  border: 2px solid rgba(124, 92, 252, 0.2);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-cancel:hover {
  background: rgba(124, 92, 252, 0.05);
}

.btn-submit {
  padding: 12px 28px;
  background: var(--gradient-1);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(124, 92, 252, 0.3);
}

.btn-delete {
  padding: 12px 28px;
  background: var(--danger);
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease;
  font-family: 'Poppins', sans-serif;
}

.btn-delete:hover {
  background: #e0335f;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 20px;
}

/* View Post Content */
.view-post-content h2 {
  font-size: 26px;
  margin-bottom: 15px;
}

.view-post-meta {
  display: flex;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(124, 92, 252, 0.1);
}

.view-post-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.view-post-body img {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

.view-post-body video {
  max-width: 100%;
  border-radius: 12px;
  margin: 20px 0;
}

/* ============ TOAST ============ */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  min-width: 300px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  animation: toastIn 0.4s ease, toastOut 0.4s ease 3s forwards;
}

.toast.success {
  background: linear-gradient(135deg, #00D68F, #00B884);
}

.toast.error {
  background: linear-gradient(135deg, #FF3D71, #FF6B6B);
}

/* ============ FOOTER ============ */
.footer {
  background: var(--dark-card);
  padding: 60px 0 30px;
  border-top: 1px solid rgba(124, 92, 252, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 30px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-section p {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-section h4 {
  margin-bottom: 12px;
}

.footer-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-section ul li {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-section ul li a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-section ul li a:hover {
  color: var(--primary);
}

.footer-section ul li i {
  margin-right: 6px;
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(124, 92, 252, 0.08);
  font-size: 13px;
  color: var(--text-muted);
}

/* ============ ANIMATIONS ============ */
@keyframes logoPulse {

  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.08);
    opacity: 0;
  }
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(100%);
  }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 992px) {
  .post-type-selector {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .navbar {
    padding: 15px 30px;
  }

  .nav-links {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .blog-hero {
    padding: 140px 30px 60px;
  }

  .hero-title {
    font-size: 32px;
  }

  .blog-container {
    padding: 30px;
  }

  .blog-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    padding: 0 30px;
  }
}

@media (max-width: 480px) {
  .nav-actions {
    display: none;
  }

  .hero-title {
    font-size: 26px;
  }

  .category-tabs {
    gap: 6px;
  }

  .cat-tab {
    padding: 8px 14px;
    font-size: 12px;
  }

  .blog-container {
    padding: 20px;
  }

  .post-modal-card {
    padding: 25px 20px;
  }
}