/* Circular Navigation Menu - Vanilla JS Implementation */

.circle-menu {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  z-index: 1001;
}

.circle-menu-trigger {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-cta);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--bg-01);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1002;
}

.circle-menu-trigger:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 189, 89, 0.4);
}

.circle-menu-trigger.active {
  background: var(--danger);
  transform: rotate(45deg);
}

.circle-menu-items {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  pointer-events: none;
  z-index: 1001;
}

.circle-menu-items.active {
  pointer-events: all;
}

.circle-menu-item {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-02);
  border: 2px solid var(--accent-01);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--accent-01);
  text-decoration: none;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  top: 50%;
  left: 50%;
}

.circle-menu-item:hover {
  background: var(--accent-cta);
  color: var(--bg-01);
  transform: translate(-50%, -50%) scale(1.1);
}

.circle-menu-item.show {
  transform: translate(-50%, -50%) scale(1);
}

.circle-menu-item[data-position="0"] {
  top: calc(50% - 80px);
  left: 50%;
}

.circle-menu-item[data-position="1"] {
  top: calc(50% - 56px);
  left: calc(50% + 56px);
}

.circle-menu-item[data-position="2"] {
  top: 50%;
  left: calc(50% + 80px);
}

.circle-menu-item[data-position="3"] {
  top: calc(50% + 56px);
  left: calc(50% + 56px);
}

.circle-menu-item[data-position="4"] {
  top: calc(50% + 80px);
  left: 50%;
}

.circle-menu-item[data-position="5"] {
  top: calc(50% + 56px);
  left: calc(50% - 56px);
}

.circle-menu-item[data-position="6"] {
  top: 50%;
  left: calc(50% - 80px);
}

.circle-menu-item[data-position="7"] {
  top: calc(50% - 56px);
  left: calc(50% - 56px);
}

.circle-menu-label {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--accent-01);
  background: var(--bg-02);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
  margin-top: 4px;
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.circle-menu-item:hover .circle-menu-label {
  opacity: 1;
}

/* Animation delays for staggered effect */
.circle-menu-item[data-position="0"] { transition-delay: 0ms; }
.circle-menu-item[data-position="1"] { transition-delay: 50ms; }
.circle-menu-item[data-position="2"] { transition-delay: 100ms; }
.circle-menu-item[data-position="3"] { transition-delay: 150ms; }
.circle-menu-item[data-position="4"] { transition-delay: 200ms; }
.circle-menu-item[data-position="5"] { transition-delay: 250ms; }

/* Phone Mockup Styles */
.phone-mockup {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 500px;
}

.phone-frame {
  width: 280px;
  height: 580px;
  background: #1a1a1a;
  border-radius: 28px;
  padding: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
}

.phone-frame::before {
  content: '';
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: #333;
  border-radius: 2px;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0a0a0a;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: white;
  font-family: 'Inter', sans-serif;
}

.status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
}

.time {
  color: white;
}

.status-icons {
  display: flex;
  gap: 4px;
  font-size: 10px;
}

.app-header {
  padding: 16px 20px 8px;
}

.app-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--accent-cta);
  margin: 0;
}

.app-location {
  font-size: 14px;
  color: #888;
  margin: 4px 0 0 0;
}

.quick-actions {
  display: flex;
  gap: 16px;
  padding: 0 20px 16px;
  border-bottom: 1px solid #222;
}

.action-item {
  font-size: 12px;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.action-item.active {
  color: var(--accent-cta);
  font-weight: 600;
}

.event-cards {
  flex: 1;
  padding: 16px 20px;
  overflow-y: auto;
}

.event-card {
  background: #111;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  border: 1px solid #222;
}

.event-card.featured {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1a0a 100%);
  border-color: var(--accent-cta);
}

.event-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}

.event-title {
  font-size: 14px;
  font-weight: 600;
  color: white;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.event-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}

.price {
  color: var(--accent-cta);
  font-weight: 600;
}

.votes {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #888;
}

.star {
  color: var(--accent-cta);
}

.attendance, .exclusive {
  color: #888;
}

.exclusive {
  color: var(--accent-secondary);
}

.bottom-nav {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 12px 8px 8px;
  background: #0a0a0a;
  border-top: 1px solid #222;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  transition: all 0.2s;
  padding: 4px;
}

.nav-item.active .nav-icon {
  color: var(--accent-cta);
}

.nav-item.active .nav-label {
  color: var(--accent-cta);
}

.nav-item.create {
  background: var(--accent-cta);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  justify-content: center;
}

.nav-item.create .nav-icon {
  font-size: 18px;
  font-weight: bold;
  color: #000;
}

.nav-item.create .nav-label {
  color: var(--accent-cta);
}

.nav-icon {
  font-size: 16px;
  color: #666;
}

.nav-label {
  font-size: 10px;
  color: #666;
  font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .circle-menu {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
  }
  
  .circle-menu-trigger {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .circle-menu-items {
    width: 160px;
    height: 160px;
  }
  
  .circle-menu-item {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .circle-menu-item[data-position="0"] { top: calc(50% - 60px); }
  .circle-menu-item[data-position="1"] { top: calc(50% - 42px); left: calc(50% + 42px); }
  .circle-menu-item[data-position="2"] { left: calc(50% + 60px); }
  .circle-menu-item[data-position="3"] { top: calc(50% + 42px); left: calc(50% + 42px); }
  .circle-menu-item[data-position="4"] { top: calc(50% + 60px); }
  .circle-menu-item[data-position="5"] { top: calc(50% + 42px); left: calc(50% - 42px); }
  .circle-menu-item[data-position="6"] { left: calc(50% - 60px); }
  .circle-menu-item[data-position="7"] { top: calc(50% - 42px); left: calc(50% - 42px); }
}