/* =========================
   MOTOCAL – DRIVERS ONLY
========================= */

/* Grid */
.motogp-drivers-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

@media (max-width: 1024px){
  .motogp-drivers-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 640px){
  .motogp-drivers-grid{
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

/* Card polish */
.motogp-driver-card{
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f6f6f6 100%);
  border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.08), inset 0 1px 0 rgba(255,255,255,.8);
  transition:
    transform .35s cubic-bezier(.22,.61,.36,1),
    box-shadow .35s ease,
    border-color .35s ease;
}

.motogp-driver-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.9);
  border-color: rgba(177,18,23,.35);
}

/* Driver number badge */
.motogp-driver-card .driver-number{
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: linear-gradient(180deg, #c4161c 0%, #a01015 50%, #7d0b0e 100%);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  padding: 6px 12px;
  border-radius: 10px;
  line-height: 1;
  box-shadow: 0 6px 18px rgba(177,18,23,.45), inset 0 1px 0 rgba(255,255,255,.35);
  letter-spacing: .5px;
  transition: transform .25s ease;
}

.motogp-driver-card:hover .driver-number{
  transform: scale(1.05);
}

/* Text hover */
.motogp-driver-card:hover .gp-name{
  color: #b11217;
}

.motogp-driver-card:hover .motocal-track{
  color: #111;
}

/* Calendar kalıntı pseudo’su varsa bastır */
.motogp-driver-card .motocal-content::before{
  content: none !important;
  display: none !important;
}

/* =========================
   DRIVERS PAGE – TOP SPACING FIX
========================= */

.page-template-page-motogp-suruculeri .motocal-inner,
.page-template-page-moto2-suruculeri .motocal-inner,
.page-template-page-moto3-suruculeri .motocal-inner,
.page-template-page-worldsbk-suruculeri .motocal-inner,
.page-template-page-worldssp-suruculeri .motocal-inner{
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-radius: 0 !important;
}

/* Başlık hizalama */
.page-template-page-motogp-suruculeri .motocal-page-title,
.page-template-page-moto2-suruculeri .motocal-page-title,
.page-template-page-moto3-suruculeri .motocal-page-title,
.page-template-page-worldsbk-suruculeri .motocal-page-title,
.page-template-page-worldssp-suruculeri .motocal-page-title{
  margin-top: 0 !important;
}
/* Driver kart görseli biraz daha yüksek */
.motogp-driver-card .motocal-img{
  height: 230px;
}
/* =========================
   DRIVER CARD – PREMIUM POLISH
========================= */

/* Görsel üstüne hafif editorial gradient */
.motogp-driver-card .motocal-img::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,.35) 100%);
  pointer-events:none;
}

/* Hover'da görsel hafif zoom */
.motogp-driver-card:hover .motocal-img{
  transform:scale(1.03);
  transition:transform .35s ease;
}

/* Driver numarasını biraz daha güçlü yap */
.motogp-driver-card .driver-number{
  font-size:24px;
  padding:7px 13px;
}

/* Kart hover daha editorial */
.motogp-driver-card:hover{
  transform:translateY(-8px);
}
/* =========================================================
   RIDERS HUB HEADER
========================================================= */
.riders-hub--motogp{
    padding-top: 24px;
    padding-bottom: 40px;
}

.riders-page-head{
    position: relative;
    margin-bottom: 24px;
    padding: 28px 28px 22px;
    border-radius: 18px;
    background: linear-gradient(135deg, #111 0%, #1b1b1b 60%, #222 100%);
    box-shadow: 0 12px 35px rgba(0,0,0,.14);
    overflow: hidden;
}

.riders-page-head::after{
    content: "";
    position: absolute;
    left: 28px;
    bottom: 0;
    width: 96px;
    height: 3px;
    background: #b11217;
    border-radius: 999px;
}

.riders-page-head .motocal-page-title{
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.riders-page-subtitle{
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 15px;
    line-height: 1.6;
    font-weight: 500;
}

/* =========================================================
   RIDERS TABS
========================================================= */
.riders-tabs-nav{
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px;
    border-radius: 16px;
    background: #f3f4f6;
    border: 1px solid rgba(0,0,0,.06);
}

.riders-tab-btn{
    appearance: none;
    border: 0;
    outline: 0;
    background: transparent;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 14px 18px;
    border-radius: 12px;
    cursor: pointer;
    transition: all .22s ease;
}

.riders-tab-btn:hover{
    background: rgba(177,18,23,.08);
    color: #b11217;
}

.riders-tab-btn.is-active{
    background: #b11217;
    color: #fff;
    box-shadow: 0 8px 22px rgba(177,18,23,.22);
}

.riders-tab-btn:focus-visible{
    box-shadow:
        0 0 0 3px rgba(177,18,23,.16),
        0 8px 22px rgba(177,18,23,.18);
}

/* =========================================================
   RIDERS PANEL
========================================================= */
.riders-tabs-panels{
    position: relative;
}

.riders-tab-panel{
    border-radius: 18px;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(0,0,0,.07);
    box-shadow: 0 10px 28px rgba(0,0,0,.06);
}

.riders-empty{
    margin: 0;
    padding: 18px;
    border-radius: 14px;
    background: #f7f7f8;
    color: #555;
    font-size: 15px;
    font-weight: 600;
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px){
    .riders-page-head{
        padding: 22px 18px 18px;
        border-radius: 16px;
    }

    .riders-page-head::after{
        left: 18px;
        width: 72px;
    }

    .riders-page-head .motocal-page-title{
        font-size: 26px;
    }

    .riders-page-subtitle{
        font-size: 14px;
    }

    .riders-tabs-nav{
        gap: 8px;
        padding: 6px;
        border-radius: 14px;
    }

    .riders-tab-btn{
        padding: 12px 14px;
        font-size: 13px;
        border-radius: 10px;
    }

    .riders-tab-panel{
        padding: 14px;
        border-radius: 16px;
    }
}

/* =========================================================
   RIDERS CARDS
========================================================= */

.motogp-drivers-grid{
    gap: 22px;
}

.motogp-driver-card{
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(0,0,0,.06);
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
    transition: all .28s ease;
}

.motogp-driver-card:hover{
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0,0,0,.12);
}

/* =========================================================
   DRIVER IMAGE
========================================================= */

.motogp-driver-card .motocal-img{
    position: relative;
    height: 210px;
    background-size: cover;
    background-position: center;
    transition: transform .35s ease;
}

.motogp-driver-card:hover .motocal-img{
    transform: scale(1.04);
}

/* =========================================================
   DRIVER NUMBER
========================================================= */

.driver-number{
    position: absolute;
    top: 12px;
    left: 12px;
    background: #b11217;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 8px;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(0,0,0,.2);
}

/* =========================================================
   CARD CONTENT
========================================================= */

.motogp-driver-card .motocal-content{
    padding: 14px 16px 16px;
}

.motogp-driver-card .motocal-title{
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
}

.motogp-driver-card .gp-name{
    color: #111;
}

/* =========================================================
   FLAG
========================================================= */

.motocal-flag{
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,.15);
}

/* =========================================================
   TEAM
========================================================= */

.motogp-driver-card .motocal-track{
    margin-top: 6px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width:768px){

    .motogp-driver-card .motocal-img{
        height: 180px;
    }

    .motogp-driver-card .motocal-title{
        font-size: 15px;
    }

}
/* =========================================================
   SERIES ACCENT COLORS
========================================================= */

/* MotoGP */

.riders-tab-btn[data-tab="motogp"].is-active{
    background:#b11217;
}

.riders-tab-panel[data-panel="motogp"] .motogp-driver-card{
    border-bottom:3px solid #b11217;
}


/* Moto2 */

.riders-tab-btn[data-tab="moto2"].is-active{
    background:#4f46e5;
}

.riders-tab-panel[data-panel="moto2"] .motogp-driver-card{
    border-bottom:3px solid #4f46e5;
}


/* Moto3 */

.riders-tab-btn[data-tab="moto3"].is-active{
    background:#f59e0b;
}

.riders-tab-panel[data-panel="moto3"] .motogp-driver-card{
    border-bottom:3px solid #f59e0b;
}
/* =========================================================
   DRIVER IMAGE OVERLAY
========================================================= */

.motogp-driver-card .motocal-img::after{
    content:"";
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        rgba(177,18,23,0) 40%,
        rgba(177,18,23,.15) 100%
    );
    opacity:0;
    transition:opacity .35s ease;
}

.motogp-driver-card:hover .motocal-img::after{
    opacity:1;
}
.motogp-driver-card:hover .driver-number{
    transform:scale(1.08);
}
/* =========================================================
   WSBK / WSSP ACCENT COLORS
========================================================= */

.riders-tab-btn[data-tab="worldsbk"].is-active{
    background: #b11217;
    color: #fff;
    box-shadow: 0 8px 22px rgba(177,18,23,.22);
}

.riders-tab-panel[data-panel="worldsbk"] .motogp-driver-card{
    border-bottom: 3px solid #b11217;
}

.riders-tab-btn[data-tab="worldssp"].is-active{
    background: #2563eb;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37,99,235,.22);
}

.riders-tab-panel[data-panel="worldssp"] .motogp-driver-card{
    border-bottom: 3px solid #2563eb;
}