/* ============================================================
   🎮 REVIEWQEEM - PROFESSIONAL AAA STYLING
   ============================================================ */

/* ==================== VARIABLES & RESET ==================== */
:root {
  /* 🎨 Color Palette */
  --primary: #6c5ce7;
  --primary-light: #8b7ffb;
  --primary-dark: #5a4acc;
  --secondary: #00b894;
  --accent: #fd79a8;
  --dark-bg: #0a0a0f;
  --darker-bg: #05050a;
  --card-bg: #131318;
  --card-hover: #1a1a22;
  --text-primary: #ffffff;
  --text-secondary: #b8b8cc;
  --text-tertiary: #808090;
  --border-color: #2a2a3a;
  --border-light: rgba(255, 255, 255, 0.05);
  --border-heavy: rgba(255, 255, 255, 0.1);
  
  /* 🎭 Effects */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.5);
  --glow-primary: 0 0 20px rgba(108, 92, 231, 0.3);
  --glow-secondary: 0 0 20px rgba(0, 184, 148, 0.2);
  
  /* 📏 Spacing */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  /* ⏱️ Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: all 0.15s ease;
  --transition-slow: all 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Tajawal', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: var(--dark-bg);
  color: var(--text-primary);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ==================== TYPOGRAPHY ==================== */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.5px;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.8rem; }
h4 { font-size: 1.4rem; }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

p {
  margin: 0;
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--primary);
}

/* ==================== UTILITIES ==================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-padding {
  padding: 80px 0;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.mb-30 { margin-bottom: 30px; }
.mb-40 { margin-bottom: 40px; }

.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }

/* ==================== ANIMATIONS ==================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes glow {
  0%, 100% { box-shadow: var(--glow-primary); }
  50% { box-shadow: 0 0 30px rgba(108, 92, 231, 0.5); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.fade-up { animation: fadeUp 0.8s ease forwards; }
.fade-up-delay { animation: fadeUp 1s ease 0.2s forwards; opacity: 0; }
.fade-in { animation: fadeIn 0.6s ease forwards; }

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: var(--radius-md);
  border: none;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  outline: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: var(--transition-fast);
  z-index: 0;
}

.btn:hover::before {
  left: 100%;
}

.btn span {
  position: relative;
  z-index: 1;
}

/* Button Variants */
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg), 0 0 30px rgba(108, 92, 231, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
}

.btn-secondary:hover {
  background: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 2px solid var(--border-color);
}

.btn-ghost:hover {
  background: var(--card-hover);
  border-color: var(--primary);
  color: var(--primary);
}

.btn-sm { padding: 8px 16px; font-size: 0.9rem; }
.btn-lg { padding: 14px 32px; font-size: 1.1rem; }
.btn-full { width: 100%; }

.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: scale(1.1);
}

/* ==================== HEADER ==================== */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

header.scrolled {
  box-shadow: var(--shadow-lg);
  background: rgba(10, 10, 15, 0.98);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 20%, #ffeaa7 0%, #fd79a8 30%, #6c5ce7 70%, #241b52 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #ffffff 0%, #dfe6e9 40%, #a29bfe 70%, #81ecec 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-transform: uppercase;
}

.logo-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: -4px;
}

/* Navigation */
nav ul {
  display: flex;
  gap: 30px;
  list-style: none;
}

nav a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: var(--transition-fast);
}

nav a:hover,
nav a.active {
  color: var(--primary);
}

nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  transition: width 0.3s ease;
}

nav a:hover::after,
nav a.active::after {
  width: 100%;
}

/* ==================== HERO SECTION ==================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.08) 0%, rgba(0, 184, 148, 0.04) 100%);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.1) 0%, transparent 70%);
  animation: float 15s ease-in-out infinite;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -30%;
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.08) 0%, transparent 70%);
  animation: float 20s ease-in-out infinite reverse;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeUp 0.8s ease;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  animation: fadeUp 0.8s ease 0.1s both;
}

/* Search Box */
.search-box {
  display: flex;
  gap: 8px;
  max-width: 500px;
  margin: 40px auto;
  background: var(--card-bg);
  border: 2px solid var(--border-color);
  border-radius: 50px;
  padding: 5px;
  transition: var(--transition);
  animation: fadeUp 0.8s ease 0.2s both;
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
}

.search-box input {
  flex: 1;
  background: none;
  border: none;
  color: var(--text-primary);
  padding: 12px 20px;
  font-size: 1rem;
  outline: none;
}

.search-box input::placeholder {
  color: var(--text-tertiary);
}

.search-box button {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-primary);
}

.search-box button:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(108, 92, 231, 0.5);
}

.hero-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp 0.8s ease 0.3s both;
}

/* ==================== STATS SECTION ==================== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin: 80px 0;
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
}

.stat-item {
  text-align: center;
  padding: 30px 20px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(0, 184, 148, 0.1) 100%);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  transition: var(--transition);
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 1rem;
}

/* ==================== SECTION HEADERS ==================== */
.section-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 50px;
}

/* ==================== GRID LAYOUTS ==================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

/* ==================== CARDS ==================== */
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.review-card:hover {
  transform: translateY(-8px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg), var(--glow-primary);
}

.review-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.review-card:hover img {
  transform: scale(1.08);
}

.review-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.review-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-primary);
  line-height: 1.4;
}

.review-rating {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.rating-stars {
  color: #ffd700;
}

.rating-score {
  font-weight: 700;
  color: var(--primary);
}

.review-excerpt {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.platform-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 10px;
}

/* ==================== MODAL ==================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--card-bg);
  padding: 40px;
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 90%;
  border: 1px solid var(--border-light);
  max-height: 90vh;
  overflow-y: auto;
  animation: fadeUp 0.3s ease;
  position: relative;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--border-color);
  border: none;
  color: var(--text-primary);
  font-size: 28px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  background: var(--primary);
  transform: rotate(90deg);
}

.modal-content h2 {
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-right: 30px;
}

/* ==================== FORMS ==================== */
.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control,
textarea.form-control,
select.form-control {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--transition);
}

.form-control:focus,
textarea.form-control:focus,
select.form-control:focus {
  border-color: var(--primary);
  box-shadow: var(--glow-primary);
  background: var(--card-hover);
}

.form-control::placeholder {
  color: var(--text-tertiary);
}

/* ==================== FOOTER ==================== */
footer {
  background: linear-gradient(180deg, var(--card-bg) 0%, var(--darker-bg) 100%);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 20px;
  margin-top: 100px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h3 {
  color: var(--text-primary);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-column p,
.footer-links li {
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-secondary);
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  transform: translateX(-5px);
}

/* ==================== ADMIN BUTTON ==================== */
.hidden-admin-access {
  position: fixed;
  bottom: 30px;
  left: 30px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(108, 92, 231, 0.1);
  border: 2px solid var(--primary);
  cursor: pointer;
  transition: var(--transition);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--glow-primary);
}

.hidden-admin-access:hover {
  background: var(--primary);
  transform: scale(1.15) rotate(180deg);
}

.hidden-admin-access a {
  color: var(--primary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.hidden-admin-access:hover a {
  color: white;
}

/* ==================== REVIEW VIEW PAGE ==================== */
.review-container {
  max-width: 920px;
  margin: 60px auto;
  padding: 40px;
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
}

.review-cover {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
  transition: var(--transition);
}

.review-cover:hover {
  transform: scale(1.02);
}

.review-title {
  font-size: 2.2rem;
  margin-bottom: 15px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.review-meta {
  color: var(--text-secondary);
  margin-bottom: 25px;
  font-size: 0.95rem;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.review-summary {
  font-size: 1.15rem;
  color: var(--text-secondary);
  margin-bottom: 30px;
  padding: 20px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(0, 184, 148, 0.05) 100%);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--primary);
}

.review-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 30px 0;
}

.review-box {
  background: var(--card-hover);
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
}

.review-box h3 {
  margin-bottom: 15px;
  color: var(--primary);
}

.review-list {
  list-style: none;
  padding: 0;
}

.review-list li {
  margin-bottom: 10px;
  color: var(--text-primary);
  padding-left: 20px;
  position: relative;
}

.review-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--secondary);
  font-weight: bold;
}

.rating-box {
  margin: 25px 0;
  padding: 20px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.15) 0%, rgba(0, 184, 148, 0.1) 100%);
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  text-align: center;
}

.rating-value {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, #ffd700 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.review-content {
  line-height: 1.9;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin: 30px 0;
}

.review-content img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: 25px 0;
  box-shadow: var(--shadow-md);
}

.related-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.related-card {
  background: var(--card-hover);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-light);
}

.related-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.related-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  transition: var(--transition);
}

.related-card:hover img {
  transform: scale(1.08);
}

.related-title {
  padding: 15px;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
}

/* ==================== REVIEW MANAGEMENT STYLES ==================== */
.management-container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

.management-header {
  text-align: center;
  margin-bottom: 40px;
}

.management-header h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.management-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
}

.form-section {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: var(--shadow-md);
}

.form-section h3 {
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 10px;
}

.platforms-management {
  margin-top: 20px;
}

.platform-item {
  background: var(--card-hover);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 15px;
}

.platform-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.platform-actions {
  display: flex;
  gap: 8px;
}

.platform-badge-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.platform-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.reviews-list {
  margin-top: 40px;
}

.review-management-item {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 15px;
  transition: var(--transition);
}

.review-management-item:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.review-platforms {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 10px 0;
}

.form-actions {
  display: flex;
  gap: 15px;
  justify-content: flex-end;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.form-status {
  text-align: center;
  padding: 15px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  font-weight: 600;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 20px;
  color: var(--border-color);
}

.empty-state h3 {
  margin-bottom: 10px;
  color: var(--text-primary);
}

/* أزرار خاصة بالإدارة */
.btn-outline-info {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline-info:hover {
  background: var(--primary);
  color: white;
}

.btn-outline-warning {
  background: transparent;
  color: #f39c12;
  border: 2px solid #f39c12;
}

.btn-outline-warning:hover {
  background: #f39c12;
  color: white;
}

.btn-outline-danger {
  background: transparent;
  color: #e74c3c;
  border: 2px solid #e74c3c;
}

.btn-outline-danger:hover {
  background: #e74c3c;
  color: white;
}

/* ==================== IMAGE UPLOAD STYLES ==================== */
.image-upload-group {
  margin-bottom: 20px;
}

.image-upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.image-upload-area:hover {
  border-color: var(--primary);
}

.image-preview {
  display: none;
  margin-bottom: 15px;
}

.image-preview img {
  max-width: 200px;
  max-height: 150px;
  border-radius: 6px;
  object-fit: cover;
}

.image-info {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.image-info span {
  display: block;
}

.image-upload-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* لقطات الشاشة */
.screenshots-upload {
  margin-top: 15px;
}

.screenshots-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.screenshot-item {
  position: relative;
}

.screenshot-preview {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
}

.screenshot-preview img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.remove-screenshot {
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  color: #e74c3c;
  transition: var(--transition);
}

.remove-screenshot:hover {
  background: #e74c3c;
  color: white;
}

/* ==================== SUCCESS/ERROR STATES ==================== */
.success {
  background: rgba(0, 184, 148, 0.1);
  color: var(--secondary);
  border: 1px solid var(--secondary);
}

.error {
  background: rgba(231, 76, 60, 0.1);
  color: #e74c3c;
  border: 1px solid #e74c3c;
}

.info {
  background: rgba(108, 92, 231, 0.1);
  color: var(--primary);
  border: 1px solid var(--primary);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media (max-width: 1024px) {
  .review-sections {
    grid-template-columns: 1fr;
  }

  .reviews-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .hero h2 {
    font-size: 2.8rem;
  }

  .platform-details {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --radius-lg: 14px;
  }

  header {
    padding: 10px 0;
  }

  nav ul {
    gap: 15px;
  }

  nav a {
    font-size: 0.85rem;
  }

  .hero {
    padding: 60px 0 50px;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
  }

  .search-box {
    max-width: 100%;
  }

  .reviews-grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
  }

  .review-container {
    padding: 25px;
  }

  .review-title {
    font-size: 1.8rem;
  }

  .review-cover {
    height: 220px;
  }

  .rating-value {
    font-size: 2.4rem;
  }

  .related-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  .management-container {
    padding: 0 15px;
  }

  .form-section {
    padding: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .platform-header {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  .platform-actions {
    align-self: flex-end;
  }
}

@media (max-width: 480px) {
  header {
    padding: 8px 0;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav a {
    font-size: 0.8rem;
  }

  .hero h2 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.85rem;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .review-container {
    padding: 20px;
  }

  .review-cover {
    height: 180px;
  }

  .review-title {
    font-size: 1.6rem;
  }

  .rating-value {
    font-size: 2rem;
  }

  .related-card img {
    height: 130px;
  }

  .related-title {
    font-size: 0.85rem;
    padding: 10px;
  }

  .management-header h1 {
    font-size: 2rem;
  }

  .form-section {
    padding: 15px;
  }

  .screenshots-container {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
}

/* ==================== ADDITIONAL STYLES FOR ALL PAGES ==================== */

/* Page header */
.page-header {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.1) 0%, rgba(0, 184, 148, 0.05) 100%);
  padding: 60px 0;
  text-align: center;
}

.page-header h1 {
  font-size: 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 20px auto;
}

/* Content cards */
.content-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 30px;
  margin-bottom: 30px;
  transition: var(--transition);
}

.content-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

/* Tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.data-table th {
  background: var(--primary);
  color: white;
  padding: 15px;
  text-align: right;
  font-weight: 600;
}

.data-table td {
  padding: 15px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-primary);
}

.data-table tr:hover {
  background: var(--card-hover);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 30px;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--primary);
}

.breadcrumbs .separator {
  color: var(--border-color);
}

/* Alert messages */
.alert {
  padding: 15px 20px;
  border-radius: var(--radius-md);
  margin: 20px 0;
  border: 1px solid transparent;
}

.alert-success {
  background: rgba(0, 184, 148, 0.1);
  border-color: var(--secondary);
  color: var(--secondary);
}

.alert-warning {
  background: rgba(243, 156, 18, 0.1);
  border-color: #f39c12;
  color: #f39c12;
}

.alert-danger {
  background: rgba(231, 76, 60, 0.1);
  border-color: #e74c3c;
  color: #e74c3c;
}

.alert-info {
  background: rgba(108, 92, 231, 0.1);
  border-color: var(--primary);
  color: var(--primary);
}

/* ==================== MOBILE MENU ==================== */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: block;
  }

  nav ul {
    position: fixed;
    top: 70px;
    right: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background: var(--card-bg);
    flex-direction: column;
    padding: 20px;
    transition: var(--transition);
    border-left: 1px solid var(--border-light);
  }

  nav ul.active {
    right: 0;
  }

  nav ul li {
    width: 100%;
  }

  nav a {
    display: block;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-light);
  }
}

/* ==================== LOADING SPINNER ==================== */
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--border-color);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==================== ACCESSIBILITY ==================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ==================== PRINT STYLES ==================== */
@media print {
  header,
  footer,
  .hidden-admin-access,
  .search-box,
  .hero-actions {
    display: none !important;
  }

  body {
    background: white !important;
    color: black !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .review-container {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
  }
}

/* ============================================================
   🌟 COMPLETED — AAA Responsive Design by ReviewQeem
============================================================ */