/* activity.css - Midnight Adventure Theme */

#activity-section {
  background-color: #0f172a; /* bg-slate-900 */
  color: #f1f5f9; /* text-slate-100 */
  font-family: inherit;
  min-height: 100vh;
  padding: 1rem;
  padding-bottom: 3rem;
}

/* Header */
.activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-top: 1rem;
}

.activity-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.activity-avatar {
  width: 3rem;
  height: 3rem;
  background-color: #4f46e5;
  border-radius: 50%;
  border: 2px solid #818cf8;
  box-shadow: 0 0 15px rgba(79, 70, 229, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.activity-title h1 {
  font-weight: bold;
  font-size: 1.125rem;
  margin: 0;
  line-height: 1.2;
}

.activity-title p {
  font-size: 0.75rem;
  color: #94a3b8;
  margin: 0;
}

.activity-header-right {
  display: flex;
  gap: 0.5rem;
}

.activity-stat-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Grid Menu */
.activity-section-title {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.activity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.activity-card {
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem;
  border-radius: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  color: white;
  border: none;
}

.activity-card:hover {
  transform: scale(1.05);
}

.activity-card:active {
  transform: scale(0.95);
}

.activity-card span {
  font-size: 0.875rem;
  font-weight: 500;
  text-align: center;
  line-height: 1.2;
}

/* Modals */
.activity-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1rem;
  animation: fadeIn 0.3s ease-out;
}

.activity-modal-content {
  background: rgba(30, 41, 59, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: slideUp 0.3s ease-out;
}

.activity-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.activity-modal-header h2 {
  font-weight: bold;
  font-size: 1.125rem;
  margin: 0;
}

.activity-modal-close {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 1.5rem;
  cursor: pointer;
}

.activity-modal-body {
  padding: 1.5rem;
}

/* Tarot specific */
.tarot-cards-container {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  position: relative;
}

.tarot-card {
  width: 100px;
  height: 150px;
  position: absolute;
  transform-origin: bottom center;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  perspective: 1000px;
}

.tarot-card:hover {
  transform: translateY(-20px) scale(1.1) rotate(0deg) !important;
  z-index: 10;
}

.tarot-card-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transition: transform 0.6s;
  transform-style: preserve-3d;
}

.tarot-card.flipped .tarot-card-inner {
  transform: rotateY(180deg);
}

.tarot-card-front, .tarot-card-back {
  width: 100%;
  height: 100%;
  position: absolute;
  backface-visibility: hidden;
  border-radius: 0.75rem;
  border: 2px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tarot-card-front {
  background: linear-gradient(to bottom right, #4f46e5, #9333ea);
  color: white;
  font-size: 2rem;
}

.tarot-card-back {
  background: linear-gradient(to bottom right, #fef08a, #f59e0b);
  transform: rotateY(180deg);
  color: #78350f;
  font-size: 3rem;
}

.tarot-result {
  margin-top: 1.5rem;
  text-align: center;
  animation: fadeIn 0.5s ease-out;
}

.tarot-result h3 {
  color: #fbbf24;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.tarot-result p {
  color: #cbd5e1;
  font-size: 0.875rem;
}

/* Gacha specific */
.gacha-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  text-align: center;
}

.gacha-balance {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 1rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.gacha-balance h3 {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 0.25rem;
}

.gacha-balance p {
  font-size: 1.875rem;
  font-weight: bold;
  color: #facc15;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
}

.gacha-wheel {
  width: 12rem;
  height: 12rem;
  margin: 0 auto;
  background: #1e293b;
  border-radius: 50%;
  border: 4px solid #334155;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gacha-wheel-content {
  font-size: 4rem;
  transition: all 0.3s ease;
}

.gacha-wheel-content.spinning {
  animation: spin 1s linear infinite;
}

.gacha-wheel-content.prize {
  animation: bounce 1s infinite;
  font-size: 1.25rem;
  color: #a5b4fc;
  font-weight: bold;
  padding: 1rem;
}

/* Utility classes & Buttons */
.activity-btn-primary {
  width: 100%;
  padding: 0.75rem;
  border-radius: 0.75rem;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.activity-btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
}

.bg-gradient-purple {
  background: linear-gradient(to right, #9333ea, #4f46e5);
  box-shadow: 0 10px 15px -3px rgba(147, 51, 234, 0.3);
}

.bg-gradient-purple:hover:not(:disabled) {
  transform: scale(1.05);
}

.bg-gradient-pink {
  background: linear-gradient(to right, #ec4899, #f43f5e);
}

.bg-gradient-pink:hover:not(:disabled) {
  transform: scale(1.05);
}

/* BizSim */
.bizsim-header {
  display: flex;
  justify-content: space-between;
  background: #1e293b;
  padding: 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
}

.bizsim-situation {
  background: rgba(49, 46, 129, 0.3);
  padding: 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin-bottom: 1rem;
}

.bizsim-choice {
  width: 100%;
  text-align: left;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid transparent;
  border-radius: 0.75rem;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.bizsim-choice:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
