/* assets/css/frontend.css */
.ets-swc-wrapper {
    max-width: 650px;
    margin: 20px auto;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    padding: 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #1a2b4c;
    border: 1px solid #e1e8f0;
}

.ets-swc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #0a192f;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.ets-swc-title {
    color: #0a192f;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
}

.ets-swc-badge {
    background: #0052cc;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.ets-swc-instructions {
    background: #f4f6f9;
    padding: 12px 16px;
    border-left: 4px solid #0052cc;
    margin-bottom: 20px;
    font-size: 0.95rem;
    color: #334e68;
}

.ets-swc-clue-box {
    background: #0a192f;
    color: #ffffff;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin-bottom: 20px;
}

.ets-swc-clue-label {
    color: #00b4d8;
    font-weight: bold;
    margin-right: 8px;
}

.ets-swc-display-area {
    margin-bottom: 15px;
    text-align: center;
}

.ets-swc-word-display {
    min-height: 48px;
    background: #f8fafc;
    border: 2px dashed #0052cc;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 4px;
    color: #0a192f;
    padding: 5px 15px;
    margin-top: 6px;
}

.ets-swc-controls {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.ets-swc-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ets-swc-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.ets-swc-btn-primary {
    background: #0052cc;
    color: #fff;
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
}

.ets-swc-btn-primary:hover:not(:disabled) {
    background: #003d99;
}

.ets-swc-btn-secondary {
    background: #e2e8f0;
    color: #334e68;
}

.ets-swc-btn-secondary:hover:not(:disabled) {
    background: #cbd5e1;
}

.ets-swc-grid-container {
    width: 100%;
    margin-bottom: 25px;
}

.ets-swc-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 6px;
    width: 100%;
    aspect-ratio: 1 / 1;
}

.ets-swc-tile {
    background: #0a192f;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, transform 0.1s ease;
    user-select: none;
}

.ets-swc-tile:hover:not(:disabled) {
    background: #0052cc;
    transform: scale(1.05);
}

.ets-swc-tile.selected {
    background: #00b4d8;
    color: #0a192f;
    font-weight: 900;
}

.ets-swc-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.ets-swc-form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ets-swc-form-group label {
    font-weight: 600;
    font-size: 0.9rem;
    color: #0a192f;
}

.ets-swc-input {
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
}

.ets-swc-input:focus {
    outline: none;
    border-color: #0052cc;
    box-shadow: 0 0 0 2px rgba(0,82,204,0.2);
}

.ets-swc-status-msg {
    padding: 10px;
    border-radius: 6px;
    display: none;
    font-weight: bold;
    text-align: center;
}

.ets-swc-status-msg.success {
    background: #d4edda;
    color: #155724;
}

.ets-swc-status-msg.error {
    background: #f8d7da;
    color: #721c24;
}

@media (max-width: 480px) {
    .ets-swc-grid {
        gap: 4px;
    }
    .ets-swc-tile {
        font-size: 0.85rem;
    }
    .ets-swc-wrapper {
        padding: 15px;
    }
}
