/* Rewards Center CSS - Android Mobile First */
/* CSS Loaded: rewards-center.css */

/* Make reward screens scrollable */
.screen[id*="rewards"], .screen[id*="daily"], .screen[id*="achievements"], .screen[id*="missions"], .screen[id*="gift"] {
  overflow-y: auto;
  height: 100vh;
  display: flex;
  flex-direction: column;
}

.screen[id*="rewards"] .r1-company-hub-container,
.screen[id*="daily"] .r1-company-hub-container,
.screen[id*="achievements"] .r1-company-hub-container,
.screen[id*="missions"] .r1-company-hub-container,
.screen[id*="gift"] .r1-company-hub-container {
  flex: 1;
  overflow-y: auto;
}

.r1-company-hub-container {
  --accent-color: gold;
  --text-glow: 1px 1px 3px rgba(0, 0, 0, 0.6);
  --bg-dark: #2a0a1f;
  --bg-darker: #12000f;
  --ribbon-gradient: linear-gradient(to right, #FFD700, #FF8C00);
  --btn-glow: rgba(255, 215, 0, 0.7);
  --android-width: 100vw;
  --android-height: 100vh;
  
  width: var(--android-width);
  margin: 0 auto;
  height: 100vh;
  padding: 0;
  box-sizing: border-box;
  
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('https://wallpapercave.com/wp/wp9279865.jpg') no-repeat center center / cover;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
}

.r1-company-hub-container::before {
  content: "";
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 70%),
                    radial-gradient(circle at 70% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  animation: floatBG 12s linear infinite;
  z-index: 0;
  pointer-events: none;
}

@keyframes floatBG {
  0% { background-position: 0% 0%, 100% 100%; }
  50% { background-position: 50% 50%, 50% 50%; }
  100% { background-position: 0% 0%, 100% 100%; }
}



.r1-hub-header {
  text-align: center;
  padding: 20px 16px;
  position: relative;
  z-index: 2;
  border-bottom: 2px solid var(--accent-color);
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
}

.r1-hub-header h1 {
  color: #fff;
  font-size: 2rem;
  margin-bottom: 8px;
  text-shadow: var(--text-glow);
  background: linear-gradient(to right, gold, orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.r1-hub-header p {
  color: #fff;
  font-size: 1rem;
  opacity: 0.9;
  text-shadow: var(--text-glow);
}

.r1-hub-content {
  padding: 16px;
  position: relative;
  z-index: 2;
}

.r1-nav-section {
  text-align: center;
  margin-bottom: 24px;
}

.r1-back-to-main {
  background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
  border: none;
  color: white;
  font-weight: bold;
  padding: 16px 32px;
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(67, 233, 123, 0.3);
  width: 100%;
  max-width: 280px;
}

.r1-back-to-main:hover {
  background: linear-gradient(135deg, #38f9d7 0%, #43e97b 100%);
  box-shadow: 0 8px 24px rgba(67, 233, 123, 0.4);
  transform: translateY(-2px);
}

.r1-section-group {
  margin-bottom: 32px;
}

.r1-section-title {
  color: #fff;
  text-align: center;
  margin-bottom: 16px;
  font-size: 1.4rem;
  text-shadow: var(--text-glow);
  background: linear-gradient(to right, gold, orange);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
}

.r1-nav-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.r1-nav-card {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid var(--accent-color);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.r1-nav-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.r1-nav-card:hover::before {
  left: 100%;
}

.r1-nav-card:hover {
  transform: translateY(-4px);
  border-color: #FF8C00;
  box-shadow: 0 8px 24px rgba(255, 215, 0, 0.3);
  background: rgba(255, 255, 255, 0.2);
}

.r1-nav-card:active {
  transform: translateY(-2px);
}

.r1-nav-icon {
  font-size: 2.5rem;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.r1-nav-card:hover .r1-nav-icon {
  transform: scale(1.1);
}

.r1-nav-card h3 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 4px;
  text-shadow: var(--text-glow);
  font-weight: 600;
}

.r1-nav-card p {
  color: #fff;
  font-size: 0.9rem;
  opacity: 0.8;
  text-shadow: var(--text-glow);
  line-height: 1.3;
}

@media (min-width: 480px) {
  .r1-nav-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .r1-nav-card {
    min-height: 140px;
  }
}

@media (min-width: 768px) {
  .r1-company-hub-container {
    max-width: 100vw;
  }
  
  .r1-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .r1-nav-card {
    min-height: 160px;
    padding: 20px 16px;
  }
  
  .r1-nav-icon {
    font-size: 3rem;
  }
  
  .r1-nav-card h3 {
    font-size: 1.2rem;
  }
  
  .r1-nav-card p {
    font-size: 1rem;
  }
}

/* Ripple effect animation */
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* Touch feedback */
.r1-nav-card.active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.3);
}

/* Responsive adjustments */
@media (max-width: 360px) {
  .r1-hub-header h1 {
    font-size: 1.8rem;
  }
  
  .r1-nav-grid {
    gap: 8px;
  }
  
  .r1-nav-card {
    padding: 12px 8px;
    min-height: 100px;
  }
  
  .r1-nav-icon {
    font-size: 2rem;
  }
  
  .r1-nav-card h3 {
    font-size: 1rem;
  }
  
  .r1-nav-card p {
    font-size: 0.8rem;
  }
}

/* Prevent layout shifts */
.screen[id*="rewards"], .screen[id*="daily"], .screen[id*="achievements"], .screen[id*="missions"], .screen[id*="gift"] {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Loading states */
.r1-nav-card.loading {
  opacity: 0.7;
  pointer-events: none;
}

.r1-nav-card.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid transparent;
  border-top: 2px solid var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
} 