/* Unique Layout Design - Innovative Gaming Portal Layout */

/* Reset container untuk layout baru */
.unique-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* Force visibility for sidebar elements */
#floatingSidebar {
  display: block !important;
  visibility: visible !important;
}

#sidebarToggle {
  display: flex !important;
  visibility: visible !important;
}

/* Floating Curved Sidebar */
.floating-sidebar {
  position: fixed;
  left: -320px;
  top: 80px;
  width: 320px;
  height: calc(100vh - 100px);
  background: 
    linear-gradient(135deg, 
      rgba(0, 120, 212, 0.15) 0%, 
      rgba(16, 124, 16, 0.08) 50%, 
      rgba(135, 100, 184, 0.12) 100%),
    rgba(20, 20, 25, 0.98);
  backdrop-filter: blur(25px);
  border-radius: 0 40px 40px 0;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  z-index: 1001;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 50px rgba(0, 120, 212, 0.1);
}

.floating-sidebar.active {
  left: 0;
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 0 80px rgba(0, 120, 212, 0.2);
}

.floating-sidebar-toggle {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 100px;
  background: linear-gradient(135deg, #0078d4, #005a9e);
  border-radius: 0 25px 25px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1002;
  transition: all 0.3s ease;
  box-shadow: 
    0 8px 20px rgba(0, 120, 212, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.floating-sidebar-toggle:hover {
  width: 60px;
  box-shadow: 0 12px 30px rgba(0, 120, 212, 0.6);
  transform: translateY(-50%) scale(1.05);
}

.floating-sidebar-toggle:active {
  transform: translateY(-50%) scale(0.95);
}

.floating-sidebar-toggle i {
  color: white;
  font-size: 18px;
  transition: transform 0.3s ease;
}

.floating-sidebar.active ~ .floating-sidebar-toggle {
  left: 340px;
}

.floating-sidebar.active ~ .floating-sidebar-toggle i {
  transform: rotate(180deg);
}

/* Header dengan Diagonal Design */
.diagonal-header {
  background: 
    linear-gradient(135deg, 
      rgba(30, 30, 30, 0.98) 0%, 
      rgba(45, 45, 48, 0.95) 100%);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  min-height: 120px;
  display: flex;
  align-items: center;
}

.diagonal-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    linear-gradient(45deg, transparent 70%, rgba(0, 120, 212, 0.1) 100%),
    linear-gradient(-45deg, transparent 70%, rgba(16, 124, 16, 0.1) 100%);
  z-index: 1;
}

.diagonal-header-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-section img {
  height: 50px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.3);
}

.brand-text {
  font-size: 24px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Revolutionary Search Design */
.search-revolution {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.search-hexagon {
  position: relative;
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 30px;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-hexagon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 120, 212, 0.2), transparent);
  transition: left 0.5s ease;
  animation: searchGlow 3s ease-in-out infinite;
}

@keyframes searchGlow {
  0%, 100% { left: -100%; }
  50% { left: 100%; }
}

.search-hexagon:focus-within {
  border-color: var(--ms-blue-light);
  transform: scale(1.02);
  box-shadow: 
    0 0 20px rgba(0, 120, 212, 0.3),
    0 8px 30px rgba(0, 0, 0, 0.2);
}

.search-hexagon input {
  background: transparent;
  border: none;
  outline: none;
  color: white;
  font-size: 16px;
  flex: 1;
  font-weight: 500;
}

.search-hexagon input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-btn-hex {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn-hex:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 120, 212, 0.4);
}

/* Asymmetric Hero Section */
.hero-asymmetric {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  margin: 40px 0;
  min-height: 500px;
  position: relative;
}

.hero-main-content {
  background: 
    radial-gradient(circle at 30% 20%, rgba(0, 120, 212, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 80%, rgba(16, 124, 16, 0.1) 0%, transparent 50%),
    linear-gradient(135deg, rgba(30, 30, 30, 0.9), rgba(45, 45, 48, 0.7));
  backdrop-filter: blur(15px);
  border-radius: 30px;
  padding: 40px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero-main-content::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(0, 120, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(-20px, -20px) rotate(180deg); }
}

.hero-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-widget {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 25px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero-widget::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-primary);
  transition: width 0.3s ease;
}

.hero-widget:hover::before {
  width: 100%;
  opacity: 0.1;
}

.hero-widget:hover {
  transform: translateX(8px);
  border-color: var(--ms-blue-light);
}

/* Masonry Game Grid */
.masonry-container {
  columns: 2;
  column-gap: 20px;
  margin: 40px 0;
}

@media (min-width: 768px) {
  .masonry-container {
    columns: 3;
  }
}

@media (min-width: 1024px) {
  .masonry-container {
    columns: 4;
  }
}

@media (min-width: 1280px) {
  .masonry-container {
    columns: 5;
  }
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 20px;
  position: relative;
}

.game-card-masonry {
  background: var(--gradient-card);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.game-card-masonry:hover {
  transform: translateY(-8px) rotate(1deg);
  border-color: var(--ms-blue-light);
  box-shadow: 
    0 20px 40px rgba(0, 120, 212, 0.2),
    0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Randomize heights for masonry effect */
.masonry-item:nth-child(3n) .game-card-masonry {
  min-height: 280px;
}

.masonry-item:nth-child(4n) .game-card-masonry {
  min-height: 320px;
}

.masonry-item:nth-child(5n) .game-card-masonry {
  min-height: 250px;
}

/* Hexagonal Category Cards */
.hex-categories {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin: 60px 0;
  position: relative;
}

.hex-category {
  width: 120px;
  height: 140px;
  position: relative;
  margin: 30px 0;
}

.hex-shape {
  width: 100%;
  height: 100%;
  background: var(--gradient-primary);
  transform: rotate(30deg);
  border-radius: 20px;
  position: relative;
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.hex-shape::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: hexShimmer 3s ease-in-out infinite;
}

@keyframes hexShimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

.hex-category:hover .hex-shape {
  transform: rotate(30deg) scale(1.1);
  box-shadow: 0 15px 30px rgba(0, 120, 212, 0.4);
}

.hex-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-30deg);
  text-align: center;
  color: white;
  z-index: 2;
}

.hex-content i {
  font-size: 28px;
  margin-bottom: 8px;
  display: block;
}

.hex-content span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Diagonal Section Dividers */
.diagonal-section {
  position: relative;
  margin: 80px 0;
  transform: skewY(-2deg);
  background: linear-gradient(135deg, rgba(0, 120, 212, 0.05), rgba(16, 124, 16, 0.05));
  padding: 80px 0;
}

.diagonal-section-content {
  transform: skewY(2deg);
}

.diagonal-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-primary);
}

.diagonal-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-xbox);
}

/* Floating Action Buttons */
.fab-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fab {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 120, 212, 0.3);
  position: relative;
  overflow: hidden;
}

.fab::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.3s ease;
}

.fab:hover::before {
  transform: scale(1);
}

.fab:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 30px rgba(0, 120, 212, 0.5);
}

.fab i {
  font-size: 20px;
  z-index: 2;
}

/* Stats Dashboard */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-primary);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: var(--ms-blue-light);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Sidebar Link Styles */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.sidebar-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, #0078d4, #005a9e);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.sidebar-link:hover {
  background: rgba(0, 120, 212, 0.1);
  color: white;
  transform: translateX(8px);
}

.sidebar-link:hover::before {
  transform: scaleY(1);
}

.sidebar-link.active {
  background: rgba(0, 120, 212, 0.2);
  color: white;
  border: 1px solid rgba(0, 120, 212, 0.3);
}

.sidebar-link.active::before {
  transform: scaleY(1);
}

.sidebar-link i {
  width: 20px;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .hero-asymmetric {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .floating-sidebar {
    width: 280px;
  }
  
  .floating-sidebar-toggle {
    width: 45px;
    height: 80px;
  }
  
  .hex-categories {
    gap: 20px;
  }
  
  .hex-category {
    width: 100px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .diagonal-header-content {
    flex-direction: column;
    text-align: center;
  }
  
  .search-revolution {
    max-width: 100%;
  }
  
  .masonry-container {
    columns: 2;
  }
  
  .hex-categories {
    flex-direction: column;
    align-items: center;
  }
  
  .fab-container {
    bottom: 20px;
    right: 20px;
  }
  
  .fab {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 640px) {
  .masonry-container {
    columns: 1;
  }
  
  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .diagonal-section {
    transform: none;
    margin: 40px 0;
    padding: 40px 0;
  }
  
  .diagonal-section-content {
    transform: none;
  }
} 