/* Pinoy Time Theme CSS - All classes prefixed with pg43- */
:root {
  --pg43-primary: #2C3E50;
  --pg43-secondary: #6495ED;
  --pg43-accent: #ADD8E6;
  --pg43-bg: #1a1d29;
  --pg43-text: #ffffff;
  --pg43-text-muted: #b0c4de;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 62.5%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1.6rem;
  line-height: 1.5;
  background: var(--pg43-bg);
  color: var(--pg43-text);
  max-width: 430px;
  margin: 0 auto;
}

/* Container & Layout */
.pg43-container {
  width: 100%;
  padding: 0 1.5rem;
  margin: 0 auto;
}

.pg43-wrapper {
  padding-bottom: 7rem;
}

/* Header */
.pg43-header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--pg43-primary), var(--pg43-secondary));
  padding: 1rem 1.5rem;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(100, 149, 237, 0.3);
}

.pg43-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pg43-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--pg43-text);
}

.pg43-logo {
  width: 28px;
  height: 28px;
  border-radius: 0.4rem;
}

.pg43-site-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--pg43-accent);
}

.pg43-header-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

/* Hamburger Menu */
.pg43-hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pg43-hamburger span {
  width: 2.4rem;
  height: 0.3rem;
  background: var(--pg43-accent);
  border-radius: 0.2rem;
  transition: all 0.3s ease;
}

/* Mobile Menu */
.pg43-mobile-menu {
  position: fixed;
  top: 6rem;
  right: -100%;
  width: 28rem;
  max-width: 85%;
  height: calc(100vh - 6rem);
  background: var(--pg43-primary);
  padding: 2rem;
  transition: right 0.3s ease;
  z-index: 999;
  overflow-y: auto;
}

.pg43-menu-active {
  right: 0;
}

.pg43-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 998;
}

.pg43-overlay-active {
  opacity: 1;
  visibility: visible;
}

.pg43-nav-list {
  list-style: none;
}

.pg43-nav-item {
  margin-bottom: 0.5rem;
}

.pg43-nav-link {
  display: block;
  padding: 1.2rem;
  color: var(--pg43-text);
  text-decoration: none;
  border-radius: 0.8rem;
  transition: all 0.3s ease;
}

.pg43-nav-link:hover {
  background: var(--pg43-secondary);
  color: var(--pg43-accent);
  transform: translateX(0.5rem);
}

/* Buttons */
.pg43-btn {
  display: inline-block;
  padding: 1rem 2rem;
  border: none;
  border-radius: 2.5rem;
  font-size: 1.4rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  text-align: center;
}

.pg43-btn-primary {
  background: linear-gradient(135deg, var(--pg43-secondary), var(--pg43-accent));
  color: var(--pg43-primary);
}

.pg43-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(100, 149, 237, 0.4);
}

.pg43-btn-secondary {
  background: linear-gradient(135deg, var(--pg43-accent), #ffffff);
  color: var(--pg43-primary);
}

.pg43-btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(173, 216, 230, 0.4);
}

.pg43-btn-sm {
  padding: 0.8rem 1.5rem;
  font-size: 1.3rem;
}

/* Carousel */
.pg43-carousel {
  position: relative;
  width: 100%;
  margin: 7rem 0 2rem 0;
  overflow: hidden;
  border-radius: 1.2rem;
}

.pg43-carousel-item {
  display: none;
  width: 100%;
}

.pg43-carousel-item.pg43-active {
  display: block;
}

.pg43-carousel-img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
}

.pg43-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.pg43-carousel-dot {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--pg43-text-muted);
  cursor: pointer;
  transition: all 0.3s ease;
}

.pg43-carousel-dot.pg43-active {
  background: var(--pg43-accent);
  transform: scale(1.2);
}

/* Sections */
.pg43-section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--pg43-accent);
  margin: 2rem 0 1.5rem 0;
  text-align: center;
}

.pg43-content-section {
  margin: 2rem 0;
  padding: 2rem;
  background: rgba(44, 62, 80, 0.3);
  border-radius: 1.2rem;
  border: 1px solid rgba(100, 149, 237, 0.2);
}

.pg43-content-title {
  font-size: 2rem;
  font-weight: 600;
  color: var(--pg43-secondary);
  margin-bottom: 1.5rem;
}

.pg43-content-text {
  font-size: 1.5rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  color: var(--pg43-text);
}

/* Game Grid */
.pg43-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.pg43-game-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 0.8rem;
  border-radius: 0.8rem;
  background: rgba(100, 149, 237, 0.1);
  transition: all 0.3s ease;
}

.pg43-game-item:hover {
  background: rgba(100, 149, 237, 0.3);
  transform: translateY(-3px);
}

.pg43-game-icon {
  width: 6.4rem;
  height: 6.4rem;
  border-radius: 0.8rem;
  object-fit: cover;
}

.pg43-game-name {
  font-size: 1.2rem;
  color: var(--pg43-text);
  text-align: center;
  margin-top: 0.5rem;
  line-height: 1.3;
}

/* Lists */
.pg43-list {
  list-style: none;
  margin: 1.5rem 0;
}

.pg43-list-item {
  padding: 1rem;
  margin-bottom: 0.8rem;
  background: rgba(100, 149, 237, 0.1);
  border-left: 3px solid var(--pg43-accent);
  border-radius: 0.5rem;
  font-size: 1.5rem;
}

/* Footer */
.pg43-footer {
  background: var(--pg43-primary);
  padding: 3rem 0 8rem 0;
  margin-top: 3rem;
}

.pg43-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.pg43-footer-link {
  color: var(--pg43-text);
  text-decoration: none;
  font-size: 1.4rem;
  transition: color 0.3s ease;
}

.pg43-footer-link:hover {
  color: var(--pg43-accent);
}

.pg43-partners {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.pg43-partner-icon {
  width: 4rem;
  height: auto;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.pg43-partner-icon:hover {
  opacity: 1;
}

.pg43-copyright {
  text-align: center;
  margin-top: 2rem;
  font-size: 1.3rem;
  color: var(--pg43-text-muted);
}

/* Bottom Navigation */
.pg43-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  background: linear-gradient(135deg, var(--pg43-primary), var(--pg43-secondary));
  box-shadow: 0 -2px 10px rgba(100, 149, 237, 0.3);
  z-index: 999;
}

.pg43-bottom-nav-inner {
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: 6rem;
}

.pg43-bottom-nav-item {
  flex: 1;
  text-align: center;
}

.pg43-bottom-nav-item a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--pg43-text-muted);
  text-decoration: none;
  padding: 0.5rem;
  transition: all 0.3s ease;
  min-height: 44px;
}

.pg43-bottom-nav-item a:hover,
.pg43-bottom-nav-item a.pg43-active {
  color: var(--pg43-accent);
  transform: scale(1.1);
}

.pg43-bottom-nav-item i {
  font-size: 2.4rem;
  margin-bottom: 0.3rem;
}

.pg43-bottom-nav-item span {
  font-size: 1.1rem;
}

/* Animations */
.pg43-animate {
  opacity: 0;
  transform: translateY(2rem);
  transition: all 0.6s ease;
}

.pg43-animate.pg43-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Utility Classes */
.pg43-text-center {
  text-align: center;
}

.pg43-mt-2 {
  margin-top: 2rem;
}

.pg43-mb-2 {
  margin-bottom: 2rem;
}

/* Table */
.pg43-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.pg43-table th,
.pg43-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(100, 149, 237, 0.2);
}

.pg43-table th {
  background: rgba(100, 149, 237, 0.2);
  color: var(--pg43-accent);
  font-weight: 600;
}

.pg43-table td {
  color: var(--pg43-text);
}

/* Responsive */
@media (max-width: 375px) {
  html {
    font-size: 58%;
  }

  .pg43-game-grid {
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  }
}
