@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&family=Amiri&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #f7971e, #ffd200);
  transition: background 1s ease;
  perspective: 1500px;
  overflow: hidden;
}

.card {
  position: relative;
  width: 90%;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(15px);
  border-radius: 25px;
  padding: 40px 30px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  transform-style: preserve-3d;
  cursor: grab;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.card:active { cursor: grabbing; }

.category, h2, .translations, .note, .word-image {
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s ease, opacity 0.4s ease;
}

h2 { font-size: 46px; margin: 10px 0; font-weight: 600; z-index: 2; }
.category { font-size: 18px; font-weight: 600; color: #2c3e50; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 1px; z-index:2; }
.translations { margin-top: 20px; display: none; animation: fadeIn 0.5s ease; z-index:2; }
.translations p { margin: 12px 0; font-size: 20px; display: flex; align-items: center; gap: 10px; justify-content: center; }
.translations img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 2px 6px rgba(0,0,0,0.3); }
.translations .ar { font-family: 'Amiri', serif; font-size: 28px; color: #2c3e50; }
.translations .ar_tr { font-style: italic; font-size: 16px; color: #e74c3c; margin-left: 44px; }
.note { margin-top: 15px; font-size: 16px; color: #34495e; font-style: italic; z-index:2; }

.word-image { width: 160px; height: 160px; object-fit: cover; border-radius: 15px; margin: 20px auto; display: none; box-shadow: 0 20px 50px rgba(0,0,0,0.6); z-index:3; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
