@import url('https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&display=swap');

@font-face {
    font-family: 'good_timesregular';
    src: url('fonts/good_times_rg-webfont.woff2') format('woff2'),
         url('fonts/good_times_rg-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

body {
  background: #0b0b0b;
  color: #fff;
}

/* BUTTONS */
.btn {
  padding: 12px 24px;
  border-radius: 0px;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.primary {
  background: #FFF569;
  color: #101010;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 500;
  max-width: fit-content;
  text-decoration: none;
}

.secondary {
  border-radius: 30px;
  background:#FFF569;
  box-shadow: 0 4px 20px 0 rgba(255, 245, 105, 0.60);
  color: #000;
  font-family: 'good_timesregular';
  font-size: 18px;
  font-weight: 400;
  text-decoration: none;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #262626;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

.logo span {
  color: #f5e94c;
}

/* HERO */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  padding: 0px 40px 95px 40px;
  gap: 40px;
}
.down-hero .hero {
    padding: 0px 40px 0px 40px;
    background: url(img/playbackground.png) no-repeat;
    background-position: center bottom;
    min-height: calc(100vh - 110px);
}
.down-hero .header {
  justify-content: center;
}
.dwbld-btns{
  display: flex;
  gap: 20px;
}
.down-hero  .hero-image img {
  max-width: 80%;
  height: 100%;
  object-fit: contain;
}

.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-sub {
  margin-bottom: -85px;
}

.hero h1 {
  font-size:65px;
  margin-bottom: 20px;
  font-family: 'good_timesregular';
}

.tagline {
  margin-bottom: 0px;
  font-family: "Figtree", sans-serif;
  color: #FFF569;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* LEADERBOARD */
.leaderboard {
  padding: 80px 40px;
  /*background: radial-gradient(circle, #111, #000);*/
  background: url('img/leaderboard-bg.png') no-repeat;
}

.leaderboard h2 {
  text-align: center;
  margin-bottom:55px;
  color: #FFF;
  font-family: 'good_timesregular';
  font-size: 50px;
  font-weight: 400;
  text-transform: uppercase;
}

/* PODIUM */
.podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 30px;
  margin-bottom: 60px;
  margin-top: 100px;
  background: url('img/podium.svg') no-repeat;
  background-position: center bottom;
  padding-bottom: 190px;
}

.podium-item {
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  position: relative;
}
.podium-item img.rnk-bdge{
  position: absolute;
  top: 110px;
  left: 58px;
  height: 36px;
  width: 36px;
  margin: 0;
  border: none !important;
}
.podium-item img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  margin-bottom: 10px;
}
.podium-item span {
  font-size: 18px;
  display: block;
  margin-top: 10px;
  color: #fff;
  font-weight: 500;
}

.podium-item small {
  font-size: 13px;
  display: block;
  margin-top: 5px;
  color: #fff;
  font-weight: 300;
}
.podium-item.first img{
  border:3px solid #FFF569;
}

.first {
  transform: translateY(-65px);
}
.third {
  transform: translateY(55px);
}

.rank-data{
  display: flex;
  justify-content: space-between;
  border-radius: 12px;
  border: 1px solid #404040;
  background: #262626;
  padding: 6px 16px;
  align-items: center;
  margin-bottom: 8px;
}
.rank-data-heding{
  display: flex;
  justify-content: space-between;
  padding: 6px 16px;
  align-items: center;
  margin-bottom: 8px;
}
.rank-data p{
  width: 25%;
  font-size: 13px;
  color: #fff;
  font-weight: 400;
}
.rank-data-heding p{
  width: 25%;
  font-size: 13px;
  color: #fff;
  font-weight: 400;
}
.rank-data p span{
  font-size: 16px;
  color: #fff;
  font-weight: 500;
  width: 32px;
  height: 32px;
  background: #1F77FF;
  border-radius: 50%;
  padding: 8px;
  display: block;
  text-align: center;
}
.rank-data p img{
  vertical-align: middle;
}

/* TABLE */
.table-wrapper {
  overflow-x: auto;
  max-width: 1165px;
  margin: 0 auto;
}

/* FOOTER */
.footer {  
  background: #111;
}
.container{
    margin: 0 auto;
    width: 1165px;
}
.footer .wraper{
    display: flex;
    justify-content: space-between;
    padding:100px 0 50px;
    gap: 40px;    
    margin: 0 auto;
}

.footer .footer-left p{
  color: #B4BBC5;
  font-family: Figtree;
  font-size: 20px;
  font-weight: 300;
  line-height: 30px;
}
.footer-left{
  width: 25%;
}
.footer-links h4{
  display: block;
  color: #fff;
  text-decoration: none;
  margin-top: 8px;
  font-size: 20px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 25px;
}

.footer a {
  display: block;
  color: #fff;
  text-decoration: none;
  margin-bottom: 15px;
  font-size: 15px;
  font-weight: lighter;
}
.social-links{
  display: flex;
}
.footer a:hover {
  color: #f5e94c;
}
.copyrght{
  border-top: 1px solid #676767;
  font-size: 18px;
  color: #fff;
  text-align: center;
  padding: 25px 0;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 25px;
}

.page-btn, .nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #2b2b2b;
  border: 1px solid #3a3a3a;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

/* Active page */
.page-btn.active {
  border: 2px solid #2f80ff;
  background: #151515;
  color: #fff;
}

/* Dots */
.page-btn.dots {
  cursor: default;
}

/* Hover */
.page-btn:not(.active):not(.dots):hover,
.nav-btn:hover {
  background: #3a3a3a;
}

/* Arrow buttons */
.nav-btn {
  font-size: 18px;
}

/* ==========================================
   USER PROFILE CARD STYLING
   - Profile container with centered card layout
   - Avatar, stats, and achievements sections
   - Responsive design for mobile and desktop
   ========================================== */

/* User profile container - Centers the card */
.user-profile {
    max-width: 700px;
    margin: 0 auto;
}
.user-profile-img {
    position: relative;
    width: max-content;
    margin: 0 auto;
}
 .rnk-bdge {
     background-image: url(img/badgep-img.svg);
   width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: 0;
    right: 40px;
}

.rnk-bdge .rnk-bdge-icn {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    line-height: 22px;
    margin-right: 0;
}
.rnk-bdge .rnk-bdge-icn img {
    width: 10px;
    height: 10px;
    border-radius: 0;
    margin-bottom: 0;
    border: none;
}
/* Main profile card wrapper */
 

/* Profile header section - Contains avatar, name, and handle */
.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

/* Profile avatar - Circular image with border */
.profile-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #FFF569;
  margin-bottom: 20px;
}

/* Profile name heading */
.profile-name {
  font-size: 32px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  font-family: 'good_timesregular';
}

/* Profile handle/username */
.profile-handle {
  font-size: 14px;
  color: #B4BBC5;
  margin-top: 5px;
  font-weight: 400;
}

/* Profile stats section - Shows three key metrics */
.profile-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 31px 0px 40px;
}

/* Individual stat item - Each stat with number and label */
.stat-item {
    border-radius: 20px;
    border: 1px solid #707070;
    background: #262626;
    display: flex;
    padding: 12px;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1 0 0;
    max-width: 123px;
}

/* Stat number - Large bold text */
.stat-number {
    color: #FFF;
    text-align: center; 
    font-size: 24px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px;
}

/* Stat label - Small descriptive text */
.stat-label {
    text-transform: capitalize;
    color: #B5B5B5;
    text-align: center; 
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
}

/* Achievements section header */
.achievements-section {
  text-align: center;
  margin-top: 30px;
}

/* Achievements title */
.achievements-title {
    margin-bottom:35px;   
    color: #FFF;
    text-align: center;
    font-feature-settings: 'dlig' on;
    font-family: Figtree;
    font-size: 24px;
    font-style: normal;
    font-weight: 500;
    line-height: 21px;
}

/* Achievements grid - 4 columns layout for badges */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

/* Individual achievement badge container */
.achievement-badge {
  display: flex;
  flex-direction: column;
  align-items: center; 
  transition: all 0.3s ease;
}
.achievement-badge img {
    height: 130px;
}
.achievement-info {
    border-radius: 15px;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(112, 112, 112);
    border-image: initial;
    background: rgb(38, 38, 38);
    padding: 15px;
    margin-top: 18px;
}
/* Achievement badge hover effect */
.achievement-badge:hover {
  border-color: #FFF569;
  transform: translateY(-5px);
}

/* Badge icon container with colored backgrounds */
.badge-icon {
  font-size: 40px;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 10px;
}
.user-profile .podium-item small {
    color: #7D7D7D;
    text-align: center;
    font-feature-settings: 'dlig' on;
    font-family: Figtree;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
    line-height: 24px;
}
.user-profile  .podium-item span {
    color: #FFF;
    text-align: center;
    font-feature-settings: 'dlig' on;
    font-family: Figtree;
    font-size: 25px;
    font-style: normal;
    font-weight: 600;
    line-height: 28px;
}
/* Badge icon colors for different achievement types */
.badge-icon.drift-master {
  background: linear-gradient(135deg, #FF9500 0%, #FFB84D 100%);
}

.badge-icon.angle-king {
  background: linear-gradient(135deg, #9C27B0 0%, #CE93D8 100%);
}

.badge-icon.drift-sustainer {
  background: linear-gradient(135deg, #FDD835 0%, #FFEB3B 100%);
}

.badge-icon.speed-drifter {
  background: linear-gradient(135deg, #00BCD4 0%, #4DD0E1 100%);
}

/* Badge name - Achievement title */
.badge-name {
    margin: 0 0 5px 0;
    color: #FFF;
    text-align: center;
    font-family: Figtree;
    font-size: 17px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

/* Badge description - Achievement details */
.badge-desc {
    color: #B8B8B8;
    text-align: center;
    font-family: Figtree;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.ratings-tabl {
    display: inline-block;
    width: 25%;
   
}
.inner-rating-shape{
  width: 80px;
   border-radius: 10px;
    height: 8px;
}
/* ==========================================
   MOBILE RESPONSIVE DESIGN (Max-width: 767px)
   ========================================== */
@media (max-width: 767px) {
  /* Adjust user profile card padding and width for mobile */
  .profile-card {
    padding: 25px 20px;
    border-radius: 15px;
  }
.achievement-info { 
    width: 100%;
}
  /* Reduce avatar size on mobile */
  .profile-avatar {
    width: 90px;
    height: 90px;
    border-width: 3px;
  }

  /* Reduce profile name font size on mobile */
  .profile-name {
    font-size: 24px;
  }

  /* Adjust stats layout for mobile - stack vertically if needed */
  .profile-stats {
    padding: 15px;
    gap: 10px;
  }

  /* Reduce stat numbers and labels on mobile */
  .stat-number {
    font-size: 20px;
  }

  .stat-label {
    font-size: 11px;
  }

  /* Achievements grid - 2 columns on mobile */
  .achievements-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  /* Reduce achievement badge padding on mobile */
  .achievement-badge {
    padding: 12px;
  }

  /* Smaller badge icon on mobile */
  .badge-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
  }

  /* Smaller badge name and description text */
  .badge-name {
    font-size: 12px;
  }

  .badge-desc {
    font-size: 10px;
  }

  /* Adjust user profile container min-height on mobile */
  .user-profile {
    min-height: auto;
    padding: 20px 0;
  }
}

/* ==========================================
   TABLET RESPONSIVE DESIGN (Max-width: 900px)
   ========================================== */
@media (max-width: 900px) {
  /* Slightly reduced card padding on tablet */
  .profile-card {
    padding: 30px 25px;
    max-width: 100%;
  }

  /* Reduce avatar size slightly on tablet */
  .profile-avatar {
    width: 100px;
    height: 100px;
  }

  /* Reduce profile name on tablet */
  .profile-name {
    font-size: 28px;
  }

  /* Achievements grid - 2 columns on tablet */
  .achievements-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

/* RESPONSIVE */
@media (max-width: 1500px) {
.down-hero  .hero-image img {
  max-width: 100%;
}
}

@media (max-width: 1200px) {
  .container{
    margin: 0 auto;
    width: auto;
    max-width: 100%;
}
.down-hero .hero .hero-image{
  display: none;
}
.down-hero .hero {
  display: flex;
  justify-content: center;
}
.down-hero .tagline, .down-hero .hero h1{
  text-align: center;
}
.dwbld-btns {
  justify-content: center;
}

}
@media (max-width: 900px) {
  
  .hero {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 36px;
  }

  /*.podium {
    flex-direction: column;
    align-items: center;
  }*/

  .footer {
    flex-direction: column;
  }
  .hero-content {
    text-align: center;
}
.tagline, .hero h1{
  text-align: left;
}

}
@media (max-width: 767px) {
  .hero {
  padding: 0px 20px 55px 20px;
}
.footer .wraper {
  display: block;
  padding: 50px 0 30px;
  text-align: center;
}
.leaderboard h2 {
  font-size: 30px;
}
.hero-sub {
  width: 80%;
  margin-top: 50px;
  margin-bottom: -55px;
}
.hero-sub img{
  max-width: 100%;
}
.podium-item img {
  width: 80px;
  height: 80px;
}
.podium-item {
  padding: 10px;
}
.podium-item span {
  font-size: 15px;
}
.podium-item img.rnk-bdge {
  top: 78px;
  left: 40px;
  height: 30px;
  width: 30px;
}
.podium {
  padding-bottom:0px;
  background: none;
}
.third {
  transform: translateY(25px);
}
.leaderboard {
  padding: 40px 20px;
}
.footer-left {
  width: auto;
}
.footer-links{
  margin-top: 30px;
}
.social-links {
  justify-content: center;
}
.copyrght {
  font-size: 14px;
}
.header {
  justify-content: center;
}
.secondary {
  display: none;
}
.footer .footer-left p {
  font-size: 18px;
  line-height: 28px;
}
.dwbld-btns img{
  max-width: 100%;
}
.rank-data p, .rank-data-heding p {
width: auto;
}
.rank-data p:nth-child(2){
  width: 50%;
}
.rank-data-heding p:nth-child(2){
  width: 50%;
}

}