/**
 * Admin Panel Styles for Tunis Portfolio
 */

/* Admin Toggle Button */
#admin-toggle-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  border: none;
  font-size: 20px;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

#admin-toggle-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

/* Admin Toolbar */
#admin-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 50px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px;
  gap: 15px;
  z-index: 10001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

#admin-toolbar .admin-status {
  margin-right: auto;
  color: #4CAF50;
  font-weight: 600;
  font-size: 14px;
}

#admin-toolbar button {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

#admin-change-password {
  background: #2196F3;
  color: white;
}

#admin-change-password:hover {
  background: #1976D2;
}

#admin-logout {
  background: #f44336;
  color: white;
}

#admin-logout:hover {
  background: #d32f2f;
}

/* Admin Mode Body Adjustment */
body.admin-mode {
  padding-top: 50px;
}

/* Login Modal */
#admin-login-modal,
#admin-password-modal,
#admin-settings-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10002;
  backdrop-filter: blur(5px);
}

#admin-login-modal.active,
#admin-password-modal.active,
#admin-settings-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-modal-content {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 40px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-modal-content h2 {
  margin: 0 0 25px;
  color: #fff;
  font-size: 24px;
  text-align: center;
}

.admin-modal-close {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.admin-modal-close:hover {
  color: #fff;
}

.admin-modal-content form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.admin-modal-content input {
  padding: 14px 18px;
  border: 2px solid #333;
  border-radius: 8px;
  background: #0d0d1a;
  color: #fff;
  font-size: 16px;
  transition: border-color 0.2s;
}

.admin-modal-content input:focus {
  outline: none;
  border-color: #4CAF50;
}

.admin-modal-content button[type="submit"] {
  padding: 14px;
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.admin-modal-content button[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

/* Editable Elements */
.admin-mode .admin-editable {
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 4px;
}

.admin-mode .admin-editable:hover {
  background: rgba(76, 175, 80, 0.15);
  box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.3);
}

.admin-mode .admin-editable::after {
  content: '✏️';
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 14px;
  background: #4CAF50;
  padding: 4px 6px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.admin-mode .admin-editable:hover::after {
  opacity: 1;
}

.admin-mode .admin-editable.editing::after {
  display: none;
}

/* Edit Input */
.admin-edit-input {
  width: 100%;
  padding: 8px 12px;
  border: 2px solid #4CAF50;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: inherit;
  font-family: inherit;
}

.admin-edit-input-small {
  width: 80px;
  text-align: center;
}

.admin-edit-textarea {
  width: 100%;
  min-height: 120px;
  padding: 12px;
  border: 2px solid #4CAF50;
  border-radius: 6px;
  background: #fff;
  color: #333;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}

/* Save/Cancel Buttons */
.admin-save-btn,
.admin-cancel-btn {
  padding: 8px 16px;
  margin: 8px 8px 0 0;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-save-btn {
  background: #4CAF50;
  color: white;
}

.admin-save-btn:hover {
  background: #388E3C;
}

.admin-cancel-btn {
  background: #f44336;
  color: white;
}

.admin-cancel-btn:hover {
  background: #d32f2f;
}

/* Add Button */
.admin-add-btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #2196F3, #1565C0);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.admin-add-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(33, 150, 243, 0.4);
}

/* Delete Inline */
.admin-delete-inline {
  color: #f44336;
  cursor: pointer;
  font-weight: bold;
  margin-left: 5px;
  transition: color 0.2s;
}

.admin-delete-inline:hover {
  color: #d32f2f;
}

/* Delete Box (for stats) */
.admin-delete-box {
  position: absolute;
  top: 5px;
  right: 5px;
  color: #f44336;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transition: all 0.2s;
  z-index: 5;
}

.admin-delete-box:hover {
  background: #f44336;
  color: white;
}

.admin-mode .box-stats {
  position: relative;
}

/* Portfolio Overlay */
.admin-portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(76, 175, 80, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  cursor: pointer;
  z-index: 10;
}

.admin-mode .admin-editable:hover .admin-portfolio-overlay {
  opacity: 1;
}

.admin-portfolio-overlay span {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

/* Admin Only Elements (hidden in normal mode) */
.admin-only {
  display: none;
}

.admin-mode .admin-only {
  display: inline-block;
}

/* Fix for stats boxes */
.admin-mode #about .box-stats h3.admin-editable:hover {
  background: rgba(76, 175, 80, 0.2);
}

/* Fix for skill containers */
.admin-mode .col-6.col-md-3.admin-editable {
  padding: 10px;
  border-radius: 8px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #admin-toolbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
    gap: 10px;
  }

  #admin-toolbar .admin-status {
    width: 100%;
    text-align: center;
    margin-right: 0;
  }

  #admin-toolbar button {
    flex: 1;
    min-width: 100px;
  }

  body.admin-mode {
    padding-top: 80px;
  }

  .admin-modal-content {
    padding: 25px;
    margin: 20px;
  }

  #admin-toggle-btn {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
}

/* Dark mode compatibility for light theme */
.light .admin-modal-content {
  background: linear-gradient(135deg, #fff, #f5f5f5);
}

.light .admin-modal-content h2 {
  color: #333;
}

.light .admin-modal-content input {
  background: #fff;
  border-color: #ddd;
  color: #333;
}

.light #admin-toolbar {
  background: linear-gradient(135deg, #fff, #f0f0f0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.light #admin-toolbar .admin-status {
  color: #2E7D32;
}

/* Animation for save feedback */
@keyframes savedPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(76, 175, 80, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

.admin-saved {
  animation: savedPulse 0.6s ease-out;
}

/* Dark Mode Toggle */
.admin-dark-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.admin-dark-toggle input {
  display: none;
}

.admin-dark-toggle .toggle-slider {
  width: 40px;
  height: 22px;
  background: #444;
  border-radius: 11px;
  position: relative;
  transition: background 0.3s;
}

.admin-dark-toggle .toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

.admin-dark-toggle input:checked+.toggle-slider {
  background: #4CAF50;
}

.admin-dark-toggle input:checked+.toggle-slider::after {
  transform: translateX(18px);
}

.admin-dark-toggle .toggle-label {
  color: #fff;
  font-size: 13px;
  font-weight: 500;
}

/* Portfolio Editor Modal */
#portfolio-editor-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10003;
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 40px 20px;
}

#portfolio-editor-modal.active {
  display: block;
}

.portfolio-editor-content {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  max-height: none !important;
}

.portfolio-editor-content .form-group {
  margin-bottom: 18px;
}

.portfolio-editor-content label {
  display: block;
  color: #aaa;
  font-size: 13px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.portfolio-editor-content input,
.portfolio-editor-content select,
.portfolio-editor-content textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #333;
  border-radius: 8px;
  background: #0d0d1a;
  color: #fff;
  font-size: 15px;
  transition: border-color 0.2s;
}

.portfolio-editor-content input:focus,
.portfolio-editor-content select:focus,
.portfolio-editor-content textarea:focus {
  outline: none;
  border-color: #4CAF50;
}

.portfolio-editor-content textarea {
  resize: vertical;
  min-height: 80px;
}

.image-upload-area {
  border: 2px dashed #4CAF50;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(76, 175, 80, 0.05);
}

.image-upload-area:hover {
  background: rgba(76, 175, 80, 0.15);
  border-color: #66BB6A;
}

.image-upload-area span {
  color: #4CAF50;
  font-size: 16px;
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.form-actions button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save {
  background: linear-gradient(135deg, #4CAF50, #2E7D32);
  color: white;
  flex: 1;
}

.btn-save:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.btn-cancel {
  background: #666;
  color: white;
}

.btn-cancel:hover {
  background: #555;
}

.btn-delete {
  background: #f44336;
  color: white;
}

.btn-delete:hover {
  background: #d32f2f;
}

/* Portfolio Add Button */
.admin-add-portfolio {
  cursor: pointer;
  min-height: 250px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border: 3px dashed rgba(76, 175, 80, 0.5) !important;
  background: rgba(76, 175, 80, 0.05) !important;
  transition: all 0.3s;
}

.admin-add-portfolio:hover {
  border-color: #4CAF50 !important;
  background: rgba(76, 175, 80, 0.15) !important;
}

.add-portfolio-placeholder {
  text-align: center;
  color: #4CAF50;
}

.add-portfolio-placeholder .add-icon {
  display: block;
  font-size: 60px;
  line-height: 1;
  margin-bottom: 10px;
}

.add-portfolio-placeholder h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

/* Video Indicator */
.video-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 50px;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 5;
}

/* Portfolio Lightbox */
.portfolio-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 11000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-lightbox.active {
  opacity: 1;
}

.lightbox-content {
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  position: relative;
  animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

.lightbox-content img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: white;
  font-size: 36px;
  cursor: pointer;
  transition: transform 0.2s;
  padding: 0;
  line-height: 1;
}

.lightbox-close:hover {
  transform: scale(1.2);
}

.lightbox-info {
  background: rgba(0, 0, 0, 0.7);
  padding: 20px;
  border-radius: 0 0 12px 12px;
  margin-top: -5px;
}

.lightbox-info h3 {
  color: white;
  margin: 0 0 10px;
  font-size: 22px;
}

.lightbox-info p {
  color: #ccc;
  margin: 8px 0;
  font-size: 14px;
}

.lightbox-video-container {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  border-radius: 12px;
  overflow: hidden;
}

.lightbox-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Portfolio Grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.portfolio-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #1a1a2e;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
  aspect-ratio: 4/3;
}

.portfolio-grid figure:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.portfolio-grid figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.portfolio-grid figure:hover img {
  transform: scale(1.1);
}

.portfolio-grid figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
  color: white;
}

.portfolio-grid figcaption h4 {
  margin: 0 0 5px;
  font-size: 18px;
  font-weight: 600;
}

.portfolio-grid figcaption p {
  margin: 0;
  font-size: 13px;
  opacity: 0.7;
}

.portfolio-grid .portfolio-link {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Portfolio Empty State */
.portfolio-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
}

.portfolio-empty-state .empty-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.portfolio-empty-state h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.portfolio-empty-state p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Light mode portfolio */
.light .portfolio-grid figure {
  background: #f5f5f5;
}

.light .portfolio-empty-state {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

.light .portfolio-empty-state h3 {
  color: #333;
}

.light .portfolio-empty-state p {
  color: rgba(0, 0, 0, 0.5);
}

/* Admin Add Portfolio Button */
.admin-add-portfolio {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px dashed rgba(255, 126, 95, 0.4);
  background: rgba(255, 126, 95, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-add-portfolio:hover {
  border-color: #ff7e5f;
  background: rgba(255, 126, 95, 0.15);
  transform: translateY(-5px);
}

.add-portfolio-placeholder {
  text-align: center;
  color: #ff7e5f;
}

.add-portfolio-placeholder .add-icon {
  display: block;
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.admin-add-portfolio:hover .add-icon {
  transform: scale(1.2);
}

.add-portfolio-placeholder h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

/* Admin Portfolio Overlay */
.admin-portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 126, 95, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  cursor: pointer;
}

.portfolio-grid figure:hover .admin-portfolio-overlay {
  opacity: 1;
}

.admin-portfolio-overlay span {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

/* Video Indicator */
.video-indicator {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(255, 0, 0, 0.9);
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  z-index: 5;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.blog-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: #1a1a2e;
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.blog-card-image {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

.blog-card:hover .blog-card-image img {
  transform: scale(1.1);
}

.blog-card-content {
  padding: 20px;
}

.blog-card-content h3 {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0 0 10px;
  line-height: 1.4;
}

.blog-card-content p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

/* Blog Empty State */
.blog-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 40px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 16px;
  border: 2px dashed rgba(255, 255, 255, 0.1);
}

.blog-empty-state .empty-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.blog-empty-state h3 {
  color: #fff;
  font-size: 24px;
  margin-bottom: 10px;
}

.blog-empty-state p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 14px;
}

/* Admin Add Blog Card */
.admin-add-blog {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  border: 3px dashed rgba(79, 172, 254, 0.4);
  background: rgba(79, 172, 254, 0.05);
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-add-blog:hover {
  border-color: #4facfe;
  background: rgba(79, 172, 254, 0.15);
  transform: translateY(-5px);
}

.add-blog-placeholder {
  text-align: center;
  color: #4facfe;
}

.add-blog-placeholder .add-icon {
  display: block;
  font-size: 48px;
  font-weight: 300;
  margin-bottom: 10px;
  transition: transform 0.3s;
}

.admin-add-blog:hover .add-icon {
  transform: scale(1.2);
}

.add-blog-placeholder h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
}

/* Admin Blog Overlay */
.admin-blog-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(79, 172, 254, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
  cursor: pointer;
}

.blog-card:hover .admin-blog-overlay {
  opacity: 1;
}

.admin-blog-overlay span {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

/* Blog Editor Modal */
#blog-editor-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 10003;
  backdrop-filter: blur(8px);
  overflow-y: auto;
  padding: 40px 20px;
}

#blog-editor-modal.active {
  display: block;
}

.blog-editor-content {
  max-width: 600px;
  width: 100%;
  margin: 0 auto;
  max-height: none !important;
}

/* Blog Lightbox */
.blog-lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  z-index: 10002;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}

.blog-lightbox.active {
  opacity: 1;
}

.blog-lightbox-content {
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
}

.blog-lightbox-content img {
  width: 100%;
  border-radius: 12px 12px 0 0;
}

.blog-lightbox-content .lightbox-info {
  padding: 25px;
  background: #1a1a2e;
  border-radius: 0 0 12px 12px;
}

.blog-full-content {
  margin-top: 15px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
}

/* Light mode blog */
.light .blog-card {
  background: #f5f5f5;
}

.light .blog-card-content h3 {
  color: #333;
}

.light .blog-card-content p {
  color: rgba(0, 0, 0, 0.6);
}

.light .blog-empty-state {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
}

.light .blog-empty-state h3 {
  color: #333;
}

.light .blog-empty-state p {
  color: rgba(0, 0, 0, 0.5);
}

/* Settings Modal Styles */
.color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.color-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #333;
  cursor: pointer;
  transition: transform 0.2s, border-color 0.2s;
}

.color-btn:hover {
  transform: scale(1.1);
  border-color: #fff;
}

.color-btn.active {
  border-color: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transform: scale(1.1);
}

.settings-section {
  margin-bottom: 30px;
  border-bottom: 1px solid #333;
  padding-bottom: 20px;
}

.settings-section:last-child {
  border-bottom: none;
}

.profile-upload-container {
  display: flex;
  align-items: center;
  gap: 20px;
}

.current-photo img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #333;
}

.upload-controls {
  flex: 1;
}

.upload-btn {
  display: inline-block;
  padding: 10px 20px;
  background: #4169e1;
  color: #fff;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
  margin-bottom: 10px;
}

.upload-btn:hover {
  background: #3a5fcf;
}

.upload-info {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* Settings Modal Specific */
.settings-modal-content {
  max-width: 500px;
}