/* ===== RESET & BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(135deg, #0f1724 0%, #1e293b 100%);
  color: #e6eef6;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== NAVIGATION ===== */
.navbar {
  background: rgba(15, 23, 36, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.nav-logo {
  font-size: 24px;
  font-weight: 700;
  color: #ffd166;
  text-decoration: none;
  background: linear-gradient(45deg, #ffd166, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 32px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: #e6eef6;
  font-size: 24px;
  cursor: pointer;
  padding: 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  min-width: 48px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.nav-toggle:active {
  transform: scale(0.95);
}

.nav-menu li a {
  color: #e6eef6;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.nav-menu li a:hover,
.nav-menu li a.active {
  color: #ffd166;
}

.nav-menu li a.active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background: #ffd166;
  border-radius: 1px;
}

/* ===== HERO SECTION ===== */
.hero {
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(45deg, #ffd166, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 20px;
  color: #9aa4b2;
  margin-bottom: 24px;
}

.hero-tabs {
  display: flex;
  gap: 0;
  justify-content: center;
  margin-top: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-tabs .tab-btn {
  background: transparent;
  border: 0;
  color: #9aa4b2;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.hero-tabs .tab-btn.active {
  color: #ffd166;
  border-bottom-color: #ffd166;
}

.hero-tabs .tab-btn:hover {
  color: #ffd166;
}

/* ===== MAIN CONTENT ===== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 80px;
}

/* ===== GALLERY ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.card {
  background: rgba(15, 23, 36, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px;
  border-radius: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  min-height: 450px;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 209, 102, 0.3);
}

.thumb {
  width: 100%;
  height: 200px;
  object-fit: contain;
  border-radius: 12px;
  background: #1a2435;
  margin-bottom: 16px;
}

.video-wrapper {
  width: 100%;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  background: #1a2435;
  margin-bottom: 16px;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

textarea {
  width: 100%;
  min-height: 100px;
  margin: 12px 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.5);
  color: inherit;
  padding: 12px;
  resize: none;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
  flex-grow: 1;
}

textarea:focus {
  outline: none;
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.1);
}

.copy-btn {
  background: linear-gradient(45deg, #ffd166, #ff8c42);
  color: #052028;
  border: 0;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 209, 102, 0.3);
}

.copy-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 209, 102, 0.4);
}

.copy-link-btn {
  background: linear-gradient(45deg, #007bff, #0056b3);
  color: white;
  border: 0;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.copy-link-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 123, 255, 0.4);
  background: linear-gradient(45deg, #0056b3, #007bff);
}

.favorite-btn {
  background: transparent;
  border: 0;
  font-size: 18px;
  cursor: pointer;
  margin-left: 8px;
  transition: transform 0.3s ease;
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.meta img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffd166;
}

.meta span {
  font-weight: 500;
  color: #ffd166;
}

/* ===== BUTTONS ===== */
.btn {
  background: linear-gradient(45deg, #ffd166, #ff8c42);
  color: #052028;
  border: 0;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(255, 209, 102, 0.3);
  font-size: 14px;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(255, 209, 102, 0.4);
}

.btn-primary {
  background: linear-gradient(45deg, #ffd166, #ff8c42);
  color: #052028;
  box-shadow: 0 2px 8px rgba(255, 209, 102, 0.3);
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  box-shadow: 0 4px 16px rgba(255, 209, 102, 0.4);
  transform: translateY(-2px);
  background: linear-gradient(45deg, #ff8c42, #ffd166);
}

.save-btn {
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
  border: 0;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.save-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  background: linear-gradient(45deg, #059669, #10b981);
}

/* ===== FORMS ===== */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #e6eef6;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(30, 41, 59, 0.5);
  color: inherit;
  font-family: inherit;
  font-size: 14px;
  transition: all 0.3s ease;
}

select {
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6eef6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
  padding: 8px 12px;
  padding-right: 34px;
  appearance: none;
}

select:focus {
  outline: none;
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.1);
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.1);
}

/* ===== PAGE SPECIFIC ===== */
.upload-main,
.profile-main,
.about-main {
  max-width: 800px;
  margin: 80px auto 0;
  padding: 0 24px 80px;
}

.upload-container,
.profile-container,
.about-container {
  background: rgba(15, 23, 36, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.upload-container h1,
.profile-container h1,
.about-container h1 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(45deg, #ffd166, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.login-prompt {
  text-align: center;
  padding: 40px;
}

.login-prompt h2 {
  margin-bottom: 16px;
  color: #ffd166;
}

.login-prompt p {
  margin-bottom: 24px;
  color: #9aa4b2;
}

.profile-form {
  max-width: 400px;
  margin: 0 auto;
}

.profile-tabs {
  display: flex;
  gap: 0;
  margin-top: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
  background: transparent;
  border: 0;
  color: #9aa4b2;
  padding: 12px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.tab-btn.active {
  color: #ffd166;
  border-bottom-color: #ffd166;
}

.tab-btn:hover {
  color: #ffd166;
}

.profile-section {
  display: none;
  margin-top: 20px;
}

.profile-section.active {
  display: block;
}

.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.card-actions .btn {
  padding: 6px 12px;
  font-size: 12px;
}

.edit-btn {
  background: linear-gradient(45deg, #10b981, #059669);
  color: white;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.edit-btn:hover {
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4);
}

.delete-btn {
  background: linear-gradient(45deg, #ef4444, #dc2626);
  color: white;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.delete-btn:hover {
  box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

/* ===== ABOUT PAGE ===== */
.about-section {
  margin-bottom: 40px;
}

.about-section h2 {
  color: #ffd166;
  margin-bottom: 16px;
  font-size: 24px;
}

.about-intro {
  font-size: 18px;
  margin-bottom: 40px;
  text-align: center;
}

.features-list {
  list-style: none;
  padding: 0;
}

.features-list li {
  margin-bottom: 12px;
  padding-left: 24px;
  position: relative;
}

.features-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffd166;
  font-weight: bold;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(15, 23, 36, 0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 80px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  color: #ffd166;
  margin-bottom: 16px;
  font-size: 18px;
}

.footer-section p {
  color: #9aa4b2;
  margin-bottom: 16px;
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul li {
  margin-bottom: 8px;
}

.footer-section ul li a {
  color: #9aa4b2;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-section ul li a:hover {
  color: #ffd166;
}

.footer-bottom {
  text-align: center;
  padding: 20px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #9aa4b2;
  font-size: 14px;
}

/* ===== UPLOAD TUTORIALS ===== */
.upload-tutorials {
  margin-bottom: 24px;
}

.tutorial-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 16px;
}

.tutorial-tabs .tab-btn {
  background: transparent;
  border: 0;
  color: #9aa4b2;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  border-radius: 8px 8px 0 0;
}

.tutorial-tabs .tab-btn.active {
  color: #ffd166;
  border-bottom-color: #ffd166;
  background: rgba(255, 209, 102, 0.1);
}

.tutorial-tabs .tab-btn:hover {
  color: #ffd166;
  background: rgba(255, 209, 102, 0.05);
}

.tab-content {
  margin-top: 16px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.tab-pane .tip {
  margin: 0;
  padding: 20px;
  line-height: 1.6;
}

/* ===== UTILITIES ===== */
.tip {
  color: #9aa4b2;
  font-size: 14px;
  margin-top: 8px;
  padding: 12px;
  background: rgba(30, 41, 59, 0.5);
  border-radius: 8px;
  border-left: 4px solid #ffd166;
}

a {
  color: #ffd166;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ff8c42;
}

/* ===== PROMPT DETAIL PAGE ===== */
.prompt-detail {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 24px;
}

.prompt-hero {
  text-align: center;
  margin-bottom: 60px;
  padding: 60px 0;
  background: linear-gradient(135deg, rgba(15, 23, 36, 0.8) 0%, rgba(30, 41, 59, 0.8) 100%);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.prompt-hero h1 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(45deg, #ffd166, #ff8c42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.prompt-hero .prompt-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.prompt-hero .prompt-meta img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 3px solid #ffd166;
}

.prompt-hero .prompt-meta span {
  font-size: 18px;
  font-weight: 600;
  color: #ffd166;
}

.prompt-media {
  margin-bottom: 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  max-width: 100%;
}

.prompt-media img {
  width: 100%;
  height: auto;
  display: block;
  max-height: 70vh;
  object-fit: contain;
}

.prompt-media .video-wrapper {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  max-height: 70vh;
}

.prompt-media .video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.prompt-content {
  background: rgba(15, 23, 36, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 40px;
  margin-bottom: 40px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.prompt-content h2 {
  color: #ffd166;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: 600;
}

.prompt-textarea {
  width: 100%;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.5);
  color: inherit;
  padding: 20px;
  resize: vertical;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.6;
  transition: all 0.3s ease;
}

.prompt-textarea:focus {
  outline: none;
  border-color: #ffd166;
  box-shadow: 0 0 0 3px rgba(255, 209, 102, 0.1);
}

.prompt-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.prompt-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.stat-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  transition: all 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 209, 102, 0.3);
}

.stat-card h3 {
  font-size: 28px;
  font-weight: 700;
  color: #ffd166;
  margin-bottom: 8px;
}

.stat-card p {
  color: #9aa4b2;
  font-size: 14px;
  margin: 0;
}

.related-prompts {
  margin-top: 60px;
}

.related-prompts h2 {
  color: #ffd166;
  font-size: 28px;
  margin-bottom: 30px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.related-card {
  background: rgba(15, 23, 36, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 209, 102, 0.3);
}

.related-card .thumb {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 12px;
  margin-bottom: 16px;
}

.related-card .video-wrapper {
  width: 100%;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.related-card .video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.related-card p {
  color: #e6eef6;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.modal-container {
  background: rgba(15, 23, 36, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  width: 90%;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: scale(1);
}

.modal-header {
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
  margin: 0;
  color: #ffd166;
  font-size: 20px;
  font-weight: 600;
}

.modal-body {
  padding: 20px 24px;
}

.modal-body p {
  margin: 0;
  color: #e6eef6;
  line-height: 1.6;
  font-size: 16px;
}

.modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.btn-secondary {
  background: rgba(30, 41, 59, 0.8);
  color: #9aa4b2;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(30, 41, 59, 1);
  color: #e6eef6;
  border-color: rgba(255, 209, 102, 0.3);
}

/* ===== RESPONSIVE ===== */
@media (min-width: 769px) {
  .nav-toggle {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 16px;
    height: 60px;
  }

  .nav-logo {
    font-size: 20px;
  }

  .nav-menu {
    gap: 16px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    padding: 60px 16px 40px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .card {
    padding: 16px;
    min-height: 400px;
  }

  .thumb {
    height: 150px;
  }

  textarea {
    min-height: 80px;
  }

  .copy-btn {
    padding: 8px 16px;
    font-size: 14px;
    min-width: 48px;
    min-height: 44px;
  }

  .favorite-btn {
    font-size: 20px;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
  }

  .meta img {
    width: 24px;
    height: 24px;
  }

  .upload-main,
  .profile-main,
  .about-main {
    margin-top: 40px;
    padding: 0 16px 40px;
  }

  .upload-container,
  .profile-container,
  .about-container {
    padding: 24px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 16px;
  }

  /* Modal responsive adjustments */
  .modal-container {
    max-width: 85%;
    width: 85%;
    max-height: 80vh;
    overflow-y: auto;
  }

  .modal-header {
    padding: 20px 20px 12px;
  }

  .modal-header h3 {
    font-size: 18px;
  }

  .modal-body {
    padding: 16px 20px;
  }

  .modal-body p {
    font-size: 16px;
  }

  .modal-footer {
    padding: 12px 20px 20px;
    flex-direction: column;
    gap: 8px;
  }

  .modal-footer .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    min-height: 48px;
  }

  .btn-secondary {
    padding: 12px 20px;
    min-height: 48px;
  }

  /* Form improvements for mobile */
  input,
  textarea,
  select {
    padding: 16px;
    font-size: 16px;
    min-height: 48px;
  }

  .btn,
  .btn-primary {
    padding: 16px 24px;
    font-size: 16px;
    min-height: 48px;
  }

  .save-btn {
    padding: 12px 20px;
    font-size: 14px;
    min-width: 48px;
    min-height: 44px;
  }

  .edit-btn,
  .delete-btn {
    padding: 12px 16px;
    font-size: 14px;
    min-width: 48px;
    min-height: 44px;
  }

  /* Tab buttons for mobile */
  .tab-btn,
  .hero-tabs .tab-btn {
    padding: 16px 20px;
    font-size: 16px;
    min-height: 48px;
  }

  /* Tutorial tabs mobile responsiveness */
  .tutorial-tabs {
    flex-wrap: wrap;
    gap: 4px;
  }

  .tutorial-tabs .tab-btn {
    flex: 1;
    min-width: 0;
    padding: 12px 8px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Reduce prompt-hero padding on mobile */
  .prompt-hero {
    padding: 20px 0;
    margin-bottom: 20px;
  }

  .prompt-hero h1 {
    font-size: 28px;
  }

  .prompt-hero .prompt-meta img {
    width: 36px;
    height: 36px;
  }

  .prompt-hero .prompt-meta span {
    font-size: 16px;
  }

  /* Reduce card sizes on mobile for prompt.html */
  .stat-card {
    padding: 16px;
  }

  .stat-card h3 {
    font-size: 24px;
  }

  .related-card {
    padding: 16px;
  }

  .related-card .thumb {
    height: 120px;
  }

  .related-card .video-wrapper {
    height: 120px;
  }

  .prompt-content {
    padding: 24px;
  }

  /* Reduce image size on mobile for prompt.html */
  .prompt-media img {
    max-height: 40vh;
  }

  .prompt-media .video-wrapper {
    max-height: 40vh;
  }
}

@media (max-width: 480px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 23, 36, 0.95);
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-menu li {
    width: 100%;
    text-align: center;
    padding: 8px 0;
  }

  .hero h1 {
    font-size: 28px;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 12px;
  }

  .card {
    padding: 12px;
    min-height: 280px;
  }

  .thumb,
  .video-wrapper {
    height: 120px;
  }

  textarea {
    min-height: 60px;
  }

  .upload-container h1,
  .profile-container h1,
  .about-container h1 {
    font-size: 24px;
  }
}
