/* LET Lotto WordPress Plugin - Clean & Readable */
.let-lotto-container {
    max-width: 1400px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.let-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 40px 30px;
    text-align: center;
}

.let-header h1 {
    font-size: 3.5em;
    margin: 0 0 15px 0;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.let-header .flag {
    font-size: 3em;
    display: inline-block;
    margin-right: 15px;
}

.let-header p {
    font-size: 1.4em;
    color: white;
    margin: 0;
}

.let-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

.let-tab {
    flex: 1;
    min-width: 150px;
    padding: 18px 20px;
    background: white;
    border: none;
    cursor: pointer;
    font-size: 1.05em;
    font-weight: 500;
    color: #6b7280;
    border-bottom: 3px solid transparent;
}

.let-tab:hover {
    color: #10b981;
    background: #f9fafb;
}

.let-tab.active {
    color: #10b981;
    border-bottom: 3px solid #10b981;
    font-weight: 600;
}

.let-content {
    display: none;
    padding: 30px;
    background: #f9fafb;
}

.let-content.active {
    display: block;
}

.let-section {
    background: white;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.let-section h3 {
    margin: 0 0 20px 0;
    color: #1f2937;
    font-size: 1.3em;
}

.let-legend {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

.let-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    color: #374151;
}

.let-legend-box {
    width: 35px;
    height: 35px;
    border-radius: 6px;
    border: 2px solid #d1d5db;
}

.let-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.let-stat {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border-left: 4px solid #10b981;
}

.let-stat h4 {
    color: #6b7280;
    font-size: 0.85em;
    margin: 0 0 12px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

.let-stat .value {
    font-size: 2.5em;
    font-weight: 700;
    color: #10b981;
    margin: 0;
}

.let-grid-wrap {
    overflow-x: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    -webkit-overflow-scrolling: touch;
}

.let-grid {
    border-collapse: collapse;
    width: 100%;
    min-width: 600px;
}

.let-grid th {
    background: #1f2937;
    color: white;
    padding: 14px 10px;
    font-weight: 600;
    text-align: center;
    font-size: 0.95em;
    border: 1px solid #111827;
}

.let-grid th.player-col {
    text-align: left;
    padding-left: 20px;
    min-width: 150px;
}

.let-grid td {
    border: 1px solid #e5e7eb;
    padding: 0;
    text-align: center;
    height: 55px;
    background: white;
}

.let-grid td.player-col {
    background: #f3f4f6;
    font-weight: 600;
    padding-left: 20px;
    text-align: left;
    color: #1f2937;
}

.let-square {
    width: 100%;
    height: 100%;
    min-height: 55px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
}

.let-square:hover {
    background: #ecfdf5;
    color: #10b981;
}

.let-square.claimed {
    background: #10b981;
    color: white;
}

.let-square.winner {
    background: #fbbf24;
    color: #1f2937;
}

.let-input,
.let-select,
.let-textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    font-size: 1em;
    margin-top: 5px;
    font-family: inherit;
}

.let-textarea {
    min-height: 150px;
    font-family: monospace;
}

.let-label {
    display: block;
    margin: 15px 0 5px 0;
    font-weight: 600;
    color: #374151;
}

.let-btn {
    padding: 12px 28px;
    border: none;
    border-radius: 6px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin: 10px 10px 0 0;
}

.let-btn-primary {
    background: #10b981;
    color: white;
}

.let-btn-primary:hover {
    background: #059669;
}

.let-btn-secondary {
    background: #6b7280;
    color: white;
}

.let-btn-danger {
    background: #ef4444;
    color: white;
}

.let-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 15px;
}

.let-quick-setup {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 25px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.let-quick-setup h3 {
    color: #92400e;
    margin: 0 0 15px 0;
}

@media (max-width: 768px) {
    .let-lotto-container {
        box-shadow: none;
        margin: 0;
    }
    
    .let-header {
        padding: 20px 10px;
    }
    
    .let-header h1 {
        font-size: 1.8em;
        margin: 0 0 8px 0;
    }
    
    .let-header .flag {
        font-size: 1.5em;
        margin-right: 5px;
    }
    
    .let-header p {
        font-size: 0.9em;
        margin: 0;
    }
    
    .let-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        display: flex;
        flex-wrap: nowrap;
    }
    
    .let-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .let-tab {
        font-size: 0.75em;
        padding: 10px 12px;
        min-width: 100px;
        max-width: 100px;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .let-content {
        padding: 10px;
    }
    
    .let-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .let-section h3 {
        font-size: 1em;
        margin: 0 0 12px 0;
    }
    
    .let-two-col {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .let-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin-bottom: 15px;
    }
    
    .let-stat {
        padding: 12px;
    }
    
    .let-stat h4 {
        font-size: 0.7em;
        margin: 0 0 8px 0;
    }
    
    .let-stat .value {
        font-size: 1.5em;
    }
    
    .let-legend {
        gap: 10px;
        padding: 12px;
        justify-content: flex-start;
        margin-bottom: 15px;
    }
    
    .let-legend-item {
        font-size: 0.8em;
    }
    
    .let-legend-box {
        width: 25px;
        height: 25px;
    }
    
    .let-grid-wrap {
        margin: 0 -10px 15px -10px;
        border-radius: 0;
        position: relative;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .let-grid {
        min-width: 100%;
        width: max-content;
    }
    
    .let-grid th {
        padding: 8px 6px;
        font-size: 0.7em;
        min-width: 50px;
    }
    
    .let-grid td {
        padding: 0;
        min-width: 50px;
    }
    
    .let-grid th.player-col,
    .let-grid td.player-col {
        min-width: 70px;
        max-width: 70px;
        padding: 8px 6px;
        font-size: 0.7em;
        position: sticky;
        left: 0;
        z-index: 10;
        background: #f3f4f6;
    }
    
    .let-grid th.player-col {
        background: #1f2937;
        color: white;
    }
    
    .let-square {
        min-height: 40px;
        max-height: 40px;
        font-size: 0.75em;
        padding: 2px;
    }
    
    .let-btn {
        width: 100%;
        margin: 8px 0 0 0;
        padding: 12px 16px;
        font-size: 0.95em;
    }
    
    .let-input,
    .let-select,
    .let-textarea {
        font-size: 16px;
        padding: 12px;
    }
    
    .let-quick-setup {
        padding: 12px;
    }
    
    .let-quick-setup h3 {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .let-header h1 {
        font-size: 1.4em;
    }
    
    .let-header .flag {
        font-size: 1.2em;
    }
    
    .let-header p {
        font-size: 0.8em;
    }
    
    .let-stats {
        grid-template-columns: 1fr;
    }
    
    .let-stat .value {
        font-size: 1.3em;
    }
    
    .let-legend {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .let-tab {
        font-size: 0.7em;
        padding: 8px 10px;
        min-width: 85px;
        max-width: 85px;
    }
    
    .let-grid th,
    .let-grid td {
        min-width: 45px;
    }
    
    .let-grid th.player-col,
    .let-grid td.player-col {
        min-width: 60px;
        max-width: 60px;
        font-size: 0.65em;
    }
    
    .let-square {
        min-height: 38px;
        max-height: 38px;
        font-size: 0.7em;
    }
}
