/**
 * ArionPlay Main CSS File
 * This file contains all common styles used across ArionPlay website
 * Mobile-first approach with responsive design
 * All classes must use prefix "uif7-" to avoid conflicts
 */

/* CSS Reset and Base Styles */
:root {
  font-size: 62.5%;
  --uif7-primary: #FFB3FF;
  --uif7-secondary: #FFC0CB;
  --uif7-bg: #2D2D2D;
  --uif7-text: #FFFFFF;
  --uif7-accent: #FFB3FF;
  --uif7-dark: #1A1A1A;
  --uif7-light: #F5F5F5;
  --uif7-success: #4CAF50;
  --uif7-warning: #FF9800;
  --uif7-error: #F44336;
  --uif7-header-height: 6rem;
  --uif7-footer-nav-height: 6rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  font-family: 'Arial', sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  color: var(--uif7-text);
  background-color: var(--uif7-bg);
  scroll-behavior: smooth;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout */
.uif7-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.uif7-section {
  padding: 2rem 0;
}

.uif7-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 1rem;
}

.uif7-flex {
  display: flex;
}

.uif7-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.uif7-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uif7-flex-column {
  display: flex;
  flex-direction: column;
}

/* Typography */
.uif7-heading {
  margin-bottom: 2rem;
  font-weight: bold;
  color: var(--uif7-primary);
}

h1.uif7-heading {
  font-size: 2.4rem;
  line-height: 1.2;
}

h2.uif7-heading {
  font-size: 2.2rem;
  line-height: 1.3;
}

h3.uif7-heading {
  font-size: 2rem;
  line-height: 1.4;
}

.uif7-text {
  margin-bottom: 1.5rem;
}

.uif7-text-center {
  text-align: center;
}

.uif7-text-primary {
  color: var(--uif7-primary);
}

.uif7-text-secondary {
  color: var(--uif7-secondary);
}

.uif7-bold {
  font-weight: bold;
}

/* Buttons */
.uif7-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  border-radius: 0.5rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-height: 4.4rem;
  font-size: 1.6rem;
}

.uif7-btn-primary {
  background-color: var(--uif7-primary);
  color: var(--uif7-bg);
}

.uif7-btn-primary:hover {
  background-color: var(--uif7-text);
  color: var(--uif7-bg);
}

.uif7-btn-secondary {
  background-color: var(--uif7-secondary);
  color: var(--uif7-dark);
}

.uif7-btn-secondary:hover {
  background-color: var(--uif7-text);
  color: var(--uif7-dark);
}

.uif7-btn-block {
  display: block;
  width: 100%;
}

/* Header */
.uif7-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--uif7-header-height);
  background-color: var(--uif7-dark);
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.uif7-header-inner {
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.uif7-logo {
  display: flex;
  align-items: center;
}

.uif7-logo img {
  height: 3.2rem;
  margin-right: 1rem;
}

.uif7-logo span {
  font-size: 2rem;
  font-weight: bold;
  color: var(--uif7-primary);
}

.uif7-header-nav {
  display: flex;
  align-items: center;
}

.uif7-auth-buttons {
  display: flex;
  gap: 1rem;
}

.uif7-auth-buttons .uif7-btn {
  padding: 0.8rem 1.6rem;
  font-size: 1.4rem;
}

.uif7-menu-toggle {
  width: 3.2rem;
  height: 3.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-left: 1rem;
  cursor: pointer;
  position: relative;
  z-index: 1001;
}

.uif7-menu-toggle span {
  display: block;
  width: 2.4rem;
  height: 0.3rem;
  background-color: var(--uif7-text);
  margin: 0.3rem 0;
  transition: all 0.3s ease;
}

.uif7-menu-toggle.uif7-active span:nth-child(1) {
  transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.uif7-menu-toggle.uif7-active span:nth-child(2) {
  opacity: 0;
}

.uif7-menu-toggle.uif7-active span:nth-child(3) {
  transform: rotate(-45deg) translate(0.5rem, -0.5rem);
}

.uif7-nav-menu {
  position: fixed;
  top: var(--uif7-header-height);
  right: -100%;
  width: 80%;
  max-width: 30rem;
  height: calc(100vh - var(--uif7-header-height));
  background-color: var(--uif7-dark);
  transition: right 0.3s ease;
  z-index: 999;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
}

.uif7-nav-menu.uif7-active {
  right: 0;
}

.uif7-nav-list {
  list-style: none;
  padding: 2rem 0;
}

.uif7-nav-item {
  padding: 0 2rem;
}

.uif7-nav-link {
  display: block;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--uif7-text);
  font-weight: bold;
  transition: color 0.3s ease;
}

.uif7-nav-link:hover {
  color: var(--uif7-primary);
}

.uif7-nav-submenu {
  padding-left: 2rem;
}

/* Main Content */
.uif7-main {
  padding-top: var(--uif7-header-height);
  padding-bottom: var(--uif7-footer-nav-height);
  min-height: 100vh;
}

/* Carousel */
.uif7-carousel {
  position: relative;
  height: 20rem;
  margin-bottom: 2rem;
  overflow: hidden;
  border-radius: 0.5rem;
}

.uif7-carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.uif7-carousel-slide:first-child {
  opacity: 1;
  z-index: 1;
}

.uif7-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.uif7-carousel-dots {
  position: absolute;
  bottom: 1rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  z-index: 2;
}

.uif7-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.uif7-dot.uif7-active {
  background-color: var(--uif7-primary);
}

/* Game Cards */
.uif7-games-section {
  margin-bottom: 3rem;
}

.uif7-games-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.uif7-games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.uif7-game-card {
  position: relative;
  cursor: pointer;
  transition: transform 0.3s ease;
  border-radius: 0.5rem;
  overflow: hidden;
  background-color: var(--uif7-dark);
}

.uif7-game-card:hover {
  transform: translateY(-0.5rem);
}

.uif7-game-image {
  aspect-ratio: 1/1;
  object-fit: cover;
}

.uif7-game-name {
  font-size: 1.2rem;
  font-weight: bold;
  text-align: center;
  padding: 0.5rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Info Sections */
.uif7-info-section {
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: 0.5rem;
  background-color: var(--uif7-dark);
}

.uif7-info-icon {
  font-size: 3.2rem;
  margin-bottom: 1.5rem;
  color: var(--uif7-primary);
}

.uif7-info-header {
  margin-bottom: 1.5rem;
  font-weight: bold;
  font-size: 2rem;
}

/* Footer */
.uif7-footer {
  background-color: var(--uif7-dark);
  padding: 3rem 0;
}

.uif7-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.uif7-footer-column {
  flex: 0 0 48%;
  margin-bottom: 2rem;
}

.uif7-footer-header {
  font-weight: bold;
  margin-bottom: 1.5rem;
  color: var(--uif7-primary);
}

.uif7-footer-list {
  list-style: none;
}

.uif7-footer-item {
  margin-bottom: 0.8rem;
}

.uif7-footer-link {
  color: var(--uif7-text);
  transition: color 0.3s ease;
}

.uif7-footer-link:hover {
  color: var(--uif7-primary);
}

.uif7-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.uif7-partner {
  width: 5rem;
  height: 3rem;
}

.uif7-partner img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.uif7-copyright {
  text-align: center;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Mobile Bottom Navigation */
.uif7-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: var(--uif7-footer-nav-height);
  background-color: var(--uif7-dark);
  z-index: 1000;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.uif7-bottom-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem;
  color: var(--uif7-text);
  transition: all 0.3s ease;
}

.uif7-bottom-nav-item.uif7-active {
  color: var(--uif7-primary);
}

.uif7-bottom-nav-icon {
  font-size: 2.4rem;
  margin-bottom: 0.4rem;
}

.uif7-bottom-nav-text {
  font-size: 1.2rem;
  line-height: 1;
}

/* Utility Classes */
.uif7-mt-1 { margin-top: 0.5rem; }
.uif7-mt-2 { margin-top: 1rem; }
.uif7-mt-3 { margin-top: 2rem; }
.uif7-mt-4 { margin-top: 3rem; }

.uif7-mb-1 { margin-bottom: 0.5rem; }
.uif7-mb-2 { margin-bottom: 1rem; }
.uif7-mb-3 { margin-bottom: 2rem; }
.uif7-mb-4 { margin-bottom: 3rem; }

.uif7-p-1 { padding: 0.5rem; }
.uif7-p-2 { padding: 1rem; }
.uif7-p-3 { padding: 2rem; }
.uif7-p-4 { padding: 3rem; }

.uif7-rounded { border-radius: 0.5rem; }

.uif7-shadow { box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15); }

.uif7-bg-dark { background-color: var(--uif7-dark); }

.uif7-w-100 { width: 100%; }
.uif7-h-100 { height: 100%; }

/* Promo link styles */
.uif7-promo-link {
  color: var(--uif7-primary);
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.uif7-promo-link:hover {
  color: var(--uif7-secondary);
  text-decoration: underline;
}

.uif7-promo-btn {
  display: inline-block;
  padding: 1.2rem 2.4rem;
  background-color: var(--uif7-primary);
  color: var(--uif7-dark);
  border-radius: 0.5rem;
  font-weight: bold;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  min-height: 4.4rem;
}

.uif7-promo-btn:hover {
  background-color: var(--uif7-secondary);
  transform: translateY(-2px);
}

.uif7-promo-btn-lg {
  font-size: 1.8rem;
  padding: 1.5rem 3rem;
}

/* Responsive styles */
@media (min-width: 768px) {
  .uif7-container {
    max-width: 720px;
  }
  
  h1.uif7-heading {
    font-size: 3.2rem;
  }
  
  h2.uif7-heading {
    font-size: 2.8rem;
  }
  
  h3.uif7-heading {
    font-size: 2.4rem;
  }
  
  .uif7-games-grid {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .uif7-carousel {
    height: 30rem;
  }
  
  .uif7-footer-column {
    flex: 0 0 24%;
  }
}

@media (min-width: 992px) {
  .uif7-container {
    max-width: 960px;
  }
  
  .uif7-games-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (min-width: 1200px) {
  .uif7-container {
    max-width: 1140px;
  }
  
  .uif7-games-grid {
    grid-template-columns: repeat(8, 1fr);
  }
} 