/**
 * Archery P Profile responsive stylesheet
 * File: media/archeryprofilemanager/css/player-profile.css
 * Version: 1.0.0
 */
.apm-profile-shell{box-sizing:border-box;width:100%;max-width:1100px;margin:0 auto;padding:clamp(10px,2.5vw,22px)!important;overflow:hidden}
.apm-profile-hero{box-sizing:border-box;width:100%;min-width:0}
.apm-profile-hero img{max-width:100%;height:auto}
.apm-profile-stats{display:flex;flex-wrap:wrap;justify-content:center;gap:12px!important}
.apm-profile-stat{box-sizing:border-box;flex:1 1 120px;max-width:180px;min-width:0}
.apm-profile-stat.apm-rank-stat{background:linear-gradient(135deg,#fff4a8 0%,#ffd84d 45%,#ffb700 100%)!important;border:2px solid #e5a900;box-shadow:0 0 0 3px rgba(255,204,0,.22),0 0 22px rgba(255,190,0,.5)!important;transform:translateY(-2px)}
.apm-profile-stat.apm-rank-stat div{color:#684500!important}
.apm-profile-stat.apm-record-stat{flex-basis:180px;max-width:230px;background:linear-gradient(135deg,#fffdf0,#fff0a6)!important;border:1px solid #efc62b;box-shadow:0 5px 18px rgba(226,173,0,.22)!important}
.apm-profile-score-scroll{width:100%;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;border-radius:10px}
.apm-profile-score-table{width:100%;min-width:600px;border-collapse:collapse;text-align:center}
.apm-profile-score-table th,.apm-profile-score-table td{padding:10px;overflow-wrap:anywhere}
@media(max-width:700px){
 .apm-profile-shell{padding:8px!important;border-radius:12px!important}
 .apm-profile-hero{padding:14px!important;gap:12px!important;justify-content:center!important}
 .apm-profile-hero img{max-width:min(42vw,150px)!important;max-height:150px;object-fit:contain}
 .apm-profile-hero h1,.apm-profile-hero h2{font-size:clamp(20px,5vw,27px)!important;line-height:1.35!important;overflow-wrap:anywhere}
 .apm-profile-stats{gap:8px!important;margin-top:16px!important}
 .apm-profile-stat{flex:1 1 calc(50% - 8px);max-width:none;padding:10px!important;width:auto!important}
 .apm-profile-stat div:first-child{font-size:19px!important}
 .apm-profile-stat div:nth-child(2){font-size:18px!important;overflow-wrap:anywhere}
 .apm-profile-stat div:last-child{font-size:12px!important}
 .apm-profile-stat.apm-record-stat{flex-basis:100%;max-width:none}
 .apm-profile-score-table{min-width:560px}
 .apm-profile-score-table th,.apm-profile-score-table td{padding:8px 6px!important;font-size:13px}
}
@media(max-width:380px){
 .apm-profile-stat{flex-basis:100%}
 .apm-profile-hero img{max-width:125px!important}
}
/* APM-V16-MOBILE-CARDS-START */
@media(max-width:700px){
 .apm-profile-score-scroll{overflow:visible!important;border-radius:0!important}
 .apm-profile-score-table{display:block!important;width:100%!important;min-width:0!important;border-collapse:separate!important;border-spacing:0!important}
 .apm-profile-score-table thead{display:none!important}
 .apm-profile-score-table tbody{display:block!important;width:100%!important}
 .apm-profile-score-table tbody tr{display:block!important;width:100%!important;margin:0 0 12px!important;padding:8px 10px!important;border:1px solid #dce8e5!important;border-radius:12px!important;background:#fff!important;box-shadow:0 3px 10px rgba(0,0,0,.05)!important;box-sizing:border-box!important}
 .apm-profile-score-table tbody td{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;width:100%!important;min-width:0!important;box-sizing:border-box!important;padding:9px 2px!important;border-bottom:1px solid #edf1ef!important;text-align:left!important;font-size:14px!important;line-height:1.45!important;overflow-wrap:anywhere!important;white-space:normal!important}
 .apm-profile-score-table tbody td:last-child{border-bottom:0!important}
 .apm-profile-score-table tbody td:nth-child(1)::before{content:"📅 التاريخ";font-weight:700;color:#0a806c;flex:0 0 42%;text-align:right}
 .apm-profile-score-table tbody td:nth-child(2)::before{content:"🏆 البطولة / 📏 المسافة";font-weight:700;color:#0a806c;flex:0 0 42%;text-align:right}
 .apm-profile-score-table tbody td:nth-child(3)::before{content:"📏 المسافة / 🎯 النتيجة";font-weight:700;color:#0a806c;flex:0 0 42%;text-align:right}
 .apm-profile-score-table tbody td:nth-child(4)::before{content:"🎯 النتيجة / 📝 ملاحظات";font-weight:700;color:#0a806c;flex:0 0 42%;text-align:right}
 .apm-profile-score-table tbody td[colspan] {display:block!important;text-align:center!important}
 .apm-profile-score-table tbody td[colspan]::before{content:none!important}
 .apm-profile-score-table tbody tr:has(td[colspan]){padding:12px!important}
}
.apm-official-score-table tbody td:nth-child(1)::before{content:"📅 التاريخ"}
 .apm-official-score-table tbody td:nth-child(2)::before{content:"🏆 البطولة"}
 .apm-official-score-table tbody td:nth-child(3)::before{content:"📏 المسافة"}
 .apm-official-score-table tbody td:nth-child(4)::before{content:"🎯 النتيجة الرسمية"}
 .apm-training-score-table tbody td:nth-child(1)::before{content:"📅 تاريخ التدريب"}
 .apm-training-score-table tbody td:nth-child(2)::before{content:"📏 المسافة"}
 .apm-training-score-table tbody td:nth-child(3)::before{content:"🎯 نتيجة التدريب"}
 .apm-training-score-table tbody td:nth-child(4)::before{content:"📝 ملاحظات"}
/* APM-V16-MOBILE-CARDS-END */
