/* WEISS PADEL CONNECT – premium tournament creation surface.
   Deliberately scoped to this page: field names, values and behavior stay untouched. */
.tournament-create-page{
  --tournament-ink:#182438;
  --tournament-copy:#607086;
  --tournament-border:#d3dfe6;
  --tournament-border-strong:#c3d1da;
  --tournament-surface:#fff;
  --tournament-surface-soft:#f6f9fa;
  --tournament-petrol:#0a8f89;
  background:
    radial-gradient(circle at 12% 4%,rgba(117,73,228,.09),transparent 27rem),
    radial-gradient(circle at 91% 17%,rgba(16,170,165,.10),transparent 31rem),
    #edf3f5;
  color:var(--tournament-ink);
}

.tournament-create-page .tournament-create-shell{
  width:min(1360px,calc(100% - 48px));
  margin:32px auto 72px;
}

.tournament-create-page .tournament-create-intro{
  position:relative;
  overflow:hidden;
  align-items:center;
  margin-bottom:20px;
  padding:26px 30px;
  border-color:rgba(181,202,210,.82);
  border-radius:24px;
  background:linear-gradient(118deg,#fff 0%,#f7fbfb 58%,#e8f6f4 100%);
  box-shadow:0 18px 48px rgba(31,48,66,.08);
}

.tournament-create-page .tournament-create-intro::before{
  position:absolute;
  inset:0 auto 0 0;
  width:5px;
  background:linear-gradient(180deg,#7549e4 0%,#586bd7 48%,#10aaa5 100%);
  content:"";
}

.tournament-create-page .tournament-create-intro .eyebrow,
.tournament-create-page .tournament-editor .eyebrow,
.tournament-create-page .my-tournaments .eyebrow{
  margin:0;
  color:#087f7a!important;
  font-size:.64rem!important;
  font-weight:900;
  letter-spacing:.18em;
}

.tournament-create-page .tournament-create-intro h1{
  margin:7px 0 7px;
  color:var(--tournament-ink);
  font-size:clamp(1.75rem,2.4vw,2.35rem);
  font-weight:780;
  letter-spacing:-.035em;
  line-height:1.05;
}

.tournament-create-page .tournament-create-intro p:not(.eyebrow){
  max-width:790px;
  color:var(--tournament-copy);
  font-size:.82rem;
  line-height:1.55;
}

.tournament-create-page .tournament-create-intro>a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border:1px solid #acd6d3;
  border-radius:12px;
  background:rgba(255,255,255,.82);
  color:#087f7a;
  font-size:.72rem;
  box-shadow:0 8px 22px rgba(34,58,74,.06);
}

.tournament-create-page .tournament-create-layout{
  grid-template-columns:minmax(0,1fr) minmax(300px,350px);
  gap:20px;
}

.tournament-create-page .tournament-editor,
.tournament-create-page .my-tournaments{
  min-width:0;
  padding:0;
  border-color:var(--tournament-border);
  border-radius:24px;
  background:var(--tournament-surface);
  box-shadow:0 18px 52px rgba(27,43,61,.085);
}

.tournament-create-page .tournament-editor{
  overflow:hidden;
}

.tournament-create-page .tournament-editor-head,
.tournament-create-page .my-tournaments-head{
  box-sizing:border-box;
  align-items:center;
  min-height:92px;
  margin:0;
  padding:23px 28px 21px;
  border-bottom:1px solid #e0e7eb;
  background:linear-gradient(180deg,#fff,#fbfcfd);
}

.tournament-create-page .tournament-editor h2,
.tournament-create-page .my-tournaments h2{
  margin:6px 0 0;
  color:var(--tournament-ink);
  font-size:1.32rem;
  font-weight:780;
  letter-spacing:-.025em;
  line-height:1.12;
}

.tournament-create-page .tournament-editor-head>.reset-button{
  width:auto;
  min-height:40px;
  margin:0;
  padding:0 14px;
  border-color:#b9c8d1;
  background:#fff;
  font-size:.68rem;
}

.tournament-create-page .tournament-editor-form{
  gap:20px;
  padding:25px 28px 28px;
  background:linear-gradient(180deg,#fff 0%,#fbfcfd 100%);
}

.tournament-create-page .tournament-form-grid{
  gap:17px 16px;
}

.tournament-create-page .tournament-editor .field{
  display:grid;
  align-content:start;
  gap:7px;
  min-width:0;
  margin:0;
}

.tournament-create-page .tournament-editor .field>label:first-child{
  margin:0;
  color:#46566b;
  font-size:.64rem;
  font-weight:900;
  letter-spacing:.09em;
  line-height:1.25;
}

.tournament-create-page .tournament-editor input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]),
.tournament-create-page .tournament-editor select,
.tournament-create-page .tournament-editor textarea{
  box-sizing:border-box;
  width:100%;
  min-height:50px;
  margin:0;
  padding:0 15px;
  border:1px solid var(--tournament-border-strong);
  border-radius:12px;
  background-color:#fbfcfd;
  color:#202a39;
  color-scheme:light;
  font:inherit;
  font-size:.79rem;
  font-weight:600;
  letter-spacing:0;
  line-height:1.4;
  outline:0;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.92),0 1px 2px rgba(27,43,61,.03);
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}

.tournament-create-page .tournament-editor select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:44px;
  background-image:var(--wp-ci-dropdown-arrow);
  background-position:right 13px center;
  background-repeat:no-repeat;
  background-size:20px 20px;
  cursor:pointer;
}

.tournament-create-page .tournament-editor textarea{
  min-height:116px;
  padding:13px 15px;
  resize:vertical;
}

.tournament-create-page .tournament-editor #tournament-terms{
  min-height:98px;
}

.tournament-create-page .tournament-editor input::placeholder,
.tournament-create-page .tournament-editor textarea::placeholder{
  color:#8a96a6;
  opacity:1;
  font-weight:500;
}

.tournament-create-page .tournament-editor input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]):hover,
.tournament-create-page .tournament-editor select:hover,
.tournament-create-page .tournament-editor textarea:hover{
  border-color:#9fb4c0;
  background-color:#fff;
}

.tournament-create-page .tournament-editor input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]):focus,
.tournament-create-page .tournament-editor select:focus,
.tournament-create-page .tournament-editor textarea:focus{
  border-color:#10aaa5;
  background-color:#fff;
  box-shadow:0 0 0 4px rgba(16,170,165,.11),0 8px 20px rgba(38,70,84,.06);
}

.tournament-create-page .tournament-editor input[type="datetime-local"]{
  padding-right:12px;
}

.tournament-create-page .tournament-editor .field>small{
  margin:0;
  color:#7b899b;
  font-size:.61rem;
  line-height:1.45;
}

.tournament-create-page .tournament-photo-tools{
  min-height:66px;
  padding:12px;
  border:1px dashed #a8ccca;
  border-radius:14px;
  background:linear-gradient(115deg,#f9fbfc,#eef8f7);
}

.tournament-create-page .tournament-photo-tools .reset-button{
  width:auto;
  min-height:40px;
  margin:0;
  padding:0 14px;
  border-color:#9dc9c6;
  background:#fff;
  color:#087f7a;
  font-size:.68rem;
}

.tournament-create-page #tournament-photo-status{
  flex:1 1 220px;
  color:#6a798d;
  font-size:.63rem;
  line-height:1.45;
}

.tournament-create-page .tournament-photo-preview{
  max-height:310px;
  margin-top:3px;
  border:1px solid var(--tournament-border);
  border-radius:14px;
  background:#e8eef1;
}

.tournament-create-page .tournament-photo-preview img{
  max-height:310px;
}

.tournament-create-page .tournament-consent{
  box-sizing:border-box;
  display:grid;
  grid-template-columns:20px minmax(0,1fr);
  align-items:start;
  gap:11px;
  margin:0;
  padding:13px 14px;
  border:1px solid #d9e3e8;
  border-radius:13px;
  background:#f6f9fa;
  color:#526176;
  font-size:.7rem;
  font-weight:650;
  letter-spacing:0;
  line-height:1.5;
  text-transform:none;
}

.tournament-create-page .tournament-consent input{
  box-sizing:border-box;
  width:18px;
  min-height:18px;
  height:18px;
  margin:1px 0 0;
  accent-color:#0b9993;
}

.tournament-create-page .tournament-form-actions{
  padding-top:2px;
}

.tournament-create-page .tournament-form-actions .primary-button{
  width:min(360px,100%);
  min-height:50px;
  margin:0;
  border-radius:12px;
  box-shadow:0 12px 28px rgba(72,85,185,.22);
}

.tournament-create-page .tournament-form-message{
  min-height:18px;
  font-size:.68rem;
}

.tournament-create-page .my-tournaments{
  position:sticky;
  top:100px;
  overflow:hidden;
}

.tournament-create-page .my-tournaments-head{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:16px;
  min-height:86px;
  padding:21px 20px 19px 22px;
}

.tournament-create-page #my-tournaments-count:not(:empty){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:auto;
  min-width:74px;
  min-height:30px;
  padding:0 10px;
  border:1px solid #b9dfdc;
  border-radius:999px;
  background:linear-gradient(180deg,#eff9f8,#e3f4f2);
  color:#087f7a;
  font-size:.62rem;
  font-weight:900;
  letter-spacing:.015em;
  line-height:1;
  white-space:nowrap;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9);
}

.tournament-create-page .my-tournament-list{
  gap:10px;
  padding:16px;
  background:linear-gradient(180deg,#f8fafb,#f3f7f8);
}

.tournament-create-page .my-tournament-list>.admin-empty{
  display:grid;
  grid-template-columns:42px minmax(0,1fr);
  align-items:center;
  gap:13px;
  min-height:78px;
  margin:0;
  padding:14px 15px;
  border:1px solid #d5e2e6;
  border-radius:14px;
  background:linear-gradient(115deg,#fff 0%,#f7fbfb 100%);
  color:#5f6e82;
  font-size:.68rem;
  font-weight:650;
  line-height:1.5;
  text-align:left;
  box-shadow:0 7px 20px rgba(30,48,65,.04);
}

.tournament-create-page .my-tournament-list>.admin-empty::before{
  display:block;
  width:42px;
  height:42px;
  border:1px solid #c3e1df;
  border-radius:12px;
  background-color:#e9f7f5;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4.5' y='6.5' width='15' height='13' rx='2.25' fill='none' stroke='%23087f7a' stroke-width='1.7'/%3E%3Cpath d='M8 4.5v4M16 4.5v4M4.5 10.5h15M8 14h3M8 17h6' fill='none' stroke='%23087f7a' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E");
  background-position:center;
  background-repeat:no-repeat;
  background-size:22px 22px;
  content:"";
}

.tournament-create-page .my-tournament-item{
  padding:15px;
  border-color:#d5e0e5;
  background:#fff;
  box-shadow:0 7px 20px rgba(30,48,65,.045);
}

@media(max-width:980px){
  .tournament-create-page .tournament-create-layout{grid-template-columns:1fr}
  .tournament-create-page .my-tournaments{position:static}
}

@media(max-width:700px){
  .tournament-create-page .tournament-create-shell{
    width:min(100% - 24px,1360px);
    margin-top:18px;
  }
  .tournament-create-page .tournament-create-intro{
    align-items:stretch;
    gap:18px;
    padding:22px 20px;
  }
  .tournament-create-page .tournament-create-intro>a{width:100%}
  .tournament-create-page .tournament-editor-head,
  .tournament-create-page .my-tournaments-head{
    min-height:82px;
    padding:19px 18px 17px;
  }
  .tournament-create-page .tournament-editor-form{padding:20px 18px 22px}
  .tournament-create-page .tournament-form-grid{grid-template-columns:1fr;gap:15px}
  .tournament-create-page .tournament-form-grid .wide{grid-column:1}
  .tournament-create-page .tournament-editor input:not([type="hidden"]):not([type="checkbox"]):not([type="file"]),
  .tournament-create-page .tournament-editor select,
  .tournament-create-page .tournament-editor textarea{font-size:16px}
  .tournament-create-page .tournament-form-actions .primary-button{width:100%}
}

@media(max-width:430px){
  .tournament-create-page .tournament-create-shell{width:calc(100% - 16px)}
  .tournament-create-page .tournament-create-intro{border-radius:19px}
  .tournament-create-page .tournament-editor,
  .tournament-create-page .my-tournaments{border-radius:19px}
  .tournament-create-page .tournament-editor-form{padding-right:14px;padding-left:14px}
  .tournament-create-page .tournament-photo-tools{align-items:stretch;flex-direction:column}
  .tournament-create-page .tournament-photo-tools .reset-button{width:100%}
  .tournament-create-page .my-tournaments-head{gap:10px;padding-right:14px;padding-left:16px}
  .tournament-create-page #my-tournaments-count:not(:empty){min-width:68px;padding-right:9px;padding-left:9px}
  .tournament-create-page .my-tournament-list{padding:12px}
}
