/* General Reset */
body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', Arial, sans-serif;
  background: #f5f5f5;
  color: #333;
}

/* Section 1 Container */
.section-1 {
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
  padding-bottom: 20px;
}

/* Video/Image */
.media-container {
  position: relative;
  width: 100%;
  height: 340px; /* Dito ilagay ang height, hindi sa .media */
  overflow: hidden;
}

@media (max-width: 768px) {
    .media-container {
        height: 245px;
    }
}

.media {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Para hindi ma-stretch ang image */
  display: block;
  z-index: 0; /* Ilalim ng gradient overlay */
}

.media-container::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60%;
  background: linear-gradient(
  to top,
  white,
  white 55%,          /* Pure white hanggang 60% height */
  rgba(255,255,255,0) 90% /* Full transparent sa 90% */
);
  z-index: 1; /* Gitna (between image and text) */
}

/* Company Name */
.company-name {
  position: absolute;
  bottom: 75px;
  left: 20px;
  color: rgb(4, 0, 255);
  font-size: 12px;
  z-index: 2; /* Top layer */
  margin: 0;
}

.app-name {
  position: absolute;
  bottom: 30px;
  left: 20px;
  right: 20px; /* Add right spacing for the logo */
  color: rgb(0, 0, 0);
  font-size: 32px;
  font-weight: bold;
  z-index: 2; /* Top layer */
  margin: 0;
  display: flex; /* Enable Flexbox */
  align-items: center; /* Vertically center */
  gap:10px;
}

.tag-logo {
  width: 25px; /* Adjust logo size */
  height: 25px;
  object-fit: contain;
}

.info-play {
  position: absolute;
    bottom: 10px;
    left: 20px;
    display: flex;
    align-items: center;
    font-family: 'Roboto', Arial, sans-serif;
    font-size: 10px;
    gap:2px;
    color: #5f6368;
    z-index: 2;
    margin: 0;
}

.material-icons {
  color: #34a853; /* Google green */
  font-size: 14px !important;
}

.section-1-inside{
    padding: 0px 20px 0px 20px;
}
/* Scrollable Details */
.scrollable-details {
  margin: 16px 0;
  overflow-x: auto;       /* Enable horizontal scroll */
  white-space: nowrap;    /* Prevent line breaks */
  display: flex;          /* Flex container */
  align-items: stretch;   /* Key: Equal height */
  gap: 18px;              /* Spacing between items */
  padding: 8px 0;
}

.scrollable-details::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.details-scroll {
  display: inline-flex;
  gap: 30px;
  padding: 8px 0;
}

.details-scroll > * {
  position: relative; /* Required for pseudo-element positioning */
}

.details-scroll > *::after {
  content: '';
  position: absolute;
  top: 0;
  right: -15px; /* Half of the gap (30px / 2) */
  height: 80%;
  width: 1px;
  background-color: #ccc; /* Divider color */
}

.details-scroll > *:last-child::after {
  display: none; /* Remove divider from the last item */
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-icon {
  width: 16px;
  height: 16px;
}

/* Install Button */
.install-button {
  width: 100%;
  padding: 12px;
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
}

.install-button:hover {
  background: #1557b0;
}

/* Mobile view (screen width <= 768px) */
@media (max-width: 768px) {
    .install-button {
        padding: 8px;
    }
}

/* Rating Info */
.rating-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 4px;
}

.star-icon {
  color: #FF9800; /* Orange color for star */
  font-size: 1rem;
}

.rating-value {
  font-size: 18px;
  color: #202124;
  font-weight: 500;
}

.review-info {
  display: flex;
  align-items: center;
  gap: 4px;
}

.review-count {
  font-size: 14px;
  color: #5f6368;
}

.info-icon {
  font-size: 12px; /* Match the font size of the text */
  color: #5f6368;
  cursor: pointer;
  transition: color 0.2s;
}

.info-icon:hover {
  color: #1a73e8;
}

/* Fixed App Logo */
.app-logo {
  width: 70px;
  height: 70px;
  margin-right: 16px;
  display: inline-block;
  vertical-align: middle;
}

/* Mobile view (screen width <= 768px) */
@media (max-width: 768px) {
    .app-logo {
        width: 60px;  /* Smaller size for mobile */
        height: 60px;
    }
}

/* Modified Scrollable Details */
.scrollable-container {
  display: flex;
  align-items: center;
  margin: -10px 0 16px 0;
}

/* Mobile view (screen width <= 768px) */
@media (max-width: 768px) {
    .scrollable-container {
        margin: -15px 0 -5px 0;
    }
}

/* Container for the icon and text */
.icon-text-container {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.detail-icon {
  width: 20px;
  height: 20px;
  display: block;
}

.detail-text {
  font-size: 14px;
  color: #5f6368;
}

/* Font Awesome Icon Styling */
.detail-icon.fas {
  font-size: 20px; /* Match your icon size */
  color: #000000; /* Match your text color */
  display: block; /* Ensures proper spacing */
}

.icon-text-container {
  display: flex;
  flex-direction: column; /* Stack items vertically */
  gap: 4px; /* Space between icon and text */
}

/*for image carousel*/
.section-2 {
  margin: 16px 0;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  padding-bottom: 8px; /* Prevents scrollbar "peeking" */
}

.section-2::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.section-2 img {
  display: inline-block;
  width: auto; /* Fixed width */
  height: auto; /* Auto height to maintain aspect ratio */
  margin-right: 6px;
  vertical-align: top; /* Fixes tiny gap below images */
  object-fit: contain; /* Ensures images fit nicely */
  max-height: 330px; /* Limits the maximum height */
  border-radius: 8px;
}

.section-2 img:last-child {
  margin-right: 0; /* Remove margin for last image */
}

/*about the game*/
/* Google Play Inspired Styles */
.about-game-section {
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  background: #fff;
  border-radius: 12px;
  padding: 0 0 16px 0;
}


.section-title {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin: 0;
}

.expand-button {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.expand-button:hover {
  background: rgba(60,64,67,0.08);
}

.expand-icon {
  width: 24px;
  height: 24px;
  fill: #5f6368;
}

.game-description {
  color: #3c4043;
  line-height: 1.5;
  font-size: 14px;
}

.game-description p {
  margin: 12px 0;
}

.feature-list {
  padding-left: 24px;
  margin: 16px 0;
}

.feature-item {
  margin-bottom: 8px;
  position: relative;
  padding-left: 8px;
}

.game-meta {
  display: flex;
  margin: 16px 0;
}

.update-info {
  display: flex;
  gap: 8px;
  font-size: 0.8125rem;
  color: #5f6368;
}

.meta-label {
  font-weight: 500;
}

.game-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.rank-tag {
  background: #e8f0fe;
  color: #1a73e8;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.category-tag {
  background: #f1f3f4;
  color: #3c4043;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8125rem;
}



/*data sefety*/

/* Section Styles */
.data-safety-section {
  font-family: 'Google Sans', Roboto, Arial, sans-serif;
  background: #fff;
  border-radius: 12px;
  padding: 18px 18px 18px;
  border: solid 1px #d1d0d0;
  margin-bottom: 25px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.expand-button {
  background: none;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.expand-button:hover {
  background: rgba(60,64,67,0.08);
}

.expand-icon {
  width: 24px;
  height: 24px;
  fill: #5f6368;
}

.safety-description {
  color: #3c4043;
  line-height: 1.5;
  font-size: 14px;
  margin-bottom: 16px;
}

.safety-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.safety-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.item-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.item-content {
  flex-grow: 1;
}

.item-content p {
  color: #3c4043;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.learn-more {
  color: #1a73e8;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 4px;
  display: inline-block;
}

.learn-more:hover {
  text-decoration: underline;
}

/*Review Section*/

/* Main Container */
.comments {
  font-family: Arial, sans-serif;
  max-width: 600px;
  padding: 0px 0 20px 0;
  background: #f9f9f9;
  border-radius: 10px;
}

/* Title Section */
.comments-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 5px;
}

.comments-tips {
  font-size: 14px;
  color: #666;
  margin-bottom: 20px;
}

/* Device Toggle */
.device-toggle {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.device-option {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: 20px;
  background: #e0e0e0;
  cursor: pointer;
}

.device-option.active {
  background: #4CAF50;
  color: white;
}

/* Rating Summary */
/* Comments Section */
.comments {
  background: #fff;
  border-radius: 8px;
  margin-bottom: 16px;
}

.comments__title {
  font-size: 18px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 4px;
}

.comments__tips {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 16px;
  margin-top: 16px;
  line-height: 1.5;
}

/* Device Toggle */
.comments__type {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.comments__type-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #f1f3f4;
  font-size: 12px;
  cursor: pointer;
}

.comments__type-active {
  background: #e8f0fe;
  color: #1a73e8;
  font-weight: 500;
}

.comments__type-item img {
  width: 15px;
  height: 15px;
}

/* Rating Summary */
.comments__scoring {
  display: flex;
  gap: 24px;
  margin-bottom: 20px;
}

.comments__scoring-num {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
}

.comments__scoring-points {
  font-size: 32px;
  font-weight: 500;
  color: #202124;
}

.comments__scoring-star {
  display: flex;
  margin: 4px 0;
}

.comments__scoring-star img.star {
  width: 14px;
  height: 14px;
  margin-right: 2px;
}

.comments__scoring-people {
  font-size: 12px;
  color: #5f6368;
}

.comments__scoring-content {
  flex-grow: 1;
}

.comments__scoring-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #202124;
}

.progress {
  flex-grow: 1;
  height: 8px;
  background: #f1f3f4;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: #1a73e8;
  border-radius: 4px;
}

/* Comments List */
.comments__list-item {
  background: #fff;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
  margin-top:16px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.divider {
  border: 0;
  height: 1px;
  background: #d1d0d0;
  margin: -10px 0 15px 0; /* Space above and below */
}

.comments__list-header {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
}

.comments__list-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 12px;
}

.comments__list-name {
  font-weight: 500;
  flex-grow: 1;
}

.comments__list-icon {
  width: auto;
  height: 16px;
  cursor: pointer;
}

.comments__list-stars {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: #028760;
  font-size: 14px;
}

.comments__list-stars span {
  color: #5f6368;
}

.comments__list-detail {
  color: #3c4043;
  font-size: 14px;
  line-height: 1.5;
}

/*for share section*/
.share-row {
  display: flex;
  justify-content: space-evenly;
  gap: 20px; /* Space between items */
  align-items: center;
  margin-bottom:20px;
  margin-top:0px;
}

.share-row__item {
  display: flex;
  align-items: center;
  gap: 8px; /* Space between icon and text */
  cursor: pointer;
}

.share-icon {
  width: 17px;
  height: 20px;
}

.share-text {
  font-size: 14px;
  color: rgb(0, 161, 115);
  font-weight: 500;
}