
/* ==========================================
   FONT SYSTEM
========================================== */

@font-face {
    font-family: 'KCTAP';
   src: url('../fonts/kctap_bold.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ==========================================
   LOGO SYSTEM
========================================== */

.kctap-logo {
    width: 50px;
    height: 50px;
    object-fit: contain;
    margin-right: 8px;
    transition: all .2s ease;
}

.kctap-logo:hover {
    transform: scale(1.08);
    filter: drop-shadow(0 0 6px rgba(255,60,0,0.6));
}

.kctap-logo[data-type="womens"]:hover {
    filter: drop-shadow(0 0 8px #7b2cff);
}

.kctap-logo[data-type="juniors"]:hover {
    filter: drop-shadow(0 0 8px #00cfff);
}

.kctap-admin .widefat tbody tr:hover .kctap-logo {
    transform: scale(1.1);
}

/* subtle row hover boost */
.kctap-row .kctap-logo {
    transition: transform .2s ease, filter .2s ease;
}

.kctap-row:hover .kctap-logo {
    transform: scale(1.15);
    z-index: 2;
}

/* ==========================================
   LEAGUE HEADER (SCHEDULE)
========================================== */



/* override global 50px logo */
.kctap-league-title .kctap-logo{
    width:150px;
    height:150px;
    margin-right:0;

}


/* ==========================================
   DOT SYSTEM
========================================== */

.kctap-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

/* 8 BALL */
.kctap-dot-8 {
    background: #000;
}
.kctap-dot-8.teams {
    border: 2px solid #ef4444;
}
.kctap-dot-8.singles {
    border: 2px solid #fff;
}

/* 9 BALL */
.kctap-dot-9 {
    background: #facc15;
}
.kctap-dot-9.teams {
    border: 2px solid #ef4444;
}
.kctap-dot-9.singles {
    border: 2px solid #fff;
}

/* 10 BALL */
.kctap-dot-10 {
    background: #3b82f6;
    border: 2px solid #fff;
}

/* SCOTCH */
.kctap-dot-scotch {
    background: #ef4444;
    border: 2px solid #fff;
}


/* ==========================================
   PLAYER / TEAM HIGHLIGHTS
========================================== */

.kctap-my-team {
    background: linear-gradient(90deg, rgba(0,255,150,0.15), transparent);
    border-left: 3px solid #00ffa6;
}

.kctap-my-team .kctap-team-name {
    font-weight: 700;
    text-shadow: 0 0 6px rgba(0,255,150,0.5);
}

.kctap-my-team-row {
    background: rgba(255,215,0,0.15) !important;
    box-shadow: inset 4px 0 0 #ffd700;
}


/* ==========================================
   STREAK / MEDALS
========================================== */

.kctap-streak {
    font-size: 14px;
    font-weight: 600;
}

.kctap-streak.win {
    color: #16a34a;
}

.kctap-streak.loss {
    color: #dc2626;
}

.kctap-rank-medal {
    font-size: 20px;
    margin-left: 6px;
}


/* ==========================================
   ANIMATIONS
========================================== */

.kctap-row-animate {
    opacity: 0;
    transform: translateY(10px);
    animation: kctapFadeIn 0.4s ease forwards;
}

@keyframes kctapFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes kctapPulse {
    from { box-shadow: 0 0 0 rgba(0,255,150,0.2); }
    to   { box-shadow: 0 0 12px rgba(0,255,150,0.6); }
}


/* ==========================================
   CROWN
========================================== */

.kctap-crown {
    display: inline-block;
    margin-left: 6px;
    font-size: 18px;
    animation: kctapCrownFloat 1.5s ease-in-out infinite;
}

@keyframes kctapCrownFloat {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-4px); }
    100% { transform: translateY(0); }
}




.kctap-league-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.kctap-league-icon {
    width: 200px;
    height: 200px;
    object-fit: contain;
    filter: drop-shadow(0 2px 3px rgba(0,0,0,0.5));
}

/* ===============================
   FONT (GLOBAL ONLY)
=============================== */

.kctap-league-font {
    font-family: 'KCTAP', sans-serif !important;
}

/* ===============================
   SCOPED TO LEAGUE VIEW ONLY
=============================== */

.kctap-league-view .kctap-league-font,
.kctap-venue-view .kctap-league-font {
    font-family: 'KCTAP', sans-serif !important;
    font-size: clamp(28px, 4vw, 35px);
    letter-spacing: 1.2px;
    line-height: 1.05;
    transition: all 0.25s ease;
}

.kctap-league-header .kctap-league-font {
    font-size: clamp(25px, 3vw, 35px) !important;
}

/* 8 BALL */
.kctap-league-view .league-8,
.kctap-venue-view .league-8 {
    color: #000;
    text-shadow:
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
        0 0 6px rgba(255,0,0,0.6),
        0 0 14px rgba(255,60,0,0.6),
        0 0 24px rgba(255,0,0,0.4);
}

/* 9 BALL */
.kctap-league-view .league-9,
.kctap-venue-view .league-9 {
    color: #ffd700;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        0 0 8px rgba(255,200,0,0.8),
        0 0 18px rgba(255,100,0,0.6),
        0 0 28px rgba(255,50,0,0.5);
}

/* 10 BALL */
.kctap-league-view .league-10,
.kctap-venue-view .league-10 {
    color: #3b82f6;
    text-shadow:
        -1px -1px 0 #fff,
         1px -1px 0 #fff,
        -1px  1px 0 #fff,
         1px  1px 0 #fff,
        0 0 8px rgba(59,130,246,0.8),
        0 0 18px rgba(255,50,0,0.5),
        0 0 26px rgba(59,130,246,0.6);
}

/* SCOTCH */
.kctap-league-view .league-scotch,
.kctap-venue-view .league-scotch {
    color: #ef4444;
    text-shadow:
        -1px -1px 0 #000,
         1px -1px 0 #000,
        -1px  1px 0 #000,
         1px  1px 0 #000,
        0 0 10px rgba(255,120,0,0.8),
        0 0 22px rgba(255,80,0,0.7),
        0 0 34px rgba(255,0,0,0.6);
}

/* ===============================
   HOVER GLOW EFFECT
=============================== */

.kctap-league-view .kctap-league-header:hover .kctap-league-font,
.kctap-venue-view .kctap-league-header:hover .kctap-league-font {
    transform: scale(1.05);
    filter: brightness(1.4) saturate(1.3);

    text-shadow:
        0 0 12px rgba(255,255,255,0.8),
        0 0 24px rgba(255,80,0,0.9),
        0 0 40px rgba(255,0,0,0.7);
}

@keyframes flameFlicker {
    0%,100% { opacity: 1; }
    50% { opacity: 0.85; }
}

.kctap-league-header:hover .kctap-league-font {
    animation: flameFlicker 1s infinite;
}

/* ==========================================
   POSTBOX (WP STYLE EXTENSION)
========================================== */

.kctap-admin .postbox {
    border-radius: 6px;
    overflow: hidden;
}

.kctap-admin .postbox-header {
    background: #f6f7f7;
    border-bottom: 1px solid #ddd;
}

.kctap-admin .postbox-header h2 {
    font-weight: 600;
}


/* ==========================================
   TABLES (WP COMPATIBLE BASE)
========================================== */

.kctap-admin .widefat th {
    background: #1d2327;
    color: #cfa63b;
    font-weight: 600;
}

.kctap-admin .widefat td {
    vertical-align: middle;
}

.kctap-admin .widefat tbody tr {
    transition: background .15s ease;
}

.kctap-admin .widefat tbody tr:hover {
    background: #2a2f34 !important;
    color: #fff;
}


/* ==========================================
   BUTTONS
========================================== */

.kctap-admin .button-primary {
    background: #c40000;
    border-color: #a00000;
}

.kctap-admin .button-primary:hover {
    background: #a00000;
    border-color: #7d0000;
}

.kctap-admin .button-secondary {
    border-color: #c40000;
    color: #c40000;
}

.kctap-admin .button-secondary:hover {
    background: #c40000;
    color: #fff;
}


/* ==========================================
   STATUS BADGES
========================================== */

.kctap-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.kctap-badge-success {
    background: #d1fae5;
    color: #065f46;
}

.kctap-badge-warning {
    background: #fef3c7;
    color: #92400e;
}

.kctap-badge-danger {
    background: #fee2e2;
    color: #7f1d1d;
}


/* ==========================================
   HEADER BAR
========================================== */

.kctap-admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

