/* index.php */

body { margin: 0; }

.hero {
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.82) 0%, rgba(30, 58, 95, 0.78) 60%, rgba(15, 52, 96, 0.82) 100%),
        url('/images/Background_FootballField.png') center / cover no-repeat;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.grid-preview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 350px;
}

.grid-cell {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    aspect-ratio: 1;
    border-radius: 6px;
}

.grid-cell.claimed { background: rgba(96, 165, 250, 0.35); border-color: rgba(96, 165, 250, 0.5); }
.grid-cell.winner  { background: rgba(74, 222, 128, 0.55); border-color: rgba(74, 222, 128, 0.7); }

.join-form {
    display: flex;
    gap: 0.5rem;
}

@media (max-width: 480px) {
    .join-form {
        flex-direction: column;
    }
}

/* Hero slideshow */

.hero-slider {
    position: relative;
    min-height: 115px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hero-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hero-slide-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 4px;
}

.hero-slide-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 6px;
    line-height: 1.3;
}

.hero-slide-body {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}

.slider-dots {
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
}

.slider-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s;
}

.slider-dot.active {
    background: #fff;
    transform: scale(1.25);
}

.slider-dot-sep {
    width: 14px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

/* Form controls — visible dark border */

.form-control,
.form-select {
    border: 1.5px solid #1e293b;
    border-radius: 6px;
    box-shadow: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-control:focus,
.form-select:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
    outline: none;
}

/* Checkboxes — visible dark border */

.form-check-input {
    border: 2px solid #1e293b;
    box-shadow: none;
}

.form-check-input:focus {
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.12);
}

/* Draw Numbers — team diagram illustration */
.team-diagram {
    display: flex;
    justify-content: center;
}

.team-diagram-body {
    display: flex;
    align-items: center;
    gap: 6px;
}

.team-diagram-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.team-diagram-top {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
    margin-bottom: 4px;
}

.team-diagram-side {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #475569;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.team-diagram-square {
    width: 72px;
    height: 72px;
    border: 2px solid #334155;
    border-radius: 4px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 3px;
    padding: 5px;
    background: #f1f5f9;
}

.tdc {
    background: #cbd5e1;
    border-radius: 1px;
}

/* Status colors */
.bg-orange      { background-color: #f97316 !important; }
.bg-light-blue  { background-color: #60a5fa !important; }

/* dashboard.php — pool cards */

.pool-card {
    overflow: hidden;
}

.pool-card-graphic {
    background: #f1f5f9;
    overflow: hidden;
}

.pool-status-banner {
    padding: 5px 12px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.pool-banner-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    font-size: 0.85rem;
}

.pool-banner-claimed {
    text-align: right;
}

.pool-mini-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 2px;
    margin: 8px 10px 10px;
}

.pool-mini-cell {
    aspect-ratio: 1;
    background: #cbd5e1;
    border-radius: 1px;
}

.pool-mini-cell.claimed {
    background: #3b82f6;
}

/* pool/index.php — public claim grid */

.pool-grid-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pool-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 3px;
    width: 100%;
}

.pool-claim-cell {
    aspect-ratio: 1;
    border-radius: 4px;
    border: 2px solid #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.6rem;
    font-weight: 600;
    text-align: center;
    padding: 2px;
    overflow: hidden;
    line-height: 1.2;
}

.pool-claim-cell.open {
    background: #e2e8f0;
    cursor: pointer;
    transition: background 0.15s;
}

.pool-claim-cell.open:hover {
    background: #bfdbfe;
}

.pool-claim-cell.open.inactive {
    cursor: default;
}

.pool-claim-cell.open.inactive:hover {
    background: #e2e8f0;
}

.box-num {
    font-size: 0.65rem;
    color: #94a3b8;
    pointer-events: none;
}

.pool-claim-cell.open:hover .box-num {
    color: #3b82f6;
}

.pool-claim-cell.claimed {
    background: #3b82f6;
    color: #fff;
    cursor: default;
}

.pool-claim-cell.claimed.admin-claimed {
    cursor: pointer;
}

.pool-claim-cell.claimed.admin-claimed:hover {
    background: #ef4444;
}

/* Modals — visible outline so they don't blend into the page */
.modal-content {
    border: 1.5px solid #94a3b8;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

/* Finalize modal — number inputs */
.number-input-row {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}

.finalize-num-input {
    width: 100%;
    min-width: 0;
    text-align: center;
    padding: 6px 2px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1.5px solid #1e293b;
    border-radius: 6px;
    background: #f8fafc;
    -moz-appearance: textfield;
}

.finalize-num-input::-webkit-outer-spin-button,
.finalize-num-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.finalize-num-input[readonly] {
    background: #e2e8f0;
    cursor: default;
}

/* Pool grid — with number headers (11-column layout) */
.pool-grid.with-numbers {
    grid-template-columns: 36px repeat(10, 1fr);
}

.pool-number-header {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    color: #334155;
    background: #e2e8f0;
    border-radius: 3px;
}

.pool-number-header.corner {
    background: transparent;
}

/* Tappable copy fields (venmo/paypal on pool page) */
.copy-tap {
    cursor: pointer;
    border-radius: 4px;
    padding: 2px 5px;
    transition: background 0.15s;
    user-select: none;
}

.copy-tap:hover {
    background: #e2e8f0;
}

.copy-toast {
    position: fixed;
    background: #1e293b;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    pointer-events: none;
    z-index: 9999;
    transform: translateX(-50%);
    opacity: 1;
    transition: opacity 0.35s ease;
    white-space: nowrap;
}

.copy-toast.fade-out {
    opacity: 0;
}

/* Team name autocomplete dropdown */
.autocomplete-wrapper {
    position: relative;
}

.autocomplete-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #1e293b;
    border-top: none;
    border-radius: 0 0 6px 6px;
    z-index: 1060;
    max-height: 200px;
    overflow-y: auto;
    margin: 0;
    padding: 0;
    list-style: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.autocomplete-item {
    padding: 7px 10px;
    cursor: pointer;
    font-size: 0.875rem;
}

.autocomplete-item:hover,
.autocomplete-item.active {
    background: #e2e8f0;
}

/* Team labels around the pool grid */
.pool-team-layout {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.pool-team-row-label {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

.pool-team-row-label:empty {
    display: none;
}

.pool-team-main {
    flex: 1;
    min-width: 0;
}

.pool-team-col-label {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #64748b;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 4px;
}

.pool-team-col-label:empty {
    display: none;
}
